API reference · Orders

Get Order Details - Store

GEThttps://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

FieldTypeRequiredDescriptionValue
idintegerYes

Id of the partner order (partnerOrderId), the id field of the listing.

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:

  • discounts
  • replicaOrdersCreated, replicaPartnerOrdersCreated, originalOrderRedone, originalPartnerOrderRedone and reasonToRePurchase
  • commentRefusing, reasonRefusingCode and reasonRefusingDescription
  • approvalWorkflowTypes.workflowReason[]
  • campaign
  • payrollDebit and monsantoCredit, with the COMMODITY_EXCHANGE_CAMPAIGN gateway and the commodity tax enabled
  • deliveries[].deliveryCommodityInfo, inside each delivery, when the order has orderCommodityExchange
  • freightTotalDiscount
  • supplierOrderId, supplierInvoiceNumber, supplierInvoiceSerie, supplierInvoiceKey and supplierInvoiceDate
  • orderName
  • cashback
  • orderCustomerThirdPartyReferral
  • couponCode
  • partnerOrderAttributes
  • orderDocuments
  • invoices
  • the externalAttributes object, with the external* attributes
  • customTax
  • paymentDateVpvf

Responses

  • 401

    Missing, malformed or expired token.

  • 404

    The order does not exist or is not in your scope.

Try it

Sandbox

Language

Credentials

Access token: saved in this tab and used on every endpoint.

Each token only reaches the partner's own data and that of the branches with an authorized link.

Don't have sandbox credentials yet? See how to request them

Request

cURL
curl --request GET \
  --url 'https://api.sandbox.cws.digital/partnerOrders/900201' \
  --header 'Authorization: Bearer <access_token>'

Response

Click Try it to see the real response here, or pick a documented example: