Sdílet prostřednictvím


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

Načte všechny produkty pomocí informací o zemi a národním prostředí.

GET https://api.partnercenter.microsoft.com/v{version}/customers/{customerId}/products
GET https://api.partnercenter.microsoft.com/v{version}/customers/{customerId}/products?targetView={targetView}&targetSegment={targetSegment}&reservationScope={reservationScope}

Parametry identifikátoru URI

Name V Vyžadováno Typ Description
customerId
path True

string

ID zákazníka.

version
path True

string

reservationScope
query

string

Volitelný filtr rozsahu rezervace.

targetSegment
query

string

Volitelný filtr segmentů.

targetView
query

string

Požadované zobrazení katalogu

Hlavička požadavku

Name Vyžadováno Typ Description
Authorization True

string

Nosný token autorizace

ms-correlationid

string

Používá se pro interní sledování požadavků. Pokud ms-correlationid není zadaný, server pro každý požadavek vygeneruje nový.

MS-CV

string

Používá se pro interní sledování požadavků. Pokud ms-CV není k dispozici, server vygeneruje nový pro každý požadavek.

ms-requestid

string

Používá se pro idempotenci požadavků. Pokud ms-requestid není zadaný, server pro každý požadavek vygeneruje nový.

Odpovědi

Name Typ Description
200 OK

ResourceCollection[Contracts.V1.Models.Product]

Žádost byla úspěšná. Produkty se vrátí v textu odpovědi.

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

Definice

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