Partager via


Manage orders - Get a list of products (by country)

Récupère tous les produits à l’aide des informations de pays et de paramètres régionaux.

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}

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

reservationScope
query

string

Filtre d’étendue de réservation facultatif.

targetSegment
query

string

Filtre de segment facultatif.

targetView
query

string

Affichage catalogue demandé.

En-tête de la demande

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

Réponses

Nom Type Description
200 OK

ResourceCollection[Contracts.V1.Models.Product]

La demande a réussi. Les produits 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.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

Nom Type Description
displayName

string

id

string

subType

Contracts.V1.Models.ItemType

Contracts.V1.Models.Product

Nom Type 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

Nom Type Description
next

Link

previous

Link

self

Link

skus

Link

Nom Type Description
body

string

headers

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

method

string

uri

string

ResourceAttributes

Nom Type Description
etag

string

objectType

string

ResourceCollection[Contracts.V1.Models.Product]

Nom Type Description
attributes

ResourceAttributes

items

Contracts.V1.Models.Product[]

links

ResourceLinks

totalCount

integer

Nom Type Description
next

Link

previous

Link

self

Link

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

Nom Type Description
key

string

value

string