POST
/
order
/
cancel

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

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.

Body

application/json

Order cancellation request object

orderId
string
required
reasonCode
string
required

Set to all line items and header audits logs

attributes
object

Set attributes to header level audit log's attribute object

employeeId
number

Determine who initiate the request

items
object[]

Set when doing line item level cancellation other set to null or empty

note
string

Use to add notes

policyCode
string

Set policy code

source
string

Determine where the request is initialize

subReasonCode
string

Set to all line items and header audits logs

Response

200 - application/json

Order response body

channelId
string
required

Sales channel ID

items
object[]
required
orderNumber
string
required

Unique order number

shipInfo
object[]
required
statusCode
string
required
allocationDate
string

Order allocation date after order is created

appeasements
object[]

Array of appeasements, if any

appeasementTotal
number

Appeasement amount, if any, processed on the order

attributes
object
auditLogs
object[]
cancellationDate
string

Order cancellation date if any

cancelTotal
number

Cancel amount incase of order cancellation

cartId
string

ID of the cart where order is placed

createdAt
string

Date and time when the original order is modified for the first time, for example for return, cancellation or replacement

currency
string
customer
object

Order customer model

discounts
object[]
employeeId
string

Employee ID used when an employee places an order on behave of the customer.

fees
object[]
feeTotal
number

Total fees, if any, applicable on order amount

invoiceTotal
number

Invoice value on order

notes
object[]
orderDate
string

Actual order creation date

orderDiscount
number

Final discount value on order amount

orderId
string

Auto generated ID once the order created successfully

orderReleaseTimestamp
string

Order dispatched date and time

orderSubTotal
number

Order value after calculating discounts and any applicable fees

orderTotal
number

Total order amount after calculating fees, discounts, retrurn and cancellation if any

originalDiscounts
number

Original discount on order value

originalFeeTotal
number

Original fees appliable on shipping of items

originalOrderTotal
number

Order amount during first time order creation after calculating all fees, taxes, and discounts

originalSubTotal
number

Original order total value

originalTaxTotal
number

Original tax amount on order during fist time order creation

payments
object[]
processName
string

Order process name

retail
object

Order retail object for reatil transactions. For non-retail transactions, only location number is provided.

returnTotal
number

Return amount incase of order return

statusDescription
string
subType
enum<string>

Operating system of the platfom as mentioned in the type field. If you want to configure any custom valuefor this field, contact fabric.

Available options:
IOS,
Android,
International
taxTotal
number

Total tax amount appliable on shipping of items

type
enum<string>

Platfrom using which order is created

Available options:
WEB,
CSC,
MOBILE_APP,
POS
updatedAt
string

Date and time when the exisiting order is updated

version
integer

Number of updates happened to the order. Order-update refers to replacement, appeasement added, address change or any other order related update to the particular order.