API reference · Callbacks and Webhooks
Orders Webhook Payload (Simplified)
Description
This is an example payload for the Orders Webhook in the simplified version.
Your store receives this notification and can use the id to fetch the complete details from the CWS API.
The version sent, simplified or complete, is the one set up in your store's integration.
Respond 200, 201 or 202 to confirm the receipt: CWS does not read the response body. On 401, CWS gets a new token and resends the notification once; any other status, 204 included, counts as a delivery failure.
Parameters
Headers
| Field | Type | Description |
|---|---|---|
| Authorization | string | CWS's credential on your endpoint: |
Payload
| Field | Type | Description |
|---|---|---|
| approvalWorkflow | boolean | Whether the order goes through an approval workflow. It comes |
| dateCreated | string | Date and time the partner order was created, in UTC−3: the trailing |
| id | integer | Partner order id at CWS. |
| lastUpdated | string | Date and time of the partner order's last change, in the same format as |
| orderId | integer | Id of the order that groups the partner orders of the same purchase. |
| partnerCompanyName | string | Corporate name of the partner (seller). |
| partnerDocument | string | Document of the partner (seller). |
| status | string | Order status in the event that triggered the notification: |
| workflowIsApproved | boolean | Whether the order was approved in the approval workflow. It comes |
{
"approvalWorkflow": false,
"dateCreated": "2025-04-23T12:17:24Z",
"id": 1503066,
"lastUpdated": "2025-04-23T12:18:01Z",
"orderId": 1457551,
"partnerCompanyName": "Nome da Loja Exemplo",
"partnerDocument": "30.424.972/0001-74",
"status": "AWAITING_PAYMENT",
"workflowIsApproved": false
}Expected response
- 200
Confirm with
200,201or202.