POST
/
order

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 object

channelId
string
required

Sales channel ID

items
object[]
required

Array of items for which order is processed

orderNumber
string
required

Unique order number to be provided by merchant

shipInfo
object[]
required
statusCode
string
required

Order status code

attributes
object
cartId
string

ID of the cart for which order is created

currency
string

Currecy code used for order amount

customer
object

Order customer model

discounts
object[]

Array of discount objects

employeeId
string

ID of the employee who created the order or who helped creating the order.

fees
object[]
feeTotal
number

Order value after discount. Discount value is subtracted from order sub total.

notes
object[]

Notes section to be used for CSR only

orderDate
string

Actual order creation date when the order was created for the first time.

orderDiscount
number

Discounted amount

orderSubTotal
number

Base price of the ordered items before discounts. It does not include tax amount.

orderTotal
number

Total order value after calculating discount and tax values.

payments
object[]
retail
object

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

statusDescription
string

Order status description

subType
enum<string>

Operating system of the platform mentioned in the type field.

Available options:
IOS,
Android,
International
taxTotal
number

Total tax amount applicable on the order subtotal value.

type
enum<string>

Platform of order creation, for example, website, mobile application, point of sale, and so on.

Available options:
WEB,
CSC,
MOBILE_APP,
POS

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.