Manage orders - Check Inventory
检索所提供国家/地区的清单验证结果。
POST https://api.partnercenter.microsoft.com/v{version}/extensions/product/checkinventory
POST https://api.partnercenter.microsoft.com/v{version}/extensions/product/checkinventory?country={country}
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
version
|
path | True |
string |
|
country
|
query |
string |
国家/地区信息。 国家/地区的两个字母表示形式 |
请求头
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Authorization | True |
string |
授权持有者令牌 |
ms-correlationid |
string |
用于在内部跟踪请求。 如果未提供 ms-correlationid,则服务器将为每个请求生成一个新请求 |
|
MS-CV |
string |
用于在内部跟踪请求。 如果未提供 MS-CV,服务器将为每个请求生成一个新请求 |
|
ms-requestid |
string |
用于请求的幂等性。 如果未提供 ms-requestid,服务器将为每个请求生成一个新请求 |
请求正文
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
名称 | 类型 | 说明 |
---|---|---|
inventoryCheckRequest |
清单检查请求。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
请求成功。 清单结果在响应正文中返回。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
定义
名称 | 说明 |
---|---|
Contracts. |
清单检查请求。 |
Contracts. |
|
Contracts. |
Contracts.V1.Models.InventoryCheckRequest
清单检查请求。
名称 | 类型 | 说明 |
---|---|---|
inventoryContext |
object |
|
targetItems |
Contracts.V1.Models.InventoryItem
名称 | 类型 | 说明 |
---|---|---|
isRestricted |
boolean |
|
productId |
string |
|
restrictions | ||
skuId |
string |
Contracts.V1.Models.InventoryRestriction
名称 | 类型 | 说明 |
---|---|---|
description |
string |
|
properties |
object |
|
reasonCode |
string |