Invoices - Get By Id
依標識碼取得發票。 合約類型為 Microsoft 合作夥伴合約 或 Microsoft 客戶合約 的計費帳戶支援此作業。
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/default/invoices/{invoiceName}?api-version=2020-05-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
invoice
|
path | True |
string |
可唯一識別發票的標識碼。 |
api-version
|
query | True |
string |
要與用戶端要求搭配使用的 API 版本。 目前的版本是 2020-05-01。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
正常。 要求成功。 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Invoice
Sample Request
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/default/invoices/{invoiceName}?api-version=2020-05-01
Sample Response
{
"id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}",
"name": "{invoiceName}",
"type": "Microsoft.Billing/billingAccounts/invoices",
"properties": {
"dueDate": "2018-01-16T17:32:28Z",
"invoiceDate": "2018-01-01T17:32:28Z",
"status": "Due",
"amountDue": {
"currency": "USD",
"value": 16.53
},
"billedAmount": {
"currency": "USD",
"value": 33.99
},
"azurePrepaymentApplied": {
"currency": "USD",
"value": 15.46
},
"creditAmount": {
"currency": "USD",
"value": 2
},
"freeAzureCreditApplied": {
"currency": "USD",
"value": 0
},
"subTotal": {
"currency": "USD",
"value": 33.99
},
"taxAmount": {
"currency": "USD",
"value": 0
},
"totalAmount": {
"currency": "USD",
"value": 16.53
},
"invoicePeriodStartDate": "2018-01-01T17:32:28Z",
"invoicePeriodEndDate": "2018-01-15T17:32:28Z",
"isMonthlyInvoice": false,
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
"billingProfileDisplayName": "Contoso Operations Billing",
"purchaseOrderNumber": "123456",
"documents": [
{
"kind": "Invoice",
"url": "https://microsoft.com/invoice.pdf",
"source": "DRS"
},
{
"kind": "TaxReceipt",
"url": "https://microsoft.com/taxDoc.pdf",
"source": "DRS"
}
],
"payments": [
{
"date": "2018-01-14T17:32:28Z",
"paymentType": "credited",
"amount": {
"currency": "USD",
"value": 2
},
"paymentMethodFamily": "CreditCard",
"paymentMethodType": "visa"
}
]
}
}
定義
名稱 | Description |
---|---|
Amount |
金額。 |
Document |
檔的屬性。 |
Document |
檔的來源。 適用於巴西的 ENF 和全球其餘部分的 DRS。 |
Document |
文件的類型。 |
Error |
錯誤的詳細數據。 |
Error |
錯誤回應表示服務無法處理傳入要求。 錯誤訊息中提供了原因。 |
Error |
|
Invoice |
發票。 |
Invoice |
文件的類型。 |
Invoice |
發票的目前狀態。 |
Invoice |
發票類型。 |
Payment |
付款方式系列。 |
Payment |
付款的屬性。 |
Rebill |
發票的重新計費詳細數據。 |
Amount
金額。
名稱 | 類型 | Description |
---|---|---|
currency |
string |
金額值的貨幣。 |
value |
number |
金額值。 |
Document
檔的屬性。
名稱 | 類型 | Description |
---|---|---|
kind |
文件的類型。 |
|
source |
檔的來源。 適用於巴西的 ENF 和全球其餘部分的 DRS。 |
|
url |
string |
檔 URL。 |
DocumentSource
檔的來源。 適用於巴西的 ENF 和全球其餘部分的 DRS。
名稱 | 類型 | Description |
---|---|---|
DRS |
string |
|
ENF |
string |
DocumentType
文件的類型。
名稱 | 類型 | Description |
---|---|---|
CreditNote |
string |
|
Invoice |
string |
|
TaxReceipt |
string |
|
VoidNote |
string |
ErrorDetails
錯誤的詳細數據。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼。 |
details |
錯誤的子詳細數據。 |
|
message |
string |
指出作業失敗原因的錯誤訊息。 |
target |
string |
特定錯誤的目標。 |
ErrorResponse
錯誤回應表示服務無法處理傳入要求。 錯誤訊息中提供了原因。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤的詳細數據。 |
ErrorSubDetails
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼。 |
message |
string |
指出作業失敗原因的錯誤訊息。 |
target |
string |
特定錯誤的目標。 |
Invoice
發票。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源標識碼。 |
name |
string |
資源名稱。 |
properties.amountDue |
目前到期金額。 |
|
properties.azurePrepaymentApplied |
套用至費用的 Azure 預付款金額。 此欄位適用於合約類型為 Microsoft 客戶合約 的計費帳戶。 |
|
properties.billedAmount |
發票計費週期的總費用。 |
|
properties.billedDocumentId |
string |
使用中發票的標識碼,此發票最初會在此發票過期之後計費。 此欄位僅適用於 void 發票。 |
properties.billingProfileDisplayName |
string |
產生發票的帳單配置檔名稱。 |
properties.billingProfileId |
string |
產生發票之帳單配置檔的標識碼。 |
properties.creditAmount |
發票計費期間傳回和取消的總退款。 此欄位適用於合約類型為 Microsoft 客戶合約 的計費帳戶。 |
|
properties.creditForDocumentId |
string |
發票的標識碼已失效,且此點數附注會因為結果而發行。 此欄位僅適用於信用額度。 |
properties.documentType |
文件的類型。 |
|
properties.documents |
Document[] |
可供下載的檔清單,例如發票和稅務收據。 |
properties.dueDate |
string |
發票的到期日。 |
properties.freeAzureCreditApplied |
套用至費用的免費 Azure 點數金額。 此欄位適用於合約類型為 Microsoft 客戶合約 的計費帳戶。 |
|
properties.invoiceDate |
string |
產生發票的日期。 |
properties.invoicePeriodEndDate |
string |
產生發票之計費週期的結束日期。 |
properties.invoicePeriodStartDate |
string |
產生發票之計費週期的開始日期。 |
properties.invoiceType |
發票類型。 |
|
properties.isMonthlyInvoice |
boolean |
指定發票是否產生為每月發票週期的一部分。 此欄位適用於合約類型為 Microsoft 客戶合約 的計費帳戶。 |
properties.payments |
付款清單。 |
|
properties.purchaseOrderNumber |
string |
發票的選擇性採購單號碼。 |
properties.rebillDetails |
<string,
Rebill |
發票的重新計費詳細數據。 |
properties.status |
發票的目前狀態。 |
|
properties.subTotal |
稅前金額到期。 此欄位適用於合約類型為 Microsoft 客戶合約 的計費帳戶。 |
|
properties.subscriptionId |
string |
產生發票之訂用帳戶的標識碼。 |
properties.taxAmount |
計費期間所收取的稅金金額。 此欄位適用於合約類型為 Microsoft 客戶合約 的計費帳戶。 |
|
properties.totalAmount |
產生發票時所到期的金額。 此欄位適用於合約類型為 Microsoft 客戶合約 的計費帳戶。 |
|
type |
string |
資源類型。 |
InvoiceDocumentType
文件的類型。
名稱 | 類型 | Description |
---|---|---|
CreditNote |
string |
|
Invoice |
string |
InvoiceStatus
發票的目前狀態。
名稱 | 類型 | Description |
---|---|---|
Due |
string |
|
OverDue |
string |
|
Paid |
string |
|
Void |
string |
InvoiceType
發票類型。
名稱 | 類型 | Description |
---|---|---|
AzureMarketplace |
string |
|
AzureService |
string |
|
AzureSupport |
string |
PaymentMethodFamily
付款方式系列。
名稱 | 類型 | Description |
---|---|---|
CheckWire |
string |
|
CreditCard |
string |
|
Credits |
string |
|
None |
string |
PaymentProperties
付款的屬性。
名稱 | 類型 | Description |
---|---|---|
amount |
付費金額。 |
|
date |
string |
付款的日期。 |
paymentMethodFamily |
付款方式系列。 |
|
paymentMethodType |
string |
付款方式的類型。 |
paymentType |
string |
付款的類型。 |
RebillDetails
發票的重新計費詳細數據。
名稱 | 類型 | Description |
---|---|---|
creditNoteDocumentId |
string |
點數記事的標識碼。 |
invoiceDocumentId |
string |
發票的標識碼。 |
rebillDetails |
<string,
Rebill |
發票的重新計費詳細數據。 |