Manage orders - Get promotion eligibilities
根据通过的促销资格请求项获取促销资格。
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/promotionEligibilities
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
customer_id
|
path | True |
string |
|
version
|
path | True |
string |
请求头
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Authorization | True |
string |
授权持有者令牌 |
MS-CorrelationId |
string |
用于在内部跟踪请求。 如果未提供 MS-CorrelationId,服务器将为每个请求生成一个新请求 |
|
MS-CV |
string |
用于在内部跟踪请求。 如果未提供 MS-CV,服务器将为每个请求生成一个新请求 |
|
MS-RequestId |
string |
用于请求的幂等性。 如果未提供 MS-RequestId,服务器将为每个请求生成一个新请求 |
请求正文
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
名称 | 类型 | 说明 |
---|---|---|
attributes | ||
items |
Microsoft. |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
请求成功。 响应正文包含促销资格信息。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
定义
Microsoft.Partner.Core.Collections.Link
名称 | 类型 | 说明 |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
名称 | 类型 | 说明 |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Core.Collections.ResourceCollection`1[Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibility]
名称 | 类型 | 说明 |
---|---|---|
attributes | ||
items |
Microsoft. |
|
links | ||
totalCount |
integer |
Microsoft.Partner.Core.Collections.ResourceLinks
名称 | 类型 | 说明 |
---|---|---|
next | ||
previous | ||
self |
Microsoft.Partner.Services.RuleEngine.Models.Enums.BillingCycleType
名称 | 类型 | 说明 |
---|---|---|
0 |
Integer |
|
1 |
Integer |
|
2 |
Integer |
|
3 |
Integer |
|
4 |
Integer |
|
5 |
Integer |
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilitiesRequest
名称 | 类型 | 说明 |
---|---|---|
attributes | ||
items |
Microsoft. |
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilitiesRequestItem
名称 | 类型 | 说明 |
---|---|---|
billingCycle |
Microsoft. |
|
catalogItemId |
string |
|
id |
integer |
|
promotionId |
string |
|
quantity |
integer |
|
termDuration |
string |
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibility
名称 | 类型 | 说明 |
---|---|---|
errors |
Microsoft. |
|
isEligible |
boolean |
|
promotionId |
string |
Microsoft.Partner.Services.RuleEngine.Models.PromotionEligibilityError
名称 | 类型 | 说明 |
---|---|---|
description |
string |
|
type |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
名称 | 类型 | 说明 |
---|---|---|
key |
string |
|
value |
string |