younifyd
Menu

Manage sellableWithoutStock for a given variant

Manage sellableWithoutStock for a given variant

PUT/variants/{variantIdentifier}/stocks/sellableWithoutStock

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Manage sellableWithoutStock for a given variant action (under Stocks).
  3. Fill in the fields below, then reference the result from later steps as {{manageSellablewithoutstockForAGivenVariant.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.

warehouseReferenceKeystringrequired

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

sellableWithoutStockbooleanrequired

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.

json
{
  "warehouseReferenceKey": "DefaultWarehouse",
  "sellableWithoutStock": true,
  "merchantReferenceKey": "string"
}

Response

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

warehouseReferenceKeystring

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

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.

json
{
  "warehouseReferenceKey": "DefaultWarehouse",
  "sellableWithoutStock": true,
  "merchantReferenceKey": "string"
}

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.

Manage sellableWithoutStock for a given variant — SCAYLE Admin — Documentation