Billing Subscriptions - Validate Transfer
Aboneliğin ücretlerinin yeni bir fatura bölümüne taşınıp taşınamadığını doğrular. Bu işlem yalnızca yinelenen ücretle satın alınan ürünler ve sözleşme türü Microsoft Müşteri Sözleşmesi olan ödeme hesapları için desteklenir.
POST https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}/validateTransferEligibility
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
billing
|
path | True |
string |
Bir ödeme hesabını benzersiz olarak tanımlayan kimlik. |
billing
|
path | True |
string |
Faturalama profilini benzersiz olarak tanımlayan kimlik. |
billing
|
path | True |
string |
Aboneliği benzersiz olarak tanımlayan kimlik. |
invoice
|
path | True |
string |
Bir fatura bölümünü benzersiz olarak tanımlayan kimlik. |
İstek Gövdesi
Name | Tür | Description |
---|---|---|
destinationBillingProfileId |
string |
Hedef faturalama profili kimliği. |
destinationInvoiceSectionId |
string |
Hedef fatura bölümü kimliği. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
Tamam ögesini seçin. İstek başarılı oldu. |
|
Other Status Codes |
İşlemin neden başarısız olduğunu açıklayan hata yanıtı. |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
Subscription |
Subscription |
SubscriptionTransferValidateFailure
Sample Request
POST https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}/validateTransferEligibility
{
"destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}",
"destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}"
}
Sample Response
{
"isTransferEligible": false,
"errorDetails": {
"code": "SubscriptionNotActive",
"message": "Invoice Sections can only be changed for active subscriptions."
}
}
SubscriptionTransferValidateSuccess
Sample Request
POST https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}/validateTransferEligibility
{
"destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}",
"destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}"
}
Sample Response
{
"isTransferEligible": true
}
Tanımlar
Name | Description |
---|---|
Error |
Hatanın ayrıntıları. |
Error |
Hata yanıtı, hizmetin gelen isteği işleyemediğini gösterir. Nedeni hata iletisinde verilmiştir. |
Error |
|
subscription |
Ürün aktarımı doğrulaması için hata kodu. |
Transfer |
Faturalama aboneliğini aktarmak için parametreler isteyin. |
Validate |
Aktarım uygunluğu doğrulamasının hata ayrıntıları |
Validate |
Aktarım uygunluğu doğrulamasının sonucu. |
ErrorDetails
Hatanın ayrıntıları.
Name | Tür | Description |
---|---|---|
code |
string |
Hata kodu. |
details |
Hatanın alt ayrıntıları. |
|
message |
string |
İşlemin neden başarısız olduğunu belirten hata iletisi. |
target |
string |
Belirli bir hatanın hedefi. |
ErrorResponse
Hata yanıtı, hizmetin gelen isteği işleyemediğini gösterir. Nedeni hata iletisinde verilmiştir.
Name | Tür | Description |
---|---|---|
error |
Hatanın ayrıntıları. |
ErrorSubDetails
Name | Tür | Description |
---|---|---|
code |
string |
Hata kodu. |
message |
string |
İşlemin neden başarısız olduğunu belirten hata iletisi. |
target |
string |
Belirli bir hatanın hedefi. |
subscriptionTransferValidationErrorCode
Ürün aktarımı doğrulaması için hata kodu.
Name | Tür | Description |
---|---|---|
BillingAccountInactive |
string |
|
CrossBillingAccountNotAllowed |
string |
|
DestinationBillingProfileInactive |
string |
|
DestinationBillingProfileNotFound |
string |
|
DestinationBillingProfilePastDue |
string |
|
DestinationInvoiceSectionInactive |
string |
|
DestinationInvoiceSectionNotFound |
string |
|
InsufficientPermissionOnDestination |
string |
|
InsufficientPermissionOnSource |
string |
|
InvalidDestination |
string |
|
InvalidSource |
string |
|
MarketplaceNotEnabledOnDestination |
string |
|
NotAvailableForDestinationMarket |
string |
|
ProductInactive |
string |
|
ProductNotFound |
string |
|
ProductTypeNotSupported |
string |
|
SourceBillingProfilePastDue |
string |
|
SourceInvoiceSectionInactive |
string |
|
SubscriptionNotActive |
string |
|
SubscriptionTypeNotSupported |
string |
TransferBillingSubscriptionRequestProperties
Faturalama aboneliğini aktarmak için parametreler isteyin.
Name | Tür | Description |
---|---|---|
destinationBillingProfileId |
string |
Hedef faturalama profili kimliği. |
destinationInvoiceSectionId |
string |
Hedef fatura bölümü kimliği. |
ValidateSubscriptionTransferEligibilityError
Aktarım uygunluğu doğrulamasının hata ayrıntıları
Name | Tür | Description |
---|---|---|
code |
Ürün aktarımı doğrulaması için hata kodu. |
|
details |
string |
Hatayı açıklayan ayrıntılı hata iletisi. |
message |
string |
Hata iletisi. |
ValidateSubscriptionTransferEligibilityResult
Aktarım uygunluğu doğrulamasının sonucu.
Name | Tür | Description |
---|---|---|
errorDetails |
Doğrulama hatası ayrıntıları. |
|
isTransferEligible |
boolean |
Aboneliğin aktarılmaya uygun olup olmadığını belirtir. |