Check order-cancellation eligibility
Checks if a specific order is eligible for cancellation.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
The x-site-context
header is a JSON object that contains information about the source you wish to pull from. The mandatory account
is the 24 character identifier found in Copilot. The channel
(Sales channel ID), stage
(environment name), and date
attributes can be used to further narrow the scope of your data source.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
Query Parameters
Oder ID
"62f3982438bcab1951be0a19"
Array of line item IDs to check if the line items are eligible for cancellation
Response
Order eligibility object
Order ID
"62f3982438bcab1951be0a19"
Reason codes allowed for returns
Reason codes allowed for returns
Policy type
"Exchange or return or cancellation"
Provides the configured duration for returns
"30D00H00M"
List of items with their eligibility to return
Item's return or exchange eligibility information
fees
Order policy fee object
Was this page helpful?