API reference · Callbacks and Webhooks

Orders Webhook Payload (Simplified)

POSTWebhook

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

FieldTypeDescription
Authorizationstring

CWS's credential on your endpoint: Bearer <token>, with the token CWS got from your store's authentication endpoint, or Basic <credential>, when your store's integration uses a fixed credential.

Payload

FieldTypeDescription
approvalWorkflowboolean

Whether the order goes through an approval workflow. It comes false when not set.

dateCreatedstring

Date and time the partner order was created, in UTC−3: the trailing Z does not mean UTC.

idinteger

Partner order id at CWS.

lastUpdatedstring

Date and time of the partner order's last change, in the same format as dateCreated.

orderIdinteger

Id of the order that groups the partner orders of the same purchase.

partnerCompanyNamestring

Corporate name of the partner (seller).

partnerDocumentstring

Document of the partner (seller).

statusstring

Order status in the event that triggered the notification: PRE_ORDER, AWAITING_PAYMENT, PAYMENT_APPROVED, STORE_PAYMENT, READY, SHIPPED, DELIVERED, COMPLETED, CANCELED, STRAYED, RETURNED or WITHOUT_CREDIT_LIMIT. Your store only receives the statuses enabled in its integration.

workflowIsApprovedboolean

Whether the order was approved in the approval workflow. It comes false when not set.

Order awaiting payment
{
  "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, 201 or 202.