Manage orders - Perform a subscription upgrade
Effectue une mise à niveau d’abonnement.
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/subscriptions/{subscription_id}/upgrades
Paramètres URI
Nom | Dans | Obligatoire | Type | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
ID du client. |
subscription_id
|
path | True |
string |
ID d’abonnement. |
version
|
path | True |
string |
En-tête de la demande
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Nom | Obligatoire | Type | Description |
---|---|---|---|
Authorization | True |
string |
Jeton du porteur d’autorisation |
ms-correlationid |
string |
Utilisé pour le suivi des demandes en interne. Si un ms-correlationid n’est pas fourni, le serveur en génère un nouveau pour chaque requête |
|
ms-cv |
string |
Utilisé pour le suivi des demandes en interne. Si un ms-cv n’est pas fourni, le serveur en génère un nouveau pour chaque requête |
|
ms-requestid |
string |
Utilisé pour l’idempotency des requêtes. Si un ms-requestid n’est pas fourni, le serveur en génère un nouveau pour chaque requête |
Corps de la demande
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Nom | Type | Description |
---|---|---|
attributes | ||
isEligible |
boolean |
|
quantity |
integer |
|
targetOffer | ||
upgradeErrors |
Microsoft. |
|
upgradeType |
enum:
|
Réponses
Nom | Type | Description |
---|---|---|
200 OK |
Microsoft. |
La demande a réussi. Le résultat de la mise à niveau est retourné dans le corps de la réponse. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
400 Bad Request |
Une entrée est manquante ou non valide. Le corps de la réponse fournit les détails de l’erreur. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
401 Unauthorized |
La demande n’a pas été authentifiée. Le client doit d’abord s’authentifier auprès du service d’API partenaire. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
La demande a été authentifiée, mais a été refusée, car l’appelant n’a pas les droits de l’appeler. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
404 Not Found |
La ressource est introuvable ou non disponible avec les paramètres d’entrée donnés. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
500 Internal Server Error |
Le service d’API partenaire ou l’une de ses dépendances n’a pas pu répondre à la demande. Les appelants peuvent réessayer. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Définitions
Microsoft.Partner.Core.Collections.Link
Nom | Type | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
Nom | Type | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Core.Collections.ResourceLinks
Nom | Type | Description |
---|---|---|
next | ||
previous | ||
self |
Microsoft.Partner.Core.Web.Exceptions.ServiceFault
Nom | Type | Description |
---|---|---|
code |
integer |
|
data |
string[] |
|
description |
string |
|
source |
string |
Microsoft.Partner.Providers.Catalog.V1.Models.Offer
Nom | Type | 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 |
|
minimumQuantity |
integer |
|
name |
string |
|
product | ||
reselleeQualifications |
string[] |
|
resellerQualifications |
string[] |
|
salesGroupId |
string |
|
supportedBillingCycles | ||
supportedCatalogTypes |
string[] |
|
term |
integer |
|
termUnitOfMeasure |
string |
|
unitType |
string |
|
upgradeTargetOffers |
string[] |
|
uri |
string |
Microsoft.Partner.Providers.Catalog.V1.Models.OfferCategory
Nom | Type | Description |
---|---|---|
attributes | ||
country |
string |
|
id |
string |
|
links | ||
locale |
string |
|
name |
string |
|
rank |
integer |
Microsoft.Partner.Providers.Catalog.V1.Models.OfferLinks
Nom | Type | Description |
---|---|---|
learnMore | ||
next | ||
previous | ||
self |
Microsoft.Partner.Providers.Catalog.V1.Models.OfferProduct
Nom | Type | Description |
---|---|---|
id |
string |
|
name |
string |
|
unit |
string |
Microsoft.Partner.Services.Subscriptions.V1.Models.Upgrade
Nom | Type | Description |
---|---|---|
attributes | ||
isEligible |
boolean |
|
quantity |
integer |
|
targetOffer | ||
upgradeErrors |
Microsoft. |
|
upgradeType |
enum:
|
Microsoft.Partner.Services.Subscriptions.V1.Models.UpgradeError
Nom | Type | Description |
---|---|---|
additionalDetails |
string |
|
attributes | ||
code |
enum:
|
|
description |
string |
Microsoft.Partner.Services.Subscriptions.V1.Models.UpgradeResult
Nom | Type | Description |
---|---|---|
attributes | ||
licenseErrors |
Microsoft. |
|
sourceSubscriptionId |
string |
|
targetSubscriptionId |
string |
|
upgradeErrors |
Microsoft. |
|
upgradeType |
enum:
|
Microsoft.Partner.Services.Subscriptions.V1.Models.UserLicenseError
Nom | Type | Description |
---|---|---|
attributes | ||
string |
||
errors | ||
name |
string |
|
userObjectId |
string |
SupportedBillingCycles
Nom | Type | Description |
---|---|---|
annual |
string |
|
monthly |
string |
|
none |
string |
|
one_time |
string |
|
triennial |
string |
|
unknown |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Nom | Type | Description |
---|---|---|
key |
string |
|
value |
string |