Partager via


Manage orders - Create a transfer

Crée une entité de transfert.

POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/transfers

Paramètres URI

Nom Dans Obligatoire Type Description
customer_id
path True

string

Identificateur du client.

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
alternateId

string

attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

completedTime

string (date-time)

createdTime

string (date-time)

customerEmailId

string

customerName

string

customerTenantId

string

expirationTime

string (date-time)

id

string

ignoreEligibilityCheck

boolean

lastModifiedTime

string (date-time)

lastModifiedUser

string

lineItems

Microsoft.Partner.Services.Transfers.V2.Models.TransferLineItem[]

links

Microsoft.Partner.Core.Collections.ResourceLinks

participants

System.Collections.Generic.KeyValuePair[System.String,System.String][]

partnerOnRecord

string

partnertenantid

string

sourcePartnerEmailId

string

sourcePartnerName

string

sourcePartnerTenantId

string

status

string

targetPartnerEmailId

string

targetPartnerName

string

targetPartnerTenantId

string

targetProductTypes

string[]

transferDirection enum:
  • 0 (int32)
  • 1 (int32)
  • 2 (int32)
transferType enum:
  • Unknown (int32)
  • EaToCsp (int32)
  • DirectToIndirect (int32)
  • ModernAzure (int32)
  • PartnerToPartner (int32)
  • NewCommerce (int32)

Réponses

Nom Type Description
201 Created

Microsoft.Partner.Services.Transfers.V2.Models.TransferEntity

La demande a réussi. Le corps de la réponse contient les informations de transfert.

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

Nom Description
Microsoft.Partner.Core.Collections.Link
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Core.Collections.ResourceLinks
Microsoft.Partner.Services.Transfers.V2.Models.LastKnownBillingDetails
Microsoft.Partner.Services.Transfers.V2.Models.LastKnownBillingPeriod
Microsoft.Partner.Services.Transfers.V2.Models.TransferEntity
Microsoft.Partner.Services.Transfers.V2.Models.TransferItemType
Microsoft.Partner.Services.Transfers.V2.Models.TransferLineItem
Microsoft.Partner.Services.Transfers.V2.Models.TransferLineItemError
Microsoft.Partner.Services.Transfers.V2.Models.TransferLineItemPrice
System.Collections.Generic.KeyValuePair[System.String,System.String]
Nom Type Description
body

string

headers

System.Collections.Generic.KeyValuePair[System.String,System.String][]

method

string

uri

string

Microsoft.Partner.Core.Collections.ResourceAttributes

Nom Type Description
etag

string

objectType

string

Nom Type Description
next

Microsoft.Partner.Core.Collections.Link

previous

Microsoft.Partner.Core.Collections.Link

self

Microsoft.Partner.Core.Collections.Link

Microsoft.Partner.Services.Transfers.V2.Models.LastKnownBillingDetails

Nom Type Description
billingAmount

number (double)

billingCycle enum:
  • annual (int32)
  • monthly (int32)
  • none (int32)
  • one_time (int32)
  • unknown (int32)
billingPeriod

Microsoft.Partner.Services.Transfers.V2.Models.LastKnownBillingPeriod

billingType enum:
  • license (int32)
  • none (int32)
  • usage (int32)
currency

string

Microsoft.Partner.Services.Transfers.V2.Models.LastKnownBillingPeriod

Nom Type Description
endDate

string (date-time)

startDate

string (date-time)

Microsoft.Partner.Services.Transfers.V2.Models.TransferEntity

Nom Type Description
alternateId

string

attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

completedTime

string (date-time)

createdTime

string (date-time)

customerEmailId

string

customerName

string

customerTenantId

string

expirationTime

string (date-time)

id

string

ignoreEligibilityCheck

boolean

lastModifiedTime

string (date-time)

lastModifiedUser

string

lineItems

Microsoft.Partner.Services.Transfers.V2.Models.TransferLineItem[]

links

Microsoft.Partner.Core.Collections.ResourceLinks

participants

System.Collections.Generic.KeyValuePair[System.String,System.String][]

partnerOnRecord

string

partnertenantid

string

sourcePartnerEmailId

string

sourcePartnerName

string

sourcePartnerTenantId

string

status

string

targetPartnerEmailId

string

targetPartnerName

string

targetPartnerTenantId

string

targetProductTypes

string[]

transferDirection enum:
  • 0 (int32)
  • 1 (int32)
  • 2 (int32)
transferType enum:
  • DirectToIndirect (int32)
  • EaToCsp (int32)
  • ModernAzure (int32)
  • NewCommerce (int32)
  • PartnerToPartner (int32)
  • Unknown (int32)

Microsoft.Partner.Services.Transfers.V2.Models.TransferItemType

Valeur Description
AzureSubscription
AzureReservation
LegacyAzureSubscription
AzureSavingsPlan
OnlineServicesNCE

Microsoft.Partner.Services.Transfers.V2.Models.TransferLineItem

Nom Type Description
addonItems

Microsoft.Partner.Services.Transfers.V2.Models.TransferLineItem[]

billingCycle enum:
  • annual (int32)
  • monthly (int32)
  • none (int32)
  • one_time (int32)
  • unknown (int32)
billingDetails

Microsoft.Partner.Services.Transfers.V2.Models.LastKnownBillingDetails

currencyCode

string

errors

Microsoft.Partner.Services.Transfers.V2.Models.TransferLineItemError[]

friendlyName

string

id

integer (int32)

offerId

string

orderId

string

partnerIdOnRecord

string

price

Microsoft.Partner.Services.Transfers.V2.Models.TransferLineItemPrice

productType

Microsoft.Partner.Services.Transfers.V2.Models.TransferItemType (int32)

quantity

integer (int32)

status

string

subscriptionId

string

transferError

string

transferGroupId

string

Microsoft.Partner.Services.Transfers.V2.Models.TransferLineItemError

Nom Type Description
code

string

description

string

Microsoft.Partner.Services.Transfers.V2.Models.TransferLineItemPrice

Nom Type Description
currencyCode

string

discountedPrice

number (double)

extendedPrice

number (double)

listPrice

number (double)

price

number (double)

proratedPrice

number (double)

System.Collections.Generic.KeyValuePair[System.String,System.String]

Nom Type Description
key

string

value

string