Share via


Invoices - Download Multiple Billing Subscription Invoices

Hiermee haalt u een URL op voor het downloaden van meerdere factuurdocumenten (pdf-factuur, btw-ontvangstbewijzen, creditnota's) als zip-bestand.

POST https://management.azure.com/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/downloadDocuments?api-version=2020-05-01

URI-parameters

Name In Vereist Type Description
subscriptionId
path True

string

De id die een azure-abonnement uniek identificeert.

api-version
query True

string

De versie van de API die moet worden gebruikt met de clientaanvraag. De huidige versie is 2020-05-01.

Aanvraagbody

Name Type Description
downloadUrls

string[]

Een matrix met download-URL's voor afzonderlijke documenten

Antwoorden

Name Type Description
200 OK

DownloadUrl

OK. De aanvraag is voltooid.

202 Accepted

Aanvaard.

Headers

  • Location: string
  • Retry-After: string
Other Status Codes

ErrorResponse

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation uw gebruikersaccount imiteren

Voorbeelden

BillingSubscriptionInvoiceDownload

Sample Request

POST https://management.azure.com/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/downloadDocuments?api-version=2020-05-01

[
  "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}/download?downloadToken={downloadToken}&useCache=True&api-version=2020-05-01",
  "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}/download?downloadToken={downloadToken}&useCache=True&api-version=2020-05-01",
  "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}/download?downloadToken={downloadToken}&useCache=True&api-version=2020-05-01"
]

Sample Response

Location: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/operationResults/invoiceDownload_{operationId}?api-version=2020-05-01
Retry-After: 10
{
  "url": "https://myaccount.blob.core.windows.net/invoices/1383724.pdf?sv=2019-02-02&sr=b&sp=r"
}

Definities

Name Description
DownloadUrl

Een beveiligde URL die kan worden gebruikt om een entiteit te downloaden totdat de URL verloopt.

ErrorDetails

De details van de fout.

ErrorResponse

Foutreactie geeft aan dat de service de binnenkomende aanvraag niet kan verwerken. De reden wordt opgegeven in het foutbericht.

ErrorSubDetails

DownloadUrl

Een beveiligde URL die kan worden gebruikt om een entiteit te downloaden totdat de URL verloopt.

Name Type Description
expiryTime

string

De tijd in UTC waarop de download-URL verloopt.

url

string

De URL naar het PDF-bestand.

ErrorDetails

De details van de fout.

Name Type Description
code

string

Foutcode.

details

ErrorSubDetails[]

De subdetails van de fout.

message

string

Foutbericht waarin wordt aangegeven waarom de bewerking is mislukt.

target

string

Het doel van de specifieke fout.

ErrorResponse

Foutreactie geeft aan dat de service de binnenkomende aanvraag niet kan verwerken. De reden wordt opgegeven in het foutbericht.

Name Type Description
error

ErrorDetails

De details van de fout.

ErrorSubDetails

Name Type Description
code

string

Foutcode.

message

string

Foutbericht waarin wordt aangegeven waarom de bewerking is mislukt.

target

string

Het doel van de specifieke fout.