Поделиться через


Manage orders - Accept a transfer of subscriptions for a customer

принимает существующий запрос на передачу.

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

Параметры URI

Имя В Обязательно Тип Описание
customer_id
path True

string

Идентификатор клиента.

transfer_id
path True

string

Идентификатор передачи.

version
path True

string

Заголовок запроса

Имя Обязательно Тип Описание
Authorization True

string

Маркер носителя авторизации

ms-correlationid

string

Используется для отслеживания запросов внутри системы. Если ms-correlationid не указан, сервер создаст новый для каждого запроса.

ms-cv

string

Используется для отслеживания запросов внутри системы. Если ms-cv не предоставлено, сервер создаст новый для каждого запроса.

ms-requestid

string

Используется для идемпотентности запросов. Если ms-requestid не указан, сервер создаст новый для каждого запроса.

Ответы

Имя Тип Описание
200 OK

object

ХОРОШО

Media Types: "application/json", "text/json", "application/xml", "text/xml"

201 Created

Microsoft.Partner.Services.Transfers.V2.Models.TransferSubmitResult

Запрос выполнен успешно. Текст ответа содержит сведения о результатах заказа.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

400 Bad Request

Отсутствуют или недопустимые входные данные. Текст ответа предоставит сведения об ошибке.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

401 Unauthorized

Запрос не прошел проверку подлинности. Сначала клиент должен пройти проверку подлинности с помощью службы API партнеров.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

403 Forbidden

Запрос прошел проверку подлинности, но был отклонен, так как вызывающий объект не имеет прав на его вызов.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

404 Not Found

Ресурс не найден или недоступен с заданными входными параметрами.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

500 Internal Server Error

Служба API партнера или одна из зависимостей не выполнила запрос. Вызывающие могут повторить это.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

Определения

Имя Описание
Microsoft.Partner.Core.Collections.Link
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Providers.Transfer.V2.Models.LastKnownBillingDetails
Microsoft.Partner.Providers.Transfer.V2.Models.LastKnownBillingPeriod
Microsoft.Partner.Providers.Transfer.V2.Models.TransferItemType
Microsoft.Partner.Providers.Transfer.V2.Models.TransferLineItem
Microsoft.Partner.Services.Orders.V2.Models.ClientContext
Microsoft.Partner.Services.Orders.V2.Models.Order
Microsoft.Partner.Services.Orders.V2.Models.OrderLineItem
Microsoft.Partner.Services.Orders.V2.Models.OrderLineItemLinks
Microsoft.Partner.Services.Orders.V2.Models.OrderLinks
Microsoft.Partner.Services.Orders.V2.Models.Pricing
Microsoft.Partner.Services.Orders.V2.Models.ProductTerm
Microsoft.Partner.Services.Orders.V2.Models.PurchaseCommitment
Microsoft.Partner.Services.Orders.V2.Models.RenewsTo
Microsoft.Partner.Services.Orders.V2.Models.ScheduledNextTermInstructions
Microsoft.Partner.Services.Transfers.V2.Models.TransferError
Microsoft.Partner.Services.Transfers.V2.Models.TransferSubmitResult
System.Collections.Generic.KeyValuePair[System.String,System.String]
Имя Тип Описание
body

string

headers

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

method

string

uri

string

Microsoft.Partner.Core.Collections.ResourceAttributes

Имя Тип Описание
etag

string

objectType

string

Microsoft.Partner.Providers.Transfer.V2.Models.LastKnownBillingDetails

Имя Тип Описание
billingAmount

number (double)

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

Microsoft.Partner.Providers.Transfer.V2.Models.LastKnownBillingPeriod

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

string

Microsoft.Partner.Providers.Transfer.V2.Models.LastKnownBillingPeriod

Имя Тип Описание
endDate

string (date-time)

startDate

string (date-time)

Microsoft.Partner.Providers.Transfer.V2.Models.TransferItemType

Значение Описание
AzureReservation
AzureSavingsPlan
AzureSubscription
LegacyAzureSubscription
OnlineServicesNCE

Microsoft.Partner.Providers.Transfer.V2.Models.TransferLineItem

Имя Тип Описание
addonItems

Microsoft.Partner.Providers.Transfer.V2.Models.TransferLineItem[]

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

Microsoft.Partner.Providers.Transfer.V2.Models.LastKnownBillingDetails

currencyCode

string

entitlementId

string

friendlyName

string

id

integer (int32)

offerId

string

orderId

string

parentSubscriptionId

string

partnerIdOnRecord

string

productType

Microsoft.Partner.Providers.Transfer.V2.Models.TransferItemType (int32)

quantity

integer (int32)

sourceSubscriptionId

string

status

string

subscriptionId

string

transferError

string

transferGroupId

string

Microsoft.Partner.Services.Orders.V2.Models.ClientContext

Имя Тип Описание
deviceFamily

string

marketplaceCountry

string

name

string

Microsoft.Partner.Services.Orders.V2.Models.Order

Имя Тип Описание
alternateId

string

attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

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

Microsoft.Partner.Services.Orders.V2.Models.ClientContext

creationDate

string (date-time)

currencyCode

string

currencySymbol

string

id

string

lineItems

Microsoft.Partner.Services.Orders.V2.Models.OrderLineItem[]

links

Microsoft.Partner.Services.Orders.V2.Models.OrderLinks

referenceCustomerId

string

status enum:
  • cancelled (int32)
  • completed (int32)
  • error (int32)
  • partial_success (int32)
  • pending (int32)
  • pending_po_upload (int32)
  • pending_review (int32)
  • po_review_rejected (int32)
  • po_upload_complete (int32)
  • suspended (int32)
  • unknown (int32)
totalPrice

number (double)

transactionType

string

Microsoft.Partner.Services.Orders.V2.Models.OrderLineItem

Имя Тип Описание
attestationAccepted

boolean

customTermEndDate

string (date-time)

friendlyName

string

lineItemNumber

integer (int32)

links

Microsoft.Partner.Services.Orders.V2.Models.OrderLineItemLinks

offerId

string

parentSubscriptionId

string

partnerIdOnRecord

string

pricing

Microsoft.Partner.Services.Orders.V2.Models.Pricing

promotionId

string

provisioningContext

object

purchaseCommitment

Microsoft.Partner.Services.Orders.V2.Models.PurchaseCommitment

quantity

integer (int32)

renewsTo

Microsoft.Partner.Services.Orders.V2.Models.RenewsTo

scheduledNextTermInstructions

Microsoft.Partner.Services.Orders.V2.Models.ScheduledNextTermInstructions

subscriptionId

string

termDuration

string

transactionType

string

Имя Тип Описание
activationLinks

Microsoft.Partner.Core.Collections.Link

availability

Microsoft.Partner.Core.Collections.Link

product

Microsoft.Partner.Core.Collections.Link

provisioningStatus

Microsoft.Partner.Core.Collections.Link

sku

Microsoft.Partner.Core.Collections.Link

subscription

Microsoft.Partner.Core.Collections.Link

Имя Тип Описание
patchOperation

Microsoft.Partner.Core.Collections.Link

provisioningStatus

Microsoft.Partner.Core.Collections.Link

self

Microsoft.Partner.Core.Collections.Link

Microsoft.Partner.Services.Orders.V2.Models.Pricing

Имя Тип Описание
discountedPrice

number (double)

extendedPrice

number (double)

listPrice

number (double)

price

number (double)

proratedPrice

number (double)

Microsoft.Partner.Services.Orders.V2.Models.ProductTerm

Имя Тип Описание
availabilityId

string

billingCycle enum:
  • annual (int32)
  • biennial (int32)
  • monthly (int32)
  • none (int32)
  • one_time (int32)
  • triennial (int32)
  • unknown (int32)
productId

string

skuId

string

termDuration

string

Microsoft.Partner.Services.Orders.V2.Models.PurchaseCommitment

Имя Тип Описание
amount

number (double)

currency

string

grain

string

Microsoft.Partner.Services.Orders.V2.Models.RenewsTo

Имя Тип Описание
termDuration

string

Microsoft.Partner.Services.Orders.V2.Models.ScheduledNextTermInstructions

Имя Тип Описание
product

Microsoft.Partner.Services.Orders.V2.Models.ProductTerm

quantity

number (int32)

Microsoft.Partner.Services.Transfers.V2.Models.TransferError

Имя Тип Описание
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

code

integer (int32)

description

string

lineItems

Microsoft.Partner.Providers.Transfer.V2.Models.TransferLineItem[]

transferGroupId

string

Microsoft.Partner.Services.Transfers.V2.Models.TransferSubmitResult

Имя Тип Описание
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

orders

Microsoft.Partner.Services.Orders.V2.Models.Order[]

transferErrors

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

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

Имя Тип Описание
key

string

value

string