younifyd
Menu

Get product variant stock information

Get product variant stock information

GET/variants/{variantIdentifier}/stocks

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get product variant stock information action (under Stocks).
  3. Fill in the fields below, then reference the result from later steps as {{getProductVariantStockInformation.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 =

Response

Returns 200 with an object. Read it in later steps with {{getProductVariantStockInformation.response.data.<field>}}.

entitiesarray<object>
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
{
  "entities": [
    {
      "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.

Get product variant stock information — SCAYLE Admin — Documentation