---
title: "注文連絡先参照の取得(レガシー)"
slug: "retrieve-order-contact-references--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-contact-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>/contacts

注文の注文連絡先リストを取得します。

属性

種類

概要

例

orderRef

ストリング

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

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

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

"href": "<baseURL>/v2/orderContacts/<orderContactRef>"

注文連絡先の参照を使って [注文連絡先を取得し](https://doc.sitecore.com/cdp/ja/developers/api/rest-apis/legacy-rest-apis/order-contact-rest-api-v2--legacy-/retrieve-an-order-contact--legacy-.html "Retrieve an order contact (legacy)")ます。

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

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