Dela via


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

reservationScope
query

string

Det valfria reservationsomfångsfiltret.

targetSegment
query

string

Det valfria segmentfiltret.

targetView
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

ResourceCollection[Contracts.V1.Models.Product]

Begäran lyckades. Produkterna returneras i svarstexten.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

Definitioner

Name Description
Contracts.V1.Models.ItemType
Contracts.V1.Models.Product
Contracts.V1.Models.ProductLinks
Link
ResourceAttributes
ResourceCollection[Contracts.V1.Models.Product]
ResourceLinks
System.Collections.Generic.KeyValuePair[System.String,System.String]

Contracts.V1.Models.ItemType

Name Typ Description
displayName

string

id

string

subType

Contracts.V1.Models.ItemType

Contracts.V1.Models.Product

Name Typ Description
description

string

id

string

isMicrosoftProduct

boolean

links

Contracts.V1.Models.ProductLinks

localizedAttributes

System.Collections.Generic.KeyValuePair[System.String,System.String][]

productType

Contracts.V1.Models.ItemType

publisherName

string

title

string

Name Typ Description
next

Link

previous

Link

self

Link

skus

Link

Name Typ Description
body

string

headers

System.Collections.Generic.KeyValuePair[System.String,System.String][]

method

string

uri

string

ResourceAttributes

Name Typ Description
etag

string

objectType

string

ResourceCollection[Contracts.V1.Models.Product]

Name Typ Description
attributes

ResourceAttributes

items

Contracts.V1.Models.Product[]

links

ResourceLinks

totalCount

integer

Name Typ Description
next

Link

previous

Link

self

Link

System.Collections.Generic.KeyValuePair[System.String,System.String]

Name Typ Description
key

string

value

string