Manage orders - Get a product by ID
Hämtar en produkt med dess identifierare med hjälp av land- och språkinformation.
GET https://api.partnercenter.microsoft.com/v{version}/products/{product_id}
GET https://api.partnercenter.microsoft.com/v{version}/products/{product_id}?country={country}&reservationScope={reservationScope}
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
product_id
|
path | True |
string |
Produktidentifieraren. |
version
|
path | True |
string |
|
country
|
query |
string |
Landsinformationen. Två bokstavsrepresentation av landet |
|
reservation
|
query |
string |
Det valfria reservationsomfångsfiltret. |
Begärandehuvud
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 |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
Begäran lyckades. De begärda produkterna returneras i svarstexten. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definitioner
Name | Description |
---|---|
Contracts. |
|
Contracts. |
|
Contracts. |
|
Link | |
System. |
Contracts.V1.Models.ItemType
Name | Typ | Description |
---|---|---|
displayName |
string |
|
id |
string |
|
subType |
Contracts.V1.Models.Product
Name | Typ | Description |
---|---|---|
description |
string |
|
id |
string |
|
isMicrosoftProduct |
boolean |
|
links | ||
localizedAttributes |
System. |
|
productType | ||
publisherName |
string |
|
title |
string |
Contracts.V1.Models.ProductLinks
Name | Typ | Description |
---|---|---|
next | ||
previous | ||
self | ||
skus |
Link
Name | Typ | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Typ | Description |
---|---|---|
key |
string |
|
value |
string |