Skip to main content
Users
CloudPortalLogin
  • Powered byPowered by
Developing with Sitecore CDP
Data privacy
Before you start sending data
Integrating with Sitecore CDP
Stream API
Batch API
REST APIs
Data lake export service
  • Sitecore CDP for developers
  • REST APIs
  • Legacy REST APIs
  • Order REST API v2 (legacy)
  • Update an order (legacy)

Update an order (legacy)

Important

A newer version of this REST API (v2.1) is available. If you're new to this REST API, use the new version. Alternatively, if you're already using the old version, read about the differences between v2 and v2.1 so you can upgrade.

POST /v2/orders/<orderRef>

Updates the order. You can update orders that have the same referenceId and have orderedAt values (purchase dates) within two days of another.

Attribute

Type

Description

Example

orderRef

string

The reference of the order.

If you do not know the order reference, first retrieve orders.

d680c9be-4c07-4731-857e-9602034b15f2

RequestResponse
curl -X POST <baseURL>/v2/orders/d680c9be-4c07-4731-857e-9602034b15f2' \
-u '<username>:<password>' \
-H 'Accept: application/json' \
--data-raw '
{
    "pointOfSale": "spinair.com/france",
    "channel": "WEB",
    "currencyCode": "EUR",
    "price": 12,
    "orderedAt": "2025-12-19T12:07:18.149Z",
    "referenceId": "342-ABD",
    "paymentType": "Card",
    "cardType": "Visa",
    "status": "PURCHASED"
}'
RequestResponse
{
    "href": "<baseURL>/v2/orders/d680c9be-4c07-4731-857e-9602034b15f2",
    "ref": "d680c9be-4c07-4731-857e-9602034b15f2",
    "createdAt": "2025-12-19T12:19:01.268Z",
    "modifiedAt": "2025-12-26T09:41:04.268Z",
    "orderedAt": "2025-12-19T12:07:18.149Z",
    "currencyCode": "EUR",
    "price": 12,
    "referenceId": "342-ABD",
    "paymentType": "Card",
    "cardType": "Visa",
    "pointOfSale": "spinair.com/france",
    "channel": "WEB",
    "status": "PURCHASED",
    "contacts": {
        "items": [...]
    },
    "consumers": {
        "items": [...]
    },
    "orderItems": {
        "items": [...]
    }
}

Do you have some feedback for us?

If you have suggestions for improving this article,

Privacy policySitecore Trust CenterCopyright © 1999-2025 Sitecore