Manage orders - Check Inventory
Récupère les résultats de validation d’inventaire pour le pays fourni.
POST https://api.partnercenter.microsoft.com/v{version}/extensions/product/checkinventory
POST https://api.partnercenter.microsoft.com/v{version}/extensions/product/checkinventory?country={country}
Paramètres URI
| Nom | Dans | Obligatoire | Type | Description |
|---|---|---|---|---|
|
version
|
path | True |
string |
|
|
country
|
query |
string |
Informations sur le pays. Représentation de deux lettres du pays |
En-tête de la demande
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
| Nom | Obligatoire | Type | Description |
|---|---|---|---|
| Authorization | True |
string |
Jeton du porteur d’autorisation |
| ms-correlationid |
string |
Utilisé pour le suivi des demandes en interne. Si un ms-correlationid n’est pas fourni, le serveur en génère un nouveau pour chaque requête |
|
| MS-CV |
string |
Utilisé pour le suivi des demandes en interne. Si un MS-CV n’est pas fourni, le serveur en génère un nouveau pour chaque requête |
|
| ms-requestid |
string |
Utilisé pour l’idempotency des requêtes. Si un ms-requestid n’est pas fourni, le serveur en génère un nouveau pour chaque requête |
Corps de la demande
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
| Nom | Type | Description |
|---|---|---|
| inventoryCheckRequest |
Demande de vérification de l’inventaire. |
Réponses
| Nom | Type | Description |
|---|---|---|
| 200 OK |
La demande a réussi. Les résultats de l’inventaire sont retournés dans le corps de la réponse. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Définitions
| Nom | Description |
|---|---|
|
Contracts. |
Demande de vérification de l’inventaire. |
|
Contracts. |
|
|
Contracts. |
Contracts.V1.Models.InventoryCheckRequest
Demande de vérification de l’inventaire.
| Nom | Type | Description |
|---|---|---|
| inventoryContext |
object |
|
| targetItems |
Contracts.V1.Models.InventoryItem
| Nom | Type | Description |
|---|---|---|
| isRestricted |
boolean |
|
| productId |
string |
|
| restrictions | ||
| skuId |
string |
Contracts.V1.Models.InventoryRestriction
| Nom | Type | Description |
|---|---|---|
| description |
string |
|
| properties |
object |
|
| reasonCode |
string |