---
title: "Update an order (legacy)"
slug: "update-an-order--legacy-"
abstract: "Describes how to update an order using the Sitecore CDP Order REST API."
---
# Update an order (legacy)

> [!important]
> [A newer version of this REST API (v2.1) is available](https://api-docs.sitecore.com/cdp/order-rest-api). 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](https://doc.sitecore.com/cdp/en/developers/api/rest-apis/legacy-rest-apis/order-rest-api-v2--legacy-/differences-between-v2-and-v2-1-of-the-order-rest-apis.html "Differences between v2 and v2.1 of the Order REST APIs") 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.<br><br>If you do not know the order reference, first [retrieve orders](https://doc.sitecore.com/cdp/en/developers/api/rest-apis/legacy-rest-apis/order-rest-api-v2--legacy-/retrieve-orders--legacy-.html). | `d680c9be-4c07-4731-857e-9602034b15f2` |

```curl
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": "2026-12-19T12:`07:18`.149Z",
    "referenceId": "342-ABD",
    "paymentType": "Card",
    "cardType": "Visa",
    "status": "PURCHASED"
}'

```

```json
{
    "href": "<baseURL>/v2/orders/d680c9be-4c07-4731-857e-9602034b15f2",
    "ref": "d680c9be-4c07-4731-857e-9602034b15f2",
    "createdAt": "2026-12-19T12:`19:01`.268Z",
    "modifiedAt": "2026-12-26T09:`41:04`.268Z",
    "orderedAt": "2026-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": [...]
    }
}

```