Manage orders - Check Inventory
Hämtar inventeringsvalideringsresultat för det angivna landet.
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-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
version
|
path | True |
string |
|
country
|
query |
string |
Landsinformationen. Två bokstavsrepresentation av landet |
Begärandehuvud
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Obligatorisk | Typ | Description |
---|---|---|---|
Authorization | True |
string |
Token för auktoriseringsbärare |
ms-correlationid |
string |
Används för att spåra begäranden internt. Om ett ms-correlationid inte anges genererar servern en ny för varje begäran |
|
MS-CV |
string |
Används för att spåra begäranden internt. Om en MS-CV inte tillhandahålls genererar servern en ny för varje begäran |
|
ms-requestid |
string |
Används för idempotens för begäranden. Om ett ms-requestid inte har angetts genererar servern en ny för varje begäran |
Begärandetext
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Typ | Description |
---|---|---|
inventoryCheckRequest |
Begäran om inventeringskontroll. |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
Begäran lyckades. Inventeringsresultatet returneras i svarstexten. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definitioner
Name | Description |
---|---|
Contracts. |
Begäran om inventeringskontroll. |
Contracts. |
|
Contracts. |
Contracts.V1.Models.InventoryCheckRequest
Begäran om inventeringskontroll.
Name | Typ | Description |
---|---|---|
inventoryContext |
object |
|
targetItems |
Contracts.V1.Models.InventoryItem
Name | Typ | Description |
---|---|---|
isRestricted |
boolean |
|
productId |
string |
|
restrictions | ||
skuId |
string |
Contracts.V1.Models.InventoryRestriction
Name | Typ | Description |
---|---|---|
description |
string |
|
properties |
object |
|
reasonCode |
string |