younifyd
Menu

Update or create a product variant price

Update or create a product variant price

POST/variants/{variantIdentifier}/prices

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Update or create a product variant price action (under Prices).
  3. Fill in the fields below, then reference the result from later steps as {{updateOrCreateAProductVariantPrice.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 =

Query parameters

witharray<string>

Comma-separated list of additional properties that should be included in the response.

Request body

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

keystring

Key assigned by SCAYLE.

priceintegerrequired

Price of the variant.

oldPriceinteger

Old price of the variant.

recommendedRetailPriceinteger

Recommended retail price of the variant.

buyingPriceinteger

Buying price of the variant.

taxnumber (double)required

A valid tax rate.

countryCodestringrequired

ISO 3166 alpha 2 country code.

currencyCodestringrequired

ISO 4217 currency code.

groupKeystring

Key of the group the price is assigned to.

promotionKeystring

Key of the promotion the price is assigned to.

unitPriceobject

Describes the unit price.

unitstringrequired

The name of the unit the amount and price references to.

amountintegerrequired

The amount referenced by the price.

priceintegerrequired

The reference price.

validFromstring (date-time)

Controls when the price will be activated. If not present or null, the valid from is specified from now.

validTostring (date-time)

Controls when the price will be deactivated. If not present or null, the price is valid forever.

merchantReferenceKeystring

A merchant reference key the price belongs to.

customDataany
json
{
  "price": 9999,
  "tax": 19,
  "countryCode": "DE",
  "currencyCode": "EUR",
  "key": "1-100",
  "oldPrice": 10999,
  "recommendedRetailPrice": 9999,
  "buyingPrice": 9999,
  "groupKey": "myPriceGroup",
  "promotionKey": "myPromotion",
  "unitPrice": {
    "unit": "ml",
    "amount": 100,
    "price": 999
  },
  "validFrom": "2021-09-23T11%3A30%3A58%2B00%3A00"
}

Response

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

keystring

Key assigned by SCAYLE.

priceinteger

Price of the variant.

oldPriceinteger

Old price of the variant.

recommendedRetailPriceinteger

Recommended retail price of the variant.

buyingPriceinteger

Buying price of the variant.

taxnumber (double)

A valid tax rate.

countryCodestring

ISO 3166 alpha 2 country code.

currencyCodestring

ISO 4217 currency code.

groupKeystring

Key of the group the price is assigned to.

promotionKeystring

Key of the promotion the price is assigned to.

unitPriceobject

Describes the unit price.

unitstringrequired

The name of the unit the amount and price references to.

amountintegerrequired

The amount referenced by the price.

priceintegerrequired

The reference price.

validFromstring (date-time)

Controls when the price will be activated. If not present or null, the valid from is specified from now.

validTostring (date-time)

Controls when the price will be deactivated. If not present or null, the price is valid forever.

merchantReferenceKeystring

A merchant reference key the price belongs to.

customDataany
json
{
  "price": 9999,
  "tax": 19,
  "countryCode": "DE",
  "currencyCode": "EUR",
  "key": "1-100",
  "oldPrice": 10999,
  "recommendedRetailPrice": 9999,
  "buyingPrice": 9999,
  "groupKey": "myPriceGroup",
  "promotionKey": "myPromotion",
  "unitPrice": {
    "unit": "ml",
    "amount": 100,
    "price": 999
  },
  "validFrom": "2021-09-23T11%3A30%3A58%2B00%3A00"
}

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