Order resources
Applies to: Partner Center | Partner Center operated by 21Vianet | Partner Center for Microsoft Cloud for US Government
A partner places an order when a customer wants to buy a subscription from a list of offers.
Note
The Order resource has a rate limit of 500 requests per minute per tenant identifier.
Order
Describes a partner's order.
Property | Type | Description |
---|---|---|
id | string | An order identifier that is supplied upon successful creation of the order. |
alternateId | string | A friendly identifier for the order. |
referenceCustomerId | string | The customer identifier. |
billingCycle | string | Indicates the frequency with which the partner is billed for this order. Supported values are the member names found in BillingCycleType. The default is "Monthly" or "OneTime" at order creation. This field is applied upon successful creation of the order. |
transactionType | string | Read-only. The transaction type of the order. Supported values are 'UserPurchase', 'SystemPurchase', or 'SystemBilling' |
lineItems | array of OrderLineItem resources | An itemized list of the offers the customer is purchasing including the quantity. |
currencyCode | string | Read-only. The currency used when placing the order. Applied upon successful creation of the order. |
currencySymbol | string | Read-only. The currency symbol associated with the currency code. |
creationDate | datetime | Read-only. The date the order was created, in date-time format. Applied upon successful creation of the order. |
status | string | Read-only. The status of the order. Supported values are the member names found in OrderStatus. |
links | OrderLinks | The resource links corresponding to the Order. |
attributes | ResourceAttributes | The metadata attributes corresponding to the Order. |
OrderLineItem
An order contains an itemized list of offers, and each item is represented as an OrderLineItem.
Property | Type | Description |
---|---|---|
lineItemNumber | int | Each line item in the collection gets a unique line number, counting up from 0 to count-1. |
offerId | string | The ID of the offer. |
subscriptionId | string | The ID of the subscription. |
parentSubscriptionId | string | Optional. The ID of the parent subscription in an add-on offer. Applies to PATCH only. |
friendlyName | string | Optional. The friendly name for the subscription defined by the partner to help disambiguate. |
quantity | int | The number of licenses or instances. |
customTermEndDate | DateTime | The end date of the first billing term of the new subscription. |
termDuration | string | An ISO 8601 representation of the term's duration. The current supported values are P1M (1 month), P1Y (1 year) and P3Y (3 years). |
transactionType | string | Read-only. The transaction type of the line item. Supported Values are 'new', 'renew', 'addQuantity', 'removeQuantity', 'cancel', 'convert', or 'customerCredit'. |
partnerIdOnRecord | string | When an indirect provider places an order on behalf of an indirect reseller, populate this field with the PartnerID of the indirect reseller only (never the ID of the indirect provider). This ensures proper accounting for incentives. |
provisioningContext | Dictionary<string, string> | Information required for provisioning for some items in the catalog. The provisioningVariables property in a SKU indicates which properties are required for specific items in the catalog. |
links | OrderLineItemLinks | Read-only. The resource links corresponding to the order line item. |
renewsTo | RenewsTo | Renewal term duration details. |
AttestationAccepted | bool | Indicates agreement to offer or sku conditions. Required only for offers or skus where SkuAttestationProperties or OfferAttestationProperties enforceAttestation is True. |
Pricing | Pricing | List price details. |
RenewsTo
Represents the renewal term duration details.
Property | Type | Required | Description |
---|---|---|---|
termDuration | string | No | An ISO 8601 representation of the renewal term's duration. The current supported values are P1M (1 month) and P1Y (1 year). |
Pricing
Represents the price details. Price amounts are provided before taxation.
Property | Type | Required | Description |
---|---|---|---|
listPrice | double | No | Price listed in the catalog without any pricing modifiers applied. |
discountedPrice | double | No | Price after applying all applicable pricing modifier. |
proratedPrice | double | No | Discounted price after proration has been performed. |
price | double | No | Price in the applicable billing currency after all discounts have been applied and proration has been performed. |
extendedPrice | double | No | Price of the line item with quantity, discounts and proration applied, in the applicable billing currency. |
OrderLinks
Represents the resource links corresponding to the order.
Property | Type | Description |
---|---|---|
provisioningStatus | Link | When populated, the link to retrieve provisioning status for the order. |
self | Link | The link to retrieve the order resource. |
OrderLineItemLinks
Represents the full subscription associated with the order.
Property | Type | Description |
---|---|---|
provisioningStatus | Link | When populated, the link to retrieve the provisioning status of the line item. |
sku | Link | The link to retrieve SKU information for the catalog item bought. |
subscription | Link | When populated, the link to the full subscription information. |
activationLinks | Link | When populated, the GET resource for links to activate the subscription. |
OrderStatus
An [Enum/dotnet/api/system.enum) with values that indicate the state of the order.
Value | Position | Description |
---|---|---|
unknown | 0 | Enum initializer. |
completed | 1 | Indicates that the order is completed. |
pending | 2 | Indicates that the order is still pending. |
cancelled | 3 | Indicates that the order has been cancelled. |
pending po upload | 4 | Indicates that Partner is to upload their Customer Purchase Order and enter details as outlined within for review by Microsoft. |
po upload complete | 5 | Indicates that Purchase Order has been submitted by Partner and Microsoft is reviewing. No further action required by the Partner. |
OrderLineItemProvisioningStatus
Represents the provisioning status of an OrderLineItem.
Property | Type | Description |
---|---|---|
lineItemNumber | int | The unique line number of the order line item. Values range from 0 to count-1. |
status | string | The provisioning status of the order line item. Values include:Fulfilled: Fulfillment of the order is successfully completed and the user will be able to use the reservationsUnfulfilled: Not fulfilled due to cancellationPrefulfillmentPending: Your request is still processing, fulfillment is not yet complete |
quantityProvisioningInformation | List<QuantityProvisioningStatus> | A list of quantity provisioning status information for the order line item. |
QuantityProvisioningStatus
Represents the provisioning status by quantity.
Property | Type | Description |
---|---|---|
quantity | int | The number of items. |
status | string | The status of the number of items. |