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\"}"
Path Parameters
Response
Invoice fetched
Invoice Model
Unique Id of the invoice
"62ff5c0bec0aed3c86202c32"
Shipment Id in case of invoice type as Shipment
"62ff5c0bec0aed3c86202c32"
Current status of the invoice
"CREATED/POSTED/ACKNOWLEDGED"
Required field channel Id
"strate"
Total amount invoiced
245.7
Total tax amount invoiced
245.7
Currency type in which amount invoiced
"dollar"
Unique number of the invoice
"23940791"
InvoiceStatus Model
CAPTURED
, SETTLED
, SETTLE_FAILED
, PARTIAL_SETTLED
, DRAFT
, ISSUED
, CREDITED
, DELETED
"CAPTURED/SETTLED"
InvoiceType Model
RETURN
, SHIPPING
, APPEASEMENT
"SHIPPING/APPEASEMENT"
Date when order invoiced
"2022-08-01T20:03:28.483971941Z"
Shipment Number in case of invoice type as Shipment
"217088603"
Date when order shipped
"2022-08-01T20:03:28.483971941Z"
order details for the invoice
locationNum in case of invoice type as Shipment
3235
Invoice Location
"object"
InvoiceRetail Model
Date when invoice created
"2022-08-01T20:03:28.483971941Z"
Date when invoice updated
"2022-08-01T20:03:28.483971941Z"
Date when invoice posted for financial process
"2022-08-01T20:03:28.483971941Z"
Date when invoice acknowledged
"2022-08-01T20:03:28.483971941Z"
InvoiceCustomer Model
Audit log list
OrderShipInfo Model