次の方法で共有


Manage billing - Get invoice by ID

パートナーの識別子別の請求書を取得します。

GET https://api.partnercenter.microsoft.com/v1/invoices/{invoice_id}

URI パラメーター

名前 / 必須 説明
invoice_id
path True

string

請求書 ID。

要求ヘッダー

名前 必須 説明
Authorization True

string

承認ベアラー トークン

ms-correlationid

string

要求を内部的に追跡するために使用されます。 ms-correlationid が指定されていない場合、サーバーは要求ごとに新しいものを生成します

ms-cv

string

要求を内部的に追跡するために使用されます。 ms-cv が指定されていない場合、サーバーは要求ごとに新しいものを生成します

ms-requestid

string

要求のべき等性に使用されます。 ms-requestid が指定されていない場合、サーバーは要求ごとに新しいものを生成します

応答

名前 説明
200 OK

Invoice

要求は成功しました。 応答本文には、要求された請求書が含まれています。

Media Types: "application/json", "text/json", "application/xml", "text/xml"

400 Bad Request

入力が見つからないか、無効でした。 応答本文には、エラーの詳細が表示されます。

Media Types: "application/json", "text/json", "application/xml", "text/xml"

401 Unauthorized

要求が認証されませんでした。 クライアントは、最初にパートナー API サービスで認証する必要があります。

Media Types: "application/json", "text/json", "application/xml", "text/xml"

403 Forbidden

要求は認証されましたが、呼び出し元に呼び出し権限がないため拒否されました。

Media Types: "application/json", "text/json", "application/xml", "text/xml"

404 Not Found

リソースが見つからないか、指定された入力パラメーターで使用できません。

Media Types: "application/json", "text/json", "application/xml", "text/xml"

500 Internal Server Error

パートナー API サービスまたはその依存関係のいずれかが要求を満たさませんでした。 呼び出し元はこれを再試行できます。

Media Types: "application/json", "text/json", "application/xml", "text/xml"

定義

名前 説明
Invoice
InvoiceDetail
Link
ResourceAttributes
ResourceLinks
System.Collections.Generic.KeyValuePair[System.String,System.String]
TaxReceipt

Invoice

名前 説明
amendments

Invoice[]

amendsOf

string

attributes

ResourceAttributes

billingPeriodEndDate

string

billingPeriodStartDate

string

currencyCode

string

currencySymbol

string

documentType enum:
  • adjustmentNote
  • invoice
  • none
  • reconciliation
  • voidNote
id

string

invoiceDate

string

invoiceDetails

InvoiceDetail[]

invoiceType

string

links

ResourceLinks

paidAmount

number

pdfDownloadLink

string

programName

string

state

string

taxReceipts

TaxReceipt[]

totalCharges

number

InvoiceDetail

名前 説明
attributes

ResourceAttributes

billingProvider enum:
  • all
  • azure
  • marketplace
  • none
  • office
  • oneTime
invoiceLineItemType enum:
  • billingLineItems
  • none
  • usageLineItems
links

ResourceLinks

名前 説明
headers

System.Collections.Generic.KeyValuePair[System.String,System.String][]

method

string

uri

string

ResourceAttributes

名前 説明
etag

string

objectType

string

名前 説明
next

Link

previous

Link

self

Link

System.Collections.Generic.KeyValuePair[System.String,System.String]

名前 説明
key

string

value

string

TaxReceipt

名前 説明
createdDate

string

id

string

receiptType

string

taxReceiptPdfDownloadLink

string