Manage orders - Create a a New-Commerce migration

创建并开始处理 New-Commerce 迁移实体。

POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/migrations/newcommerce

URI 参数

名称 必需 类型 说明
customer_id
path True

string

version
path True

string

请求头

Media Types: "application/json-patch+json", "application/json", "text/json", "application/*+json"

名称 必需 类型 说明
Authorization True

string

授权持有者令牌

MS-CorrelationId

string

用于在内部跟踪请求。 如果未提供 MS-CorrelationId,服务器将为每个请求生成一个新请求

MS-CV

string

用于在内部跟踪请求。 如果未提供 MS-CV,服务器将为每个请求生成一个新请求

MS-RequestId

string

用于请求的幂等性。 如果未提供 MS-RequestId,服务器将为每个请求生成一个新请求

请求正文

Media Types: "application/json-patch+json", "application/json", "text/json", "application/*+json"

名称 类型 说明
addOnMigrations

Microsoft.Partner.Providers.Migration.V1.Models.NewCommerceMigration[]

billingCycle

string

catalogItemId

string

completedTime

string

currentSubscriptionId

string

customTermEndDate

string

customerTenantId

string

externalReferenceId

string

id

string

microsoftLed

boolean

newCommerceOrderId

string

newCommerceSubscriptionId

string

purchaseFullTerm

boolean

quantity

integer

startedTime

string

status

string

subscriptionEndDate

string

termDuration

string

响应

名称 类型 说明
201 Created

string

请求成功。 响应正文包含 New-Commerce 迁移实体。

Media Types: "text/plain", "application/json", "text/json"

400 Bad Request

输入缺失或无效。 响应正文将提供错误详细信息。

Media Types: "text/plain", "application/json", "text/json"

401 Unauthorized

请求未通过身份验证。 客户端需要首先通过合作伙伴 API 服务进行身份验证。

Media Types: "text/plain", "application/json", "text/json"

403 Forbidden

请求已经过身份验证,但被拒绝,因为调用方无权调用该请求。

Media Types: "text/plain", "application/json", "text/json"

404 Not Found

找不到资源或未与给定输入参数一起使用。

Media Types: "text/plain", "application/json", "text/json"

500 Internal Server Error

合作伙伴 API 服务或其某个依赖项未能满足请求。 调用方可能会重试此操作。

Media Types: "text/plain", "application/json", "text/json"

定义

Microsoft.Partner.Providers.Migration.V1.Models.NewCommerceMigration

名称 类型 说明
addOnMigrations

Microsoft.Partner.Providers.Migration.V1.Models.NewCommerceMigration[]

billingCycle

string

catalogItemId

string

completedTime

string

currentSubscriptionId

string

customTermEndDate

string

customerTenantId

string

externalReferenceId

string

id

string

microsoftLed

boolean

newCommerceOrderId

string

newCommerceSubscriptionId

string

purchaseFullTerm

boolean

quantity

integer

startedTime

string

status

string

subscriptionEndDate

string

termDuration

string