Megosztás a következőn keresztül:


Manage orders - Create a transition for a subscription

Tegye közzé az előfizetésre vonatkozó átmeneti kérelmet.

POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/subscriptions/{subscription_id}/transitions

URI-paraméterek

Name In Kötelező Típus Description
customer_id
path True

string

Az ügyfél 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
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

billingCycle

string

events

Microsoft.Partner.Services.Subscriptions.V1.Models.TransitionEvent[]

fromCatalogItemId

string

fromSubscriptionId

string

promotionId

string

quantity

integer

termDuration

string

toCatalogItemId

string

toSubscriptionId

string

transitionType

string

Válaszok

Name Típus Description
200 OK

Microsoft.Partner.Services.Subscriptions.V1.Models.Transition

A kérés sikeres volt. A választörzs tartalmazza az áttűnés eredményét.

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

Name Description
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Services.Subscriptions.V1.Models.Transition
Microsoft.Partner.Services.Subscriptions.V1.Models.TransitionError
Microsoft.Partner.Services.Subscriptions.V1.Models.TransitionEvent

Microsoft.Partner.Core.Collections.ResourceAttributes

Name Típus Description
etag

string

objectType

string

Microsoft.Partner.Services.Subscriptions.V1.Models.Transition

Name Típus Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

billingCycle

string

events

Microsoft.Partner.Services.Subscriptions.V1.Models.TransitionEvent[]

fromCatalogItemId

string

fromSubscriptionId

string

promotionId

string

quantity

integer

termDuration

string

toCatalogItemId

string

toSubscriptionId

string

transitionType

string

Microsoft.Partner.Services.Subscriptions.V1.Models.TransitionError

Name Típus Description
code enum:
  • 0
  • 1
  • 10
  • 11
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
description

string

Microsoft.Partner.Services.Subscriptions.V1.Models.TransitionEvent

Name Típus Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

errors

Microsoft.Partner.Services.Subscriptions.V1.Models.TransitionError[]

name

string

status

string

timestamp

string