Dela via


Manage orders - Get a product by ID (by customer)

Hämtar en produkt med dess identifierare med hjälp av land- och språkinformation.

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

URI-parametrar

Name I Obligatorisk Typ Description
customerId
path True

string

Kund-ID: t.

product_id
path True

string

Produktidentifieraren.

version
path True

string

reservationScope
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

Contracts.V1.Models.Product

Begäran lyckades. De begärda 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
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

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

Name Typ Description
key

string

value

string