API reference · Orders
Get Order Details - Marketplace
https://api.sandbox.cws.digital/partnerOrders/store/{id}Description
Returns the whole order of an order originated in your store: 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. The payload is the same as the store route; what changes is the scope of who can read it.
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.