Manage orders - Accept a transfer of subscriptions for a customer
接受现有传输请求。
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/transfers/{transfer_id}/accept
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
customer_id
|
path | True |
string |
客户标识符。 |
transfer_id
|
path | True |
string |
传输标识符。 |
version
|
path | True |
string |
请求头
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Authorization | True |
string |
授权持有者令牌 |
ms-correlationid |
string |
用于在内部跟踪请求。 如果未提供 ms-correlationid,则服务器将为每个请求生成一个新请求 |
|
ms-cv |
string |
用于在内部跟踪请求。 如果未提供 ms-cv,服务器将为每个请求生成一个新请求 |
|
ms-requestid |
string |
用于请求的幂等性。 如果未提供 ms-requestid,服务器将为每个请求生成一个新请求 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
object |
还行 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
201 Created |
Microsoft. |
请求成功。 响应正文包含订单结果信息。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
400 Bad Request |
输入缺失或无效。 响应正文将提供错误详细信息。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
401 Unauthorized |
请求未通过身份验证。 客户端需要首先通过合作伙伴 API 服务进行身份验证。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
请求已经过身份验证,但被拒绝,因为调用方无权调用该请求。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
404 Not Found |
找不到资源或未与给定输入参数一起使用。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
500 Internal Server Error |
合作伙伴 API 服务或其某个依赖项未能满足请求。 调用方可能会重试此操作。 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.Providers.Transfer.V2.Models.LastKnownBillingDetails
名称 | 类型 | 说明 |
---|---|---|
billingAmount |
number |
|
billingCycle |
enum:
|
|
billingPeriod |
Microsoft. |
|
billingType |
enum:
|
|
currency |
string |
Microsoft.Partner.Providers.Transfer.V2.Models.LastKnownBillingPeriod
名称 | 类型 | 说明 |
---|---|---|
endDate |
string |
|
startDate |
string |
Microsoft.Partner.Providers.Transfer.V2.Models.TransferItemType
值 | 说明 |
---|---|
AzureReservation | |
AzureSavingsPlan | |
AzureSubscription | |
LegacyAzureSubscription |
Microsoft.Partner.Providers.Transfer.V2.Models.TransferLineItem
名称 | 类型 | 说明 |
---|---|---|
addonItems |
Microsoft. |
|
billingCycle |
enum:
|
|
billingDetails |
Microsoft. |
|
currencyCode |
string |
|
entitlementId |
string |
|
friendlyName |
string |
|
id |
integer |
|
offerId |
string |
|
orderId |
string |
|
parentSubscriptionId |
string |
|
partnerIdOnRecord |
string |
|
productType |
Microsoft. |
|
quantity |
integer |
|
sourceSubscriptionId |
string |
|
status |
string |
|
subscriptionId |
string |
|
transferError |
string |
|
transferGroupId |
string |
Microsoft.Partner.Services.Orders.V2.Models.ClientContext
名称 | 类型 | 说明 |
---|---|---|
deviceFamily |
string |
|
marketplaceCountry |
string |
|
name |
string |
Microsoft.Partner.Services.Orders.V2.Models.Order
名称 | 类型 | 说明 |
---|---|---|
alternateId |
string |
|
attributes | ||
billingCycle |
enum:
|
|
client | ||
creationDate |
string |
|
currencyCode |
string |
|
currencySymbol |
string |
|
id |
string |
|
lineItems | ||
links | ||
referenceCustomerId |
string |
|
status |
enum:
|
|
totalPrice |
number |
|
transactionType |
string |
Microsoft.Partner.Services.Orders.V2.Models.OrderLineItem
名称 | 类型 | 说明 |
---|---|---|
attestationAccepted |
boolean |
|
customTermEndDate |
string |
|
friendlyName |
string |
|
lineItemNumber |
integer |
|
links |
Microsoft. |
|
offerId |
string |
|
parentSubscriptionId |
string |
|
partnerIdOnRecord |
string |
|
pricing | ||
promotionId |
string |
|
provisioningContext |
object |
|
purchaseCommitment |
Microsoft. |
|
quantity |
integer |
|
renewsTo | ||
subscriptionId |
string |
|
termDuration |
string |
|
transactionType |
string |
Microsoft.Partner.Services.Orders.V2.Models.OrderLineItemLinks
名称 | 类型 | 说明 |
---|---|---|
activationLinks | ||
availability | ||
product | ||
provisioningStatus | ||
sku | ||
subscription |
Microsoft.Partner.Services.Orders.V2.Models.OrderLinks
名称 | 类型 | 说明 |
---|---|---|
patchOperation | ||
provisioningStatus | ||
self |
Microsoft.Partner.Services.Orders.V2.Models.Pricing
名称 | 类型 | 说明 |
---|---|---|
discountedPrice |
number |
|
extendedPrice |
number |
|
listPrice |
number |
|
price |
number |
|
proratedPrice |
number |
Microsoft.Partner.Services.Orders.V2.Models.PurchaseCommitment
名称 | 类型 | 说明 |
---|---|---|
amount |
number |
|
currency |
string |
|
grain |
string |
Microsoft.Partner.Services.Orders.V2.Models.RenewsTo
名称 | 类型 | 说明 |
---|---|---|
termDuration |
string |
Microsoft.Partner.Services.Transfers.V2.Models.TransferError
名称 | 类型 | 说明 |
---|---|---|
attributes | ||
code |
integer |
|
description |
string |
|
lineItems |
Microsoft. |
|
transferGroupId |
string |
Microsoft.Partner.Services.Transfers.V2.Models.TransferSubmitResult
名称 | 类型 | 说明 |
---|---|---|
attributes | ||
orders | ||
transferErrors |
Microsoft. |
System.Collections.Generic.KeyValuePair[System.String,System.String]
名称 | 类型 | 说明 |
---|---|---|
key |
string |
|
value |
string |