Manage orders - Get promotion eligibilities
Gets the promotion eligibilities based on the passed promotion eligibility request items.
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/promotionEligibilities
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
|
version
|
path | True |
string |
Request Header
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Required | Type | Description |
---|---|---|---|
Authorization | True |
string |
Authorization Bearer Token |
MS-CorrelationId |
string |
Used for tracking requests internally. If a MS-CorrelationId is not provided, the server will generate a new one for each request |
|
MS-CV |
string |
Used for tracking requests internally. If a MS-CV is not provided, the server will generate a new one for each request |
|
MS-RequestId |
string |
Used for idempotency of requests. If a MS-RequestId is not provided, the server will generate a new one for each request |
Request Body
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Type | Description |
---|---|---|
attributes | ||
items |
Microsoft. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The request was successful. The response body contains the promotion eligibility information. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definitions
Microsoft.Partner.Core.Collections.Link
Name | Type | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
Name | Type | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Core.Collections.ResourceCollection`1[Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibility]
Name | Type | Description |
---|---|---|
attributes | ||
items |
Microsoft. |
|
links | ||
totalCount |
integer |
Microsoft.Partner.Core.Collections.ResourceLinks
Name | Type | Description |
---|---|---|
next | ||
previous | ||
self |
Microsoft.Partner.Services.RuleEngine.Models.Enums.BillingCycleType
Name | Type | Description |
---|---|---|
0 |
Integer |
|
1 |
Integer |
|
2 |
Integer |
|
3 |
Integer |
|
4 |
Integer |
|
5 |
Integer |
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilitiesRequest
Name | Type | Description |
---|---|---|
attributes | ||
items |
Microsoft. |
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilitiesRequestItem
Name | Type | Description |
---|---|---|
billingCycle |
Microsoft. |
|
catalogItemId |
string |
|
id |
integer |
|
promotionId |
string |
|
quantity |
integer |
|
termDuration |
string |
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibility
Name | Type | Description |
---|---|---|
errors |
Microsoft. |
|
isEligible |
boolean |
|
promotionId |
string |
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilityError
Name | Type | Description |
---|---|---|
description |
string |
|
type |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Type | Description |
---|---|---|
key |
string |
|
value |
string |