Udostępnij za pośrednictwem


Manage orders - Get promotion eligibilities

Pobiera uprawnienia do promocji na podstawie przekazanych elementów żądania uprawnień do podwyższenia poziomu.

POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/promotionEligibilities

Parametry identyfikatora URI

Nazwa W Wymagane Typ Opis
customer_id
path True

string

version
path True

string

Nagłówek żądania

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

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 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 nie podano MS-RequestId, serwer wygeneruje nowy dla każdego żądania

Treść żądania

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Nazwa Typ Opis
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

items

Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilitiesRequestItem[]

Odpowiedzi

Nazwa Typ Opis
200 OK

Microsoft.Partner.Core.Collections.ResourceCollection`1[Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibility]

Żądanie zakończyło się pomyślnie. Treść odpowiedzi zawiera informacje o uprawnieniach do promocji.

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

Definicje

Nazwa Opis
Microsoft.Partner.Core.Collections.Link
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Core.Collections.ResourceCollection`1[Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibility]
Microsoft.Partner.Core.Collections.ResourceLinks
Microsoft.Partner.Services.RuleEngine.Models.Enums.BillingCycleType
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilitiesRequest
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilitiesRequestItem
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibility
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilityError
System.Collections.Generic.KeyValuePair[System.String,System.String]
Nazwa Typ Opis
body

string

headers

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

method

string

uri

string

Microsoft.Partner.Core.Collections.ResourceAttributes

Nazwa Typ Opis
etag

string

objectType

string

Microsoft.Partner.Core.Collections.ResourceCollection`1[Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibility]

Nazwa Typ Opis
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

items

Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibility[]

links

Microsoft.Partner.Core.Collections.ResourceLinks

totalCount

integer

Nazwa Typ Opis
next

Microsoft.Partner.Core.Collections.Link

previous

Microsoft.Partner.Core.Collections.Link

self

Microsoft.Partner.Core.Collections.Link

Microsoft.Partner.Services.RuleEngine.Models.Enums.BillingCycleType

Nazwa Typ Opis
0

Integer

1

Integer

2

Integer

3

Integer

4

Integer

5

Integer

Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilitiesRequest

Nazwa Typ Opis
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

items

Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilitiesRequestItem[]

Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilitiesRequestItem

Nazwa Typ Opis
billingCycle

Microsoft.Partner.Services.RuleEngine.Models.Enums.BillingCycleType

catalogItemId

string

id

integer

promotionId

string

quantity

integer

termDuration

string

Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibility

Nazwa Typ Opis
errors

Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilityError[]

isEligible

boolean

promotionId

string

Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilityError

Nazwa Typ Opis
description

string

type

string

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

Nazwa Typ Opis
key

string

value

string