Updates an order. You can update orders that have the same referenceId and have orderedAt values (purchase dates) within two days of another. referenceId and orderedAt cannot be updated.
The currency the guest used to complete a purchase. Set this to the organization’s default currency.
The date and time when the order was made.
A unique identifier generated by your organization to reference the order. For flight orders, this is often the PNR.
The date and time when the resource was created in Sitecore CDP.
The date and time when the resource was updated in Sitecore CDP.
The method of payment for the order.
The card type used to pay for the order.
The point of sale used in the order.
The channel used in the order.
- Production server APhttps://api-engage-ap.sitecorecloud.io/v2.1/orders/{orderRef}
- Production server EUhttps://api-engage-eu.sitecorecloud.io/v2.1/orders/{orderRef}
- Production server JPhttps://api-engage-jpe.sitecorecloud.io/v2.1/orders/{orderRef}
- Production server UShttps://api-engage-us.sitecorecloud.io/v2.1/orders/{orderRef}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u '<username>:<password>' \
https://api-engage-ap.sitecorecloud.io/v2.1/orders/2d7de9df-45a2-45ea-872c-30e45139007d \
-H 'Content-Type: application/json' \
-d '{
"createdAt": "2024-01-01T16:17:16Z",
"modifiedAt": "2024-01-01T16:17:16Z",
"orderedAt": "2024-01-01T16:17:16Z",
"currencyCode": "EUR",
"price": 50,
"referenceId": "B94TXY-1",
"paymentType": "Card",
"cardType": "Visa",
"pointOfSale": "home",
"channel": "WEB",
"status": "PURCHASED"
}'Successful operation
The order reference. This is a unique identifier of the order record. Use the order reference to interact with a specific order, for example, to retrieve it, update it, or create a data extension for it.
The link to the order.
The date and time when the resource was created in Sitecore CDP.
The date and time when the resource was updated in Sitecore CDP.
The date and time when the order was made.
The currency the guest used to complete a purchase.
A unique identifier generated by your organization to reference the order. For flight orders, this is often the PNR.
The method of payment for the order.
The card type used to pay for the order.
The point of sale used in the order.
The channel used in the order.
The status of the order.
{ "ref": "2d7de9df-45a2-45ea-872c-30e45139007d", "href": "https://api-engage-eu.sitecorecloud.io/v2.1/orders/2d7de9df-45a2-45ea-872c-30e45139007d", "createdAt": "2024-01-01T16:17:16Z", "modifiedAt": "2024-01-01T16:17:16Z", "orderedAt": "2024-01-01T16:17:16Z", "currencyCode": "EUR", "price": 50, "referenceId": "B94TXY-1", "paymentType": "Card", "cardType": "Visa", "pointOfSale": "home", "channel": "WEB", "status": "PURCHASED", "contacts": { "items": [] }, "consumers": { "items": [] }, "orderItems": { "items": [] } }