younifyd
Menu

Create new product variant stock information

Create new product variant stock information

POST/variants/{variantIdentifier}/stocks

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Create new product variant stock information action (under Stocks).
  3. Fill in the fields below, then reference the result from later steps as {{createNewProductVariantStockInformation.response.data}}.

Request

Path parameters

variantIdentifieroneOfrequired

Product variant ID or reference key. If you are using a reference key, it is highly recommended to use the encoded equal sign (%3D) instead of the plain =

Request body

Enter the body as JSON in the step's Body field.

quantityintegerrequired

Current quantity of SKU.

warehouseReferenceKeystringrequired

Reference key of warehouse for which the stock update is related to.

changedAtstring (date-time)required

Date time when the stock changed in Iso8601 format.

sellableWithoutStockboolean

Defines if the variant can be sold even when the available stock is 0.

Default false

merchantReferenceKeystring

A merchant reference key the stock belongs to.

expectedAvailabilityAtstring (date)

Date when the stock is expected to be available. If provided, it MUST be in the future.

json
{
  "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>}}.

quantityinteger

Current quantity of SKU.

warehouseReferenceKeystring

Reference key of warehouse for which the stock update is related to.

changedAtstring (date-time)

Date time when the stock changed in Iso8601 format.

sellableWithoutStockboolean

Defines if the variant can be sold even when the available stock is 0.

Default false

merchantReferenceKeystring

A merchant reference key the stock belongs to.

expectedAvailabilityAtstring (date)

Date when the stock is expected to be available. If provided, it MUST be in the future.

json
{
  "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.

Create new product variant stock information — SCAYLE Admin — Documentation