younifyd
Menu

Send a cancellation

Send a cancellation

POST/fulfillment/cancellations

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Send a cancellation action (under Fulfillment).
  3. Fill in the fields below, then reference the result from later steps as {{sendACancellation.response.data}}.

Request

Headers

X-Company-Idinteger

The ID of the company created by SCAYLE. When using a multi-tenancy environment, this parameter is required to correctly identify a tenant.

Request body

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

shopKeystringrequired

A key that uniquely identifies the shop within the tenant's ecosystem. Must be exactly 2 chars long.

countryCodestringrequired

ISO 3166 alpha 2 country code; use shop country ID instead of country code when a country is ambiguous within a shop

itemsarray<object>required

Collection of items requested for cancellation

orderItemIdintegerrequired
orderIdintegerrequired

Unique identity of the order for which the cancellation was requested

merchantReferenceKeystring

Reference key of the merchant to which the cancellation belongs to.

json
{
  "shopKey": "string",
  "countryCode": "string",
  "items": [
    {
      "orderItemId": 0
    }
  ],
  "orderId": 0,
  "merchantReferenceKey": "string"
}

Response

Returns 204 with a any. Read it in later steps with {{sendACancellation.response.data.<field>}}.

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

Send a cancellation — SCAYLE Admin — Documentation