Manage orders - Perform a subscription upgrade
Realiza una actualización de suscripción.
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/subscriptions/{subscription_id}/upgrades
Parámetros de identificador URI
| Nombre | En | Requerido | Tipo | Description |
|---|---|---|---|---|
|
customer_id
|
path | True |
string |
Identificador del cliente. |
|
subscription_id
|
path | True |
string |
Identificador de suscripción. |
|
version
|
path | True |
string |
Encabezado de la solicitud
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
| Nombre | Requerido | Tipo | Description |
|---|---|---|---|
| Authorization | True |
string |
Token de portador de autorización |
| ms-correlationid |
string |
Se usa para realizar el seguimiento de las solicitudes internamente. Si no se proporciona un ms-correlationid, el servidor generará uno nuevo para cada solicitud. |
|
| ms-cv |
string |
Se usa para realizar el seguimiento de las solicitudes internamente. Si no se proporciona un ms-cv, el servidor generará uno nuevo para cada solicitud. |
|
| ms-requestid |
string |
Se usa para la idempoencia de las solicitudes. Si no se proporciona un ms-requestid, el servidor generará uno nuevo para cada solicitud. |
Cuerpo de la solicitud
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
| Nombre | Tipo | Description |
|---|---|---|
| attributes | ||
| isEligible |
boolean |
|
| quantity |
integer (int32) |
|
| targetOffer | ||
| upgradeErrors |
Microsoft. |
|
| upgradeType |
enum:
|
Respuestas
| Nombre | Tipo | Description |
|---|---|---|
| 200 OK |
Microsoft. |
La solicitud se realizó correctamente. El resultado de la actualización se devuelve en el cuerpo de la respuesta. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
| 400 Bad Request |
Faltaba o faltaba una entrada no válida. El cuerpo de la respuesta proporcionará los detalles del error. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
| 401 Unauthorized |
La solicitud no se autenticó. El cliente debe autenticarse primero con el servicio de API del asociado. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
| 403 Forbidden |
La solicitud se autenticó pero se rechazó, ya que el autor de la llamada no tiene los derechos para invocarla. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
| 404 Not Found |
El recurso no se encuentra o no está disponible con los parámetros de entrada especificados. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
| 500 Internal Server Error |
El servicio de API del asociado o una de sus dependencias no pudieron cumplir la solicitud. Los autores de llamadas pueden volver a intentarlo. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definiciones
Microsoft.Partner.Core.Collections.Link
| Nombre | Tipo | Description |
|---|---|---|
| body |
string |
|
| headers |
System. |
|
| method |
string |
|
| uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
| Nombre | Tipo | Description |
|---|---|---|
| etag |
string |
|
| objectType |
string |
Microsoft.Partner.Core.Collections.ResourceLinks
| Nombre | Tipo | Description |
|---|---|---|
| next | ||
| previous | ||
| self |
Microsoft.Partner.Core.Web.Exceptions.ServiceFault
| Nombre | Tipo | Description |
|---|---|---|
| code |
integer (int32) |
|
| data |
string[] |
|
| description |
string |
|
| source |
string |
Microsoft.Partner.Providers.Catalog.V1.Models.Offer
| Nombre | Tipo | Description |
|---|---|---|
| acquisitionType |
string |
|
| actions |
string[] |
|
| additionalProperties |
object |
|
| attributes | ||
| billing |
string |
|
| category | ||
| conversionTargetOffers |
string[] |
|
| description |
string |
|
| hasAddOns |
boolean |
|
| id |
string |
|
| isAutoRenewable |
boolean |
|
| isAvailableForPurchase |
boolean |
|
| isInternal |
boolean |
|
| isMicrosoftProduct |
boolean |
|
| isTrial |
boolean |
|
| links | ||
| maximumQuantity |
integer (int32) |
|
| minimumQuantity |
integer (int32) |
|
| name |
string |
|
| product | ||
| reselleeQualifications |
string[] |
|
| resellerQualifications |
string[] |
|
| salesGroupId |
string |
|
| supportedBillingCycles |
Supported |
|
| supportedCatalogTypes |
string[] |
|
| term |
integer (int32) |
|
| termUnitOfMeasure |
string |
|
| unitType |
string |
|
| upgradeTargetOffers |
string[] |
|
| uri |
string |
Microsoft.Partner.Providers.Catalog.V1.Models.OfferCategory
| Nombre | Tipo | Description |
|---|---|---|
| attributes | ||
| country |
string |
|
| id |
string |
|
| links | ||
| locale |
string |
|
| name |
string |
|
| rank |
integer (int32) |
Microsoft.Partner.Providers.Catalog.V1.Models.OfferLinks
| Nombre | Tipo | Description |
|---|---|---|
| learnMore | ||
| next | ||
| previous | ||
| self |
Microsoft.Partner.Providers.Catalog.V1.Models.OfferProduct
| Nombre | Tipo | Description |
|---|---|---|
| id |
string |
|
| name |
string |
|
| unit |
string |
Microsoft.Partner.Services.Subscriptions.V1.Models.Upgrade
| Nombre | Tipo | Description |
|---|---|---|
| attributes | ||
| isEligible |
boolean |
|
| quantity |
integer (int32) |
|
| targetOffer | ||
| upgradeErrors |
Microsoft. |
|
| upgradeType |
enum:
|
Microsoft.Partner.Services.Subscriptions.V1.Models.UpgradeError
| Nombre | Tipo | Description |
|---|---|---|
| additionalDetails |
string |
|
| attributes | ||
| code |
enum:
|
|
| description |
string |
Microsoft.Partner.Services.Subscriptions.V1.Models.UpgradeResult
| Nombre | Tipo | Description |
|---|---|---|
| attributes | ||
| licenseErrors |
Microsoft. |
|
| sourceSubscriptionId |
string |
|
| targetSubscriptionId |
string |
|
| upgradeErrors |
Microsoft. |
|
| upgradeType |
enum:
|
Microsoft.Partner.Services.Subscriptions.V1.Models.UserLicenseError
| Nombre | Tipo | Description |
|---|---|---|
| attributes | ||
|
string |
||
| errors | ||
| name |
string |
|
| userObjectId |
string (uuid) |
SupportedBillingCycles
| Valor | Description |
|---|---|
| annual | |
| monthly | |
| none | |
| one_time | |
| triennial | |
| unknown |
System.Collections.Generic.KeyValuePair[System.String,System.String]
| Nombre | Tipo | Description |
|---|---|---|
| key |
string |
|
| value |
string |