---
title: "順序アイテム参照の取得(レガシー)"
slug: "retrieve-order-item-references--legacy-"
abstract: "Sitecore CDP Order item 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-item-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") べてアップグレードしてみてください。

GET /v2/orders/<orderRef>/orderItems

注文の注文品のリストを取得します。

属性

種類

概要

例

orderRef

ストリング

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

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

応答において、items.hrefにおいて、順序項目参照は最後のスラッシュの後に続く文字列です:

"href": "<baseURL>/v2/orderItems/<orderItemRef>"

注文品目を参照して [注文品](https://doc.sitecore.com/cdp/ja/developers/api/rest-apis/legacy-rest-apis/order-item-rest-api-v2--legacy-/retrieve-an-order-item--legacy-.html "Retrieve an order item (legacy)")を取得します。

curl -X GET '<baseURL>/v2/orders/d680c9be-4c07-4731-857e-9602034b15f2/orderItems' \\
-u '<username>:<password>' \\
-H 'Accept: application/json'

{
 "href": "<baseURL>/v2/orders/d680c9be-4c07-4731-857e-9602034b15f2/orderItems?offset=0&limit=10",
 "offset": 0,
 "limit": 10,
 "items": {
 "href": "<baseURL>/v2/orderItems/FECBB7ED-6DFE-4E8C-85A9-B894B17EF4F3"
 }
}