Get a new commerce migration schedule

Applies to: Partner Center | Partner Center operated by 21Vianet | Partner Center for Microsoft Cloud for US Government

This article describes how to get a new commerce migration schedule.

Important

This API is currently only available in the Sandbox tenant.

Prerequisites

  • Credentials as described in Partner Center authentication. This scenario supports authentication with both standalone App and App+User credentials.

  • A customer ID (customer-tenant-id). If you don't know the customer's ID, you can look it up in Partner Center by selecting the Customers workspace, then the customer from the customer list, then Account. On the customer’s Account page, look for the Microsoft ID in the Customer Account Info section. The Microsoft ID is the same as the customer ID (customer-tenant-id).

  • A current subscription ID

REST request

There are two different ways partners can query.

  • Partners can query to get a particular schedule
  • Partners can query to get the list of schedules for specific criteria

Request syntax

Method Request URI
GET {baseURL}/v1/customers/{customer-tenant-id}/migrations/newcommerce/schedules/{scheduleID}

URI parameter

This table lists the required query parameters to create a new commerce migration.

Name Type Required Description
customer-tenant-id string Yes A GUID-formatted string that identifies the customer.
Method Request URI
GET {baseURL}/v1/migrations/newcommerce/schedules?CustomerTenantId={customer-tenant-id}

URI parameter

This table lists the required query parameters to create a new commerce migration. Anyone of the query parameter can be used.

Name Type Description
customerTenantId string A GUID-formatted string that identifies the customer.
currentSubscriptionID string A GUID-formatted string that identifies the current Subscription ID
externalReferenceID string A GUID-formatted string that identifies the migration batch

Request headers

For more information, see Partner Center REST headers.

Response body

This table describes the subscription properties in the response.

Property Type Required Description
currentSubscriptionId string Yes A subscription identifier that indicates which subscription requires validation for migration.
termDuration string No Term duration applied to the migration.
billingCycle string No Billing cycle applied to the migration.
purchaseFullTerm bool No Whether the migration starts a new term or not.
quantity int No License quantity for a subscription can be increased or decreased upon migration.
customTermEndDate datetime No An end-date can be set to align with an existing nontrial OnlineServicesNCE subscription or calendar month. There is more information on aligning subscription end dates here: Align subscription end dates in Partner Center
targetDate datetime No Target Date when to schedule the migration.
migrateOnRenewal bool No Indicates if the schedule needs to happen on renewal
status string No Status of the schedule migration
createdTime datetime No When the schedule was created
lastModifiedTime datetime No When the schedule was last modified

REST response

If successful, this method returns details of the subscriptions being migrated (migration object) in the response body.

Response success and error codes

Each response comes with an HTTP status code that indicates success or failure with further debugging information. Use a network trace tool to read this code, error type, and more parameters. For the full list, see Partner Center REST error codes.

Response examples

[
{
"id": "f016c025-a873-47af-8b52-2516fbef4c65",
"currentSubscriptionId": "c6105a9c-36cb-4f88-92ea-9573040725c4",
"subscriptionEndDate": "2023-07-19T00:00:00Z",
"status": "Created",
"customerTenantId": "6f297517-16e6-4313-8c6d-4e10496d2871",
"quantity": 25,
"termDuration": "P1Y",
"billingCycle": "Monthly",
"purchaseFullTerm": false,
"targetDate": "2022-10-30T00:00:00",
"createdTime": "2022-10-18T21:20:50.9668605+00:00",
"lastModifiedTime": "2022-10-18T21:29:32.8992819+00:00"
}
]

See also