Udostępnij za pośrednictwem


Manage orders - Get Offer by ID

Pobiera ofertę według identyfikatora partnera przy użyciu informacji o kraju i ustawieniach regionalnych.

GET https://api.partnercenter.microsoft.com/v{version}/offers/{offer_id}
GET https://api.partnercenter.microsoft.com/v{version}/offers/{offer_id}?country={country}

Parametry identyfikatora URI

Nazwa W Wymagane Typ Opis
offer_id
path True

string

Identyfikator oferty.

version
path True

string

country
query

string

Informacje o kraju. Dwuliterowa reprezentacja kraju

Nagłówek żądania

Nazwa Wymagane Typ Opis
Authorization True

string

Token elementu nośnego autoryzacji

ms-correlationid

string

Służy do śledzenia żądań wewnętrznie. Jeśli nie podano identyfikatora ms-correlationid, serwer wygeneruje nowy dla każdego żądania

MS-CV

string

Służy do śledzenia żądań wewnętrznie. Jeśli ms-CV nie zostanie podany, serwer wygeneruje nowy dla każdego żądania

ms-requestid

string

Służy do idempotentności żądań. Jeśli parametr ms-requestid nie zostanie podany, serwer wygeneruje nowy dla każdego żądania

Odpowiedzi

Nazwa Typ Opis
200 OK

Contracts.V1.Models.Offer

Żądanie zakończyło się pomyślnie. Informacje o ofertach żądanego partnera są zwracane w treści odpowiedzi.

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

Definicje

Nazwa Opis
Contracts.V1.Models.Enums.OfferProduct
Contracts.V1.Models.Offer
Contracts.V1.Models.OfferAttestationProperties
Contracts.V1.Models.OfferCategory
Contracts.V1.Models.OfferLinks
Link
ResourceAttributes
ResourceLinks
SupportedBillingCycles
SupportedCatalogTypes
System.Collections.Generic.KeyValuePair[System.String,System.String]

Contracts.V1.Models.Enums.OfferProduct

Nazwa Typ Opis
id

string

name

string

type

string

unit

string

Contracts.V1.Models.Offer

Nazwa Typ Opis
acquisitionType enum:
  • purchase
  • referral
actions

string[]

additionalProperties

object

attestationProperties

Contracts.V1.Models.OfferAttestationProperties

attributes

ResourceAttributes

billing enum:
  • license
  • none
  • usage
category

Contracts.V1.Models.OfferCategory

conversionTargetOffers

string[]

country

string

description

string

hasAddOns

boolean

id

string

isAddOn

boolean

isAutoRenewable

boolean

isAvailableForPurchase

boolean

isInternal

boolean

isMicrosoftProduct

boolean

isTrial

boolean

limit

integer

limitUnitOfMeasure

string

links

Contracts.V1.Models.OfferLinks

locale

string

maximumQuantity

integer

minimumQuantity

integer

name

string

orderService

string

prerequisiteOffers

string[]

product

Contracts.V1.Models.Enums.OfferProduct

providerId

string

providerLocationId

string

providerName

string

rank

integer

reselleeQualifications

string[]

resellerQualifications

string[]

salesGroupId

string

supportedBillingCycles

SupportedBillingCycles[]

supportedCatalogTypes

SupportedCatalogTypes[]

term

integer

termUnitOfMeasure

string

unitType

string

upgradeTargetOffers

string[]

uri

string

Contracts.V1.Models.OfferAttestationProperties

Nazwa Typ Opis
attestationType

string

enforceAttestation

boolean

Contracts.V1.Models.OfferCategory

Nazwa Typ Opis
attributes

ResourceAttributes

country

string

id

string

links

ResourceLinks

locale

string

name

string

rank

integer

Nazwa Typ Opis
learnMore

Link

next

Link

previous

Link

self

Link

Nazwa Typ Opis
body

string

headers

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

method

string

uri

string

ResourceAttributes

Nazwa Typ Opis
etag

string

objectType

string

Nazwa Typ Opis
next

Link

previous

Link

self

Link

SupportedBillingCycles

Nazwa Typ Opis
annual

string

monthly

string

none

string

one_time

string

triennial

string

unknown

string

SupportedCatalogTypes

Nazwa Typ Opis
live

string

sandbox

string

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

Nazwa Typ Opis
key

string

value

string