Manage orders - Get a product by ID (by customer)
使用国家/地区和区域设置信息按标识符检索产品。
GET https://api.partnercenter.microsoft.com/v{version}/customers/{customerId}/products/{product_id}
GET https://api.partnercenter.microsoft.com/v{version}/customers/{customerId}/products/{product_id}?reservationScope={reservationScope}
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
customer
|
path | True |
string |
客户 ID。 |
product_id
|
path | True |
string |
产品标识符。 |
version
|
path | True |
string |
|
reservation
|
query |
string |
可选的预留范围筛选器。 |
请求头
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Authorization | True |
string |
授权持有者令牌 |
ms-correlationid |
string |
用于在内部跟踪请求。 如果未提供 ms-correlationid,则服务器将为每个请求生成一个新请求 |
|
MS-CV |
string |
用于在内部跟踪请求。 如果未提供 MS-CV,服务器将为每个请求生成一个新请求 |
|
ms-requestid |
string |
用于请求的幂等性。 如果未提供 ms-requestid,服务器将为每个请求生成一个新请求 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
请求成功。 请求的产品在响应正文中返回。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
定义
名称 | 说明 |
---|---|
Contracts. |
|
Contracts. |
|
Contracts. |
|
Link | |
System. |
Contracts.V1.Models.ItemType
名称 | 类型 | 说明 |
---|---|---|
displayName |
string |
|
id |
string |
|
subType |
Contracts.V1.Models.Product
名称 | 类型 | 说明 |
---|---|---|
description |
string |
|
id |
string |
|
isMicrosoftProduct |
boolean |
|
links | ||
localizedAttributes |
System. |
|
productType | ||
publisherName |
string |
|
title |
string |
Contracts.V1.Models.ProductLinks
名称 | 类型 | 说明 |
---|---|---|
next | ||
previous | ||
self | ||
skus |
Link
名称 | 类型 | 说明 |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
名称 | 类型 | 说明 |
---|---|---|
key |
string |
|
value |
string |