API reference · Orders
Get Order Details - Store
https://api.sandbox.cws.digital/partnerOrders/{id}Description
Returns the whole order: amounts, customer, payments, deliveries with their products, and the status history.
The route id is the partner order id (partnerOrderId), the id field of the listing — not the orderId. Mixing up the two is the most common error in this family of routes.
Parameters
Path parameters
| Field | Type | Required | Description | Value |
|---|---|---|---|---|
| id | integer | Yes | Id of the partner order ( |
Business rules
Customer data
Part of the customer data may come masked or omitted, depending on the store's marketplace contract, the branch link and the data restriction configuration of the origin store.
The customer block is always present; what varies is how it is filled. With restricted display, email, phone, optinTracking and trackingPhone come as ****.
Conditional blocks
They appear only when the order has the corresponding data:
discountsreplicaOrdersCreated,replicaPartnerOrdersCreated,originalOrderRedone,originalPartnerOrderRedoneandreasonToRePurchasecommentRefusing,reasonRefusingCodeandreasonRefusingDescriptionapprovalWorkflowTypes.workflowReason[]campaignpayrollDebitandmonsantoCredit, with theCOMMODITY_EXCHANGE_CAMPAIGNgateway and the commodity tax enableddeliveries[].deliveryCommodityInfo, inside each delivery, when the order hasorderCommodityExchangefreightTotalDiscountsupplierOrderId,supplierInvoiceNumber,supplierInvoiceSerie,supplierInvoiceKeyandsupplierInvoiceDateorderNamecashbackorderCustomerThirdPartyReferralcouponCodepartnerOrderAttributesorderDocumentsinvoices- the
externalAttributesobject, with theexternal*attributes customTaxpaymentDateVpvf
Responses
- 401
Missing, malformed or expired token.
- 404
The order does not exist or is not in your scope.