Manage orders - Get a list of products (by country)
Hämtar alla produkter med hjälp av land- och språkinformation.
GET https://api.partnercenter.microsoft.com/v{version}/products
GET https://api.partnercenter.microsoft.com/v{version}/products?country={country}&targetView={targetView}&targetSegment={targetSegment}&reservationScope={reservationScope}
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
version
|
path | True |
string |
|
country
|
query |
string |
Landsinformationen. Två bokstavsrepresentation av landet |
|
reservation
|
query |
string |
Det valfria reservationsomfångsfiltret. |
|
target
|
query |
string |
Det valfria segmentfiltret. |
|
target
|
query |
string |
Katalogvyn som begärs. |
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. Produkterna returneras i svarstexten. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definitioner
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 |
ResourceAttributes
Name | Typ | Description |
---|---|---|
etag |
string |
|
objectType |
string |
ResourceCollection[Contracts.V1.Models.Product]
Name | Typ | Description |
---|---|---|
attributes | ||
items | ||
links | ||
totalCount |
integer |
ResourceLinks
Name | Typ | Description |
---|---|---|
next | ||
previous | ||
self |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Typ | Description |
---|---|---|
key |
string |
|
value |
string |