younifyd
Menu

Update an existing voucher criterion

Update an existing voucher criterion

PUT/shops/{shopKey}/countries/{countryCode}/vouchers/{voucherId}/criteria/{voucherCriterionId}

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Update an existing voucher criterion action (under Vouchers).
  3. Fill in the fields below, then reference the result from later steps as {{updateAnExistingVoucherCriterion.response.data}}.

Request

Path parameters

shopKeystringrequired

The shop key.

countryCodestringrequired

The shop country code; use shop country ID instead of country code when a country is ambiguous within a shop.

voucherIdintegerrequired

The voucher ID.

voucherCriterionIdintegerrequired

The voucher criterion ID.

Request body

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

idinteger
keystringrequired

One ofshopCategoryIdmasterCategoryIdcustomerIdemailHashbrandIdproductIdcustomerGroupshopCountryIdmerchantIdpaymentType

typestringrequired

If the 'shopCategoryId' key is utilized, it should be associated with a 'country' type of application rather than 'shop'.

One ofincludeexclude

valuearray<any>required
json
{
  "key": "shopCategoryId",
  "type": "include",
  "value": [
    null
  ],
  "id": 0
}

Response

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

idinteger
keystring

One ofshopCategoryIdmasterCategoryIdcustomerIdemailHashbrandIdproductIdcustomerGroupshopCountryIdmerchantIdpaymentType

typestring

If the 'shopCategoryId' key is utilized, it should be associated with a 'country' type of application rather than 'shop'.

One ofincludeexclude

valuearray<any>
json
{
  "key": "shopCategoryId",
  "type": "include",
  "value": [
    null
  ],
  "id": 0
}

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

Update an existing voucher criterion — SCAYLE Admin — Documentation