Manage orders - Get a availability by ID (by country)
检索所请求上下文的可用性。
GET https://api.partnercenter.microsoft.com/v{version}/products/{productId}/skus/{skuId}/availabilities/{availabilityId}
GET https://api.partnercenter.microsoft.com/v{version}/products/{productId}/skus/{skuId}/availabilities/{availabilityId}?country={country}
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
availability
|
path | True |
string |
可用性 ID。 |
product
|
path | True |
string |
产品 ID。 |
sku
|
path | True |
string |
SKU ID。 |
version
|
path | True |
string |
|
country
|
query |
string |
国家/地区信息。 国家/地区的两个字母表示形式 |
请求头
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Authorization | True |
string |
授权持有者令牌 |
ms-correlationid |
string |
用于在内部跟踪请求。 如果未提供 ms-correlationid,则服务器将为每个请求生成一个新请求 |
|
MS-CV |
string |
用于在内部跟踪请求。 如果未提供 MS-CV,服务器将为每个请求生成一个新请求 |
|
ms-requestid |
string |
用于请求的幂等性。 如果未提供 ms-requestid,服务器将为每个请求生成一个新请求 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
请求成功。 可用性在响应正文中返回。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
定义
Contracts.V1.Models.Availability
名称 | 类型 | 说明 |
---|---|---|
catalogItemId |
string |
|
country |
string |
|
defaultCurrency | ||
id |
string |
|
includedQuantityOptions | ||
isPurchasable |
boolean |
|
isRenewable |
boolean |
|
links | ||
product | ||
productId |
string |
|
renewalInstructions | ||
segment |
string |
|
sku | ||
skuId |
string |
|
terms |
Contracts.V1.Models.AvailabilityIncludedQuantity
名称 | 类型 | 说明 |
---|---|---|
description |
string |
|
units |
string |
Contracts.V1.Models.AvailabilityLinks
名称 | 类型 | 说明 |
---|---|---|
next | ||
previous | ||
pricing | ||
self |
Contracts.V1.Models.AvailabilityTerm
名称 | 类型 | 说明 |
---|---|---|
billingCycle |
string |
|
cancellationPolicies | ||
description |
string |
|
duration |
string |
|
id |
string |
|
renewalOptions |
Contracts.V1.Models.CancellationPolicy
名称 | 类型 | 说明 |
---|---|---|
refundOptions |
Contracts.V1.Models.CancellationRefundOption
名称 | 类型 | 说明 |
---|---|---|
expiresAfter |
string |
|
sequenceId |
integer |
|
type |
string |
Contracts.V1.Models.CurrencyInfo
名称 | 类型 | 说明 |
---|---|---|
code |
string |
|
symbol |
string |
Contracts.V1.Models.ItemType
名称 | 类型 | 说明 |
---|---|---|
displayName |
string |
|
id |
string |
|
subType |
Contracts.V1.Models.Product
名称 | 类型 | 说明 |
---|---|---|
description |
string |
|
id |
string |
|
isMicrosoftProduct |
boolean |
|
links | ||
localizedAttributes |
System. |
|
productType | ||
publisherName |
string |
|
title |
string |
Contracts.V1.Models.ProductLinks
名称 | 类型 | 说明 |
---|---|---|
next | ||
previous | ||
self | ||
skus |
Contracts.V1.Models.RenewalInstruction
名称 | 类型 | 说明 |
---|---|---|
applicableTermIds |
string[] |
|
renewalOptions |
Contracts.V1.Models.RenewalInstructionOption
名称 | 类型 | 说明 |
---|---|---|
isAutoRenewable |
boolean |
|
renewToId |
string |
Contracts.V1.Models.RenewalOption
名称 | 类型 | 说明 |
---|---|---|
description |
string |
|
termDuration |
string |
Contracts.V1.Models.Sku
名称 | 类型 | 说明 |
---|---|---|
actions |
string[] |
|
attestationProperties | ||
consumptionType |
string |
|
description |
string |
|
dynamicAttributes |
object |
|
id |
string |
|
inventoryVariables |
string[] |
|
isTrial |
boolean |
|
links | ||
maximumQuantity |
integer |
|
minimumQuantity |
integer |
|
productId |
string |
|
provisioningVariables |
string[] |
|
purchasePrerequisites |
string[] |
|
supportedBillingCycles | ||
termsOfUseUri |
string |
|
title |
string |
Contracts.V1.Models.SkuAttestationProperties
名称 | 类型 | 说明 |
---|---|---|
attestationType |
string |
|
enforceAttestation |
boolean |
Link
名称 | 类型 | 说明 |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
ResourceLinks
名称 | 类型 | 说明 |
---|---|---|
next | ||
previous | ||
self |
SupportedBillingCycles
值 | 说明 |
---|---|
annual | |
monthly | |
none | |
one_time | |
triennial | |
unknown |
System.Collections.Generic.KeyValuePair[System.String,System.String]
名称 | 类型 | 说明 |
---|---|---|
key |
string |
|
value |
string |