---
title: "注文の更新(レガシー)"
slug: "update-an-order--legacy-"
abstract: "Sitecore CDP Order REST APIを使って注文を更新する方法を説明しています。"
---
# 注文の更新(レガシー)

> !重要[このREST APIの新しいバージョン(v2.1)が利用可能です](https://api-docs.sitecore.com/cdp/order-rest-api)。このREST APIが初めてなら、新しいバージョンを使いましょう。あるいは、すでに古いバージョンを使っているなら、[v2とv2.1の違いについて調](https://doc.sitecore.com/cdp/ja/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") べてアップグレードしてみてください。

POST /v2/orders/<orderRef>

注文を更新する。同じreferenceIdで、orderedAtの価値(購入日)が2日以内に注文を更新できます。

属性

種類

概要

例

orderRef

ストリング

命令の参照。  
  
注文の参照がわからない場合は、まず [注文を取り戻](https://doc.sitecore.com/cdp/ja/developers/api/rest-apis/legacy-rest-apis/order-rest-api-v2--legacy-/retrieve-orders--legacy-.html)してください。

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

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"
}'

{
 "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": ...
 }
}