Menu
Create new product variant stock information
Create new product variant stock information
POST
/variants/{variantIdentifier}/stocksUse it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Create new product variant stock information action (under Stocks).
- Fill in the fields below, then reference the result from later steps as
{{createNewProductVariantStockInformation.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"quantity": 27,
"warehouseReferenceKey": "DefaultWarehouse",
"changedAt": "2020-07-23T11%3A30%3A58%2B00%3A00",
"sellableWithoutStock": true,
"merchantReferenceKey": "string",
"expectedAvailabilityAt": "2020-07-23"
}
Response
Returns 201 with an object. Read it in later steps with {{createNewProductVariantStockInformation.response.data.<field>}}.
{
"quantity": 27,
"warehouseReferenceKey": "DefaultWarehouse",
"changedAt": "2020-07-23T11%3A30%3A58%2B00%3A00",
"sellableWithoutStock": true,
"merchantReferenceKey": "string",
"expectedAvailabilityAt": "2020-07-23"
}
Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.
Was this page helpful?