Manage orders - Get promotion eligibilities
Hämtar berättigande till befordran baserat på objekten för begäran om godkänd befordransberättigande.
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/promotionEligibilities
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
|
version
|
path | True |
string |
Begärandehuvud
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Obligatorisk | Typ | Description |
---|---|---|---|
Authorization | True |
string |
Ägartoken för auktorisering |
MS-CorrelationId |
string |
Används för att spåra begäranden internt. Om en 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 inget MS-CV anges genererar servern en ny för varje begäran |
|
MS-RequestId |
string |
Används för idempotens för begäranden. Om en MS-RequestId inte anges genererar servern en ny för varje begäran |
Begärandetext
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Typ | Description |
---|---|---|
attributes | ||
items |
Microsoft. |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
Begäran lyckades. Svarstexten innehåller information om berättigande till befordran. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definitioner
Microsoft.Partner.Core.Collections.Link
Name | Typ | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
Name | Typ | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Core.Collections.ResourceCollection`1[Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibility]
Name | Typ | Description |
---|---|---|
attributes | ||
items |
Microsoft. |
|
links | ||
totalCount |
integer |
Microsoft.Partner.Core.Collections.ResourceLinks
Name | Typ | Description |
---|---|---|
next | ||
previous | ||
self |
Microsoft.Partner.Services.RuleEngine.Models.Enums.BillingCycleType
Name | Typ | Description |
---|---|---|
0 |
Integer |
|
1 |
Integer |
|
2 |
Integer |
|
3 |
Integer |
|
4 |
Integer |
|
5 |
Integer |
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilitiesRequest
Name | Typ | Description |
---|---|---|
attributes | ||
items |
Microsoft. |
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilitiesRequestItem
Name | Typ | Description |
---|---|---|
billingCycle |
Microsoft. |
|
catalogItemId |
string |
|
id |
integer |
|
promotionId |
string |
|
quantity |
integer |
|
termDuration |
string |
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibility
Name | Typ | Description |
---|---|---|
errors |
Microsoft. |
|
isEligible |
boolean |
|
promotionId |
string |
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilityError
Name | Typ | Description |
---|---|---|
description |
string |
|
type |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Typ | Description |
---|---|---|
key |
string |
|
value |
string |