Manage orders - Update subscription by ID
Frissítések az előfizetést egy partner ügyfélének azonosítója alapján az Active Directory-bérlőazonosító alapján.
PATCH https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/subscriptions/{subscription_id}
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
Az ügyfél Active Directory-bérlőazonosítója. |
subscription_id
|
path | True |
string |
Az előfizetés azonosítója. |
version
|
path | True |
string |
Kérelem fejléce
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Kötelező | Típus | Description |
---|---|---|---|
Authorization | True |
string |
Engedélyezési tulajdonos jogkivonata |
ms-correlationid |
string |
A kérések belső nyomon követésére szolgál. Ha nincs megadva ms-correlationid, a kiszolgáló minden kéréshez létrehoz egy újat |
|
ms-cv |
string |
A kérések belső nyomon követésére szolgál. Ha nincs megadva ms-cv, a kiszolgáló minden kéréshez létrehoz egy újat |
|
ms-requestid |
string |
A kérések idempotensségére szolgál. Ha nincs megadva ms-requestid, a kiszolgáló minden kéréshez újat hoz létre |
Kérelem törzse
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Típus | Description |
---|---|---|
actionTaken |
boolean |
|
actions |
string[] |
|
attentionNeeded |
boolean |
|
attentionReason |
string |
|
attributes | ||
autoRenewEnabled |
boolean |
|
billingCycle |
enum:
|
|
billingType |
enum:
|
|
commitmentEndDate |
string |
|
contractType |
enum:
|
|
creationDate |
string |
|
effectiveStartDate |
string |
|
entitlementId |
string |
|
friendlyName |
string |
|
hasPurchasableAddons |
boolean |
|
id |
string |
|
isMicrosoftProduct |
boolean |
|
isTrial |
boolean |
|
lineItems |
Microsoft. |
|
links |
Microsoft. |
|
migratedFromSubscriptionId |
string |
|
offerId |
string |
|
offerName |
string |
|
orderId |
string |
|
parentSubscriptionId |
string |
|
partnerId |
string |
|
productOrderId |
string |
|
productType | ||
promotionId |
string |
|
publisherName |
string |
|
quantity |
integer |
|
refundOptions |
Microsoft. |
|
refundableQuantity |
Microsoft. |
|
renewalTermDuration |
string |
|
scheduledNextTermInstructions |
Microsoft. |
|
status |
enum:
|
|
suspensionReasons |
string[] |
|
termDuration |
string |
|
unitType |
string |
Válaszok
Name | Típus | Description |
---|---|---|
200 OK |
Microsoft. |
A kérés sikeres volt. A válasz törzse tartalmazza a frissített előfizetési adatokat. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
202 Accepted |
A kérés sikeres volt. A frissítési előfizetésre vonatkozó kérés el lett fogadva. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
400 Bad Request |
Hiányzó vagy érvénytelen bemenet történt. A válasz törzse adja meg a hiba részleteit. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
401 Unauthorized |
A kérés hitelesítése nem történt meg. Az ügyfélnek először a partner API szolgáltatással kell hitelesítenie magát. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
A kérés hitelesítése megtörtént, de a rendszer elutasította, mivel a hívónak nincs jogosultsága meghívni. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
404 Not Found |
Az erőforrás nem található vagy nem érhető el a megadott bemeneti paraméterekkel. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
500 Internal Server Error |
A partner API-szolgáltatás vagy annak egyik függősége nem tudta teljesíteni a kérést. Előfordulhat, hogy a hívó fél újrapróbálkozhat ezzel. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definíciók
Microsoft.Partner.Core.Collections.Link
Name | Típus | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
Name | Típus | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Services.Subscriptions.V1.Models.ItemType
Name | Típus | Description |
---|---|---|
displayName |
string |
|
id |
string |
|
subType |
Microsoft.Partner.Services.Subscriptions.V1.Models.ProductTerm
Name | Típus | Description |
---|---|---|
availabilityId |
string |
|
billingCycle |
enum:
|
|
productId |
string |
|
skuId |
string |
|
termDuration |
string |
Microsoft.Partner.Services.Subscriptions.V1.Models.PurchaseCommitment
Name | Típus | Description |
---|---|---|
amount |
number |
|
currency |
string |
|
grain |
string |
Microsoft.Partner.Services.Subscriptions.V1.Models.RefundableQuantity
Name | Típus | Description |
---|---|---|
details |
Microsoft. |
|
totalQuantity |
integer |
Microsoft.Partner.Services.Subscriptions.V1.Models.RefundableQuantityDetail
Name | Típus | Description |
---|---|---|
allowedUntilDateTime |
string |
|
quantity |
integer |
Microsoft.Partner.Services.Subscriptions.V1.Models.RefundOption
Name | Típus | Description |
---|---|---|
expiresAt |
string |
|
type |
string |
Microsoft.Partner.Services.Subscriptions.V1.Models.ScheduledNextTermInstructions
Name | Típus | Description |
---|---|---|
customTermEndDate |
string |
|
product |
Microsoft. |
|
quantity |
integer |
Microsoft.Partner.Services.Subscriptions.V1.Models.Scope
Name | Típus | Description |
---|---|---|
entitlementId |
string |
|
managementGroupId |
string |
|
resourceGroupId |
string |
|
subscriptionId |
string |
|
type |
string |
Microsoft.Partner.Services.Subscriptions.V1.Models.Subscription
Name | Típus | Description |
---|---|---|
actionTaken |
boolean |
|
actions |
string[] |
|
attentionNeeded |
boolean |
|
attentionReason |
string |
|
attributes | ||
autoRenewEnabled |
boolean |
|
billingCycle |
enum:
|
|
billingType |
enum:
|
|
commitmentEndDate |
string |
|
contractType |
enum:
|
|
creationDate |
string |
|
effectiveStartDate |
string |
|
entitlementId |
string |
|
friendlyName |
string |
|
hasPurchasableAddons |
boolean |
|
id |
string |
|
isMicrosoftProduct |
boolean |
|
isTrial |
boolean |
|
lineItems |
Microsoft. |
|
links |
Microsoft. |
|
migratedFromSubscriptionId |
string |
|
offerId |
string |
|
offerName |
string |
|
orderId |
string |
|
parentSubscriptionId |
string |
|
partnerId |
string |
|
productOrderId |
string |
|
productType | ||
promotionId |
string |
|
publisherName |
string |
|
quantity |
integer |
|
refundOptions |
Microsoft. |
|
refundableQuantity |
Microsoft. |
|
renewalTermDuration |
string |
|
scheduledNextTermInstructions |
Microsoft. |
|
status |
enum:
|
|
suspensionReasons |
string[] |
|
termDuration |
string |
|
unitType |
string |
Microsoft.Partner.Services.Subscriptions.V1.Models.SubscriptionLineItemDetail
Name | Típus | Description |
---|---|---|
autoRenewEnabled |
boolean |
|
friendlyName |
string |
|
id |
string |
|
purchaseCommitment |
Microsoft. |
|
quantity |
integer |
|
scope | ||
status |
enum:
|
Microsoft.Partner.Services.Subscriptions.V1.Models.SubscriptionLinks
Name | Típus | Description |
---|---|---|
activationLinks | ||
availability | ||
entitlement | ||
next | ||
offer | ||
parentSubscription | ||
pendingChanges | ||
previous | ||
product | ||
self | ||
sku |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Típus | Description |
---|---|---|
key |
string |
|
value |
string |