Order Cancellation
Check order-cancellation eligibility
Checks if a specific order is eligible for cancellation.
GET
/
order
/
cancel
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
x-site-context
string
requiredThe 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.
Query Parameters
orderId
string
requiredOder ID
lineItemIds
string[]
Array of line item IDs to check if the line items are eligible for cancellation
Response
200 - application/json
Order eligibility object
orderId
string
Order ID
eligibleReasonCodes
string[]
Reason codes allowed for returns
policyType
string
Policy type
period
string
Provides the configured duration for returns
items
object[]
List of items with their eligibility to return
fees
object[]
fees
Was this page helpful?