Invoices - Download Billing Subscription Invoice
Gets a URL to download an invoice.
POST https://management.azure.com/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}/download?api-version=2020-05-01&downloadToken={downloadToken}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
invoice
|
path | True |
string |
The ID that uniquely identifies an invoice. |
subscription
|
path | True |
string |
The ID that uniquely identifies an Azure subscription. |
api-version
|
query | True |
string |
The version of the API to be used with the client request. The current version is 2020-05-01. |
download
|
query | True |
string |
Download token with document source and document ID. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK. The request has succeeded. |
|
202 Accepted |
Accepted. Headers
|
|
Other Status Codes |
Error response describing why the operation failed. |
Security
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 | impersonate your user account |
Examples
BillingSubscriptionInvoiceDownload
Sample request
POST https://management.azure.com/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}/download?api-version=2020-05-01&downloadToken=DRS_12345
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&sig=sp=r"
}
Definitions
Name | Description |
---|---|
Download |
A secure URL that can be used to download a an entity until the URL expires. |
Error |
The details of the error. |
Error |
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. |
Error |
DownloadUrl
A secure URL that can be used to download a an entity until the URL expires.
Name | Type | Description |
---|---|---|
expiryTime |
string (date-time) |
The time in UTC when the download URL will expire. |
url |
string |
The URL to the PDF file. |
ErrorDetails
The details of the error.
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
details |
The sub details of the error. |
|
message |
string |
Error message indicating why the operation failed. |
target |
string |
The target of the particular error. |
ErrorResponse
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.
Name | Type | Description |
---|---|---|
error |
The details of the error. |
ErrorSubDetails
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
message |
string |
Error message indicating why the operation failed. |
target |
string |
The target of the particular error. |