Billing Subscriptions - List By Customer

Visar en lista över prenumerationer för en kund. Åtgärden stöds endast för faktureringskonton med avtalstyp Microsoft-partneravtal.

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions?api-version=2020-05-01

URI-parametrar

Name I Obligatorisk Typ Description
billingAccountName
path True

string

Det ID som unikt identifierar ett faktureringskonto.

customerName
path True

string

Det ID som unikt identifierar en kund.

api-version
query True

string

Den version av API:et som ska användas med klientbegäran. Den aktuella versionen är 2020-05-01.

Svar

Name Typ Description
200 OK

BillingSubscriptionsListResult

OK. Begäran har slutförts.

Other Status Codes

ErrorResponse

Felsvar som beskriver varför åtgärden misslyckades.

Säkerhet

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 personifiera ditt användarkonto

Exempel

BillingSubscriptionsListByCustomer

Sample Request

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions?api-version=2020-05-01

Sample Response

{
  "value": [
    {
      "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/billinSubscriptionId1",
      "name": "billingSubscriptionId1",
      "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
      "properties": {
        "displayName": "My subscription",
        "subscriptionId": "87607149-63a6-4644-8dc1-1d2e368f4994",
        "subscriptionBillingStatus": "Active",
        "lastMonthCharges": {
          "currency": "USD",
          "value": 5000
        },
        "monthToDateCharges": {
          "currency": "USD",
          "value": 600
        },
        "costCenter": "ABC1234",
        "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}",
        "customerDisplayName": "Customer1",
        "reseller": {
          "resellerId": "89e87bdf-a2a2-4687-925f-4c18b27bccfd",
          "description": "Reseller1"
        },
        "skuId": "0002",
        "skuDescription": "Microsoft Azure Plan for DevTest"
      }
    },
    {
      "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/billinSubscriptionId2",
      "name": "billingSubscriptionId2",
      "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
      "properties": {
        "displayName": "Test subscription",
        "subscriptionId": "87607149-63a6-4644-8dc1-1d2e368f4995",
        "subscriptionBillingStatus": "Active",
        "lastMonthCharges": {
          "currency": "USD",
          "value": 1000
        },
        "monthToDateCharges": {
          "currency": "USD",
          "value": 400
        },
        "costCenter": "ABC1234",
        "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}",
        "customerDisplayName": "Customer1",
        "reseller": {
          "resellerId": "3b65b5a8-bd4f-4084-90e9-e1bd667a2b19",
          "description": "Reseller3"
        },
        "skuId": "0002",
        "skuDescription": "Microsoft Azure Plan for DevTest"
      }
    }
  ]
}

Definitioner

Name Description
Amount

Beloppet.

BillingSubscription

En faktureringsprenumeration.

BillingSubscriptionsListResult

Listan över faktureringsprenumerationer.

BillingSubscriptionStatusType

Prenumerationens aktuella faktureringsstatus.

ErrorDetails

Information om felet.

ErrorResponse

Felsvaret anger att tjänsten inte kan bearbeta den inkommande begäran. Orsaken anges i felmeddelandet.

ErrorSubDetails
Reseller

Information om återförsäljaren.

Amount

Beloppet.

Name Typ Description
currency

string

Valutan för beloppsvärdet.

value

number

Beloppsvärde.

BillingSubscription

En faktureringsprenumeration.

Name Typ Description
id

string

Resurs-ID.

name

string

Resursnamn.

properties.billingProfileDisplayName

string

Namnet på den faktureringsprofil som prenumerationen faktureras till.

properties.billingProfileId

string

ID:t för den faktureringsprofil som prenumerationen faktureras till.

properties.costCenter

string

Kostnadsställe som tillämpas på prenumerationen.

properties.customerDisplayName

string

Namnet på kunden som prenumerationen skapades för. Fältet gäller endast för Microsoft-partneravtal faktureringskonto.

properties.customerId

string

ID för kunden som prenumerationen skapades för. Fältet gäller endast för Microsoft-partneravtal faktureringskonto.

properties.displayName

string

Namnet på prenumerationen.

properties.invoiceSectionDisplayName

string

Namnet på fakturaavsnittet som prenumerationen faktureras till.

properties.invoiceSectionId

string

ID:t för fakturaavsnittet som prenumerationen faktureras till.

properties.lastMonthCharges

Amount

Den senaste månadens avgifter.

properties.monthToDateCharges

Amount

Aktuell månad hittills avgifter.

properties.reseller

Reseller

Återförsäljare för den här prenumerationen.

properties.skuDescription

string

SKU-beskrivningen av Azure-planen för prenumerationen.

properties.skuId

string

SKU-ID för Azure-planen för prenumerationen.

properties.subscriptionBillingStatus

BillingSubscriptionStatusType

Prenumerationens aktuella faktureringsstatus.

properties.subscriptionId

string

ID för prenumerationen.

properties.suspensionReasons

string[]

Avstängningsorsaken till en prenumeration. Gäller endast för prenumerationer i Faktureringskonton för Microsoft Online Services Program.

type

string

Resurstyp.

BillingSubscriptionsListResult

Listan över faktureringsprenumerationer.

Name Typ Description
nextLink

string

Länken (url) till nästa sida med resultat.

totalCount

number

Totalt antal poster.

value

BillingSubscription[]

Listan över faktureringsprenumerationer.

BillingSubscriptionStatusType

Prenumerationens aktuella faktureringsstatus.

Name Typ Description
Abandoned

string

Active

string

Deleted

string

Inactive

string

Warning

string

ErrorDetails

Information om felet.

Name Typ Description
code

string

Felkod.

details

ErrorSubDetails[]

Underinformationen om felet.

message

string

Felmeddelande som anger varför åtgärden misslyckades.

target

string

Målet för det specifika felet.

ErrorResponse

Felsvaret anger att tjänsten inte kan bearbeta den inkommande begäran. Orsaken anges i felmeddelandet.

Name Typ Description
error

ErrorDetails

Information om felet.

ErrorSubDetails

Name Typ Description
code

string

Felkod.

message

string

Felmeddelande som anger varför åtgärden misslyckades.

target

string

Målet för det specifika felet.

Reseller

Information om återförsäljaren.

Name Typ Description
description

string

Namnet på återförsäljaren.

resellerId

string

MPN-ID för återförsäljaren.