發票資源
適用於:合作夥伴中心 |由 21Vianet 營運的合作夥伴中心 |美國政府適用的 Microsoft Cloud 合作夥伴中心
下列發票相關資源可透過合作夥伴中心 API 取得。
Invoice
屬性 | 類型 | 描述 |
---|---|---|
id | string | 發票標識碼。 |
invoiceDate | UTC 日期時間格式的字串 | 產生發票的日期。 |
billingPeriodStartDate | UTC 日期時間格式的字串 | 以UTC為單位的計費周期開始日期。 |
billingPeriodEndDate | UTC 日期時間格式的字串 | 以 UTC 為單位的計費周期結束日期。 |
totalCharges | number | 總費用。 包含交易的費用和任何調整。 |
paidAmount | number | 合作夥伴支付的金額。 如果收到付款,則為負數。 |
currencyCode | string | 程序代碼,表示用於所有發票專案金額和總計的貨幣。 |
currencySymbol | string | 用於所有發票項目金額和總計的貨幣符號。 |
pdfDownloadLink | string | 以 PDF 格式下載發票的連結。 此連結不會當做搜尋結果的一部分傳回,而且只有在標識碼存取發票時才會填入。 此連結會在 30 分鐘內自動到期。 |
invoiceDetails | InvoiceDetail 物件的陣列 | 發票詳細數據。 |
修訂 | Invoice 對象的陣列 | 此發票的修訂。 |
documentType | string | 發票的檔類型:「點數附注」、「發票」。 |
amendsOf | string | 本檔為增修文件的參考編號。 |
invoiceType | string | 發票類型:「週期性」、“one_time”。 |
連結 | ResourceLinks | 資源連結。 |
attributes | ResourceAttributes | 元數據屬性。 |
collectionOfSummary | TaxReceipt 物件的數位 | 取得或設定稅務收據下載連結。 |
狀態 | 字串 | 取得發票狀態,例如「作用中」、「void」等。 |
InvoiceDetail
發票包含計費專案的集合,而每個項目都會以 InvoiceDetail 資源表示。
屬性 | 類型 | 描述 |
---|---|---|
invoiceLineItemType | string | 發票詳細數據的類型:「none」、“usage_line_items”、“billing_line_items”。 |
billingProvider | string | 計費提供者:「None」、“Office”、“Azure”、“OneTime”。 |
連結 | ResourceLinks | 資源連結。 |
attributes | ResourceAttributes | 元數據屬性。 |
InvoiceLineItem
發票中的每個個別費用都會以 InvoiceLineItem 表示。
屬性 | 類型 | 描述 |
---|---|---|
invoiceLineItemType | string | 發票明細項目的類型:「none」、“usage_line_items”、“billing_line_items”。 |
billingProvider | string | 計費提供者:「None」、“Office”、“Azure”、“OneTime”。 |
attributes | ResourceAttributes | 元數據屬性。 |
InvoiceSummary
描述發票餘額和總費用的摘要。
屬性 | 類型 | 描述 |
---|---|---|
balanceAmount | number | 發票的餘額。 這是未付帳單的總金額。 |
currencyCode | string | 表示用於餘額貨幣的程序代碼。 |
currencySymbol | string | 使用的貨幣符號。 |
accountingDate | UTC 日期時間格式的字串 | 上次更新餘額的日期。 |
firstInvoiceCreationDate | UTC 日期時間格式的字串 | 建立客戶第一張發票的日期。 |
lastPaymentDate | UTC 日期時間格式的字串 | 上次付款的日期。 |
lastPaymentAmount | number | 上次付款的金額。 |
latestInvoiceDate | UTC 日期時間格式的字串 | 建立客戶最後一張發票的日期。 |
詳細資料 | InvoiceSummaryDetail 對象的陣列 | 發票摘要詳細數據。 |
連結 | ResourceLinks | 資源連結。 |
attributes | ResourceAttributes | 元數據屬性。 |
InvoiceSummaryDetail
代表發票類型的個別詳細數據摘要(例如週期性、one_time)。
屬性 | 類型 | 描述 |
---|---|---|
invoiceType | string | 發票類型:「週期性」、“one_time”。 |
摘要 | InvoiceSummary 物件 | 每個發票類型的發票摘要。 |
InvoiceSummaries
代表 InvoiceSummary 類型的集合,其中包含每個貨幣發票類型的個別詳細數據。
屬性 | 類型 | 描述 |
---|---|---|
collectionOfSummary | InvoiceSummary 對象的陣列 | 每個貨幣每個發票類型的發票摘要。 |
LicenseBasedLineItem
代表授權型訂閱的發票計費明細專案。
屬性 | 類型 | 描述 |
---|---|---|
金額 | string | 取得或設定總金額。 總金額 = 單價 * 數量。 |
attributes | string | 取得屬性。 |
billingCycleType | string | 取得或設定計費週期類型。 |
billingProvider | string | 取得計費提供者。 |
chargeEndDate | UTC 日期時間格式的字串 | 取得或設定費用的結束日期。 |
chargeStartDate | UTC 日期時間格式的字串 | 取得或設定費用的開始日期。 |
chargeType | string | 取得或設定費用的類型。 |
currency | string | 取得或設定用於此明細項目的貨幣。 |
customerId | string | 取得或設定 Microsoft 計費平臺中的客戶唯一標識碼。 |
customerName | UTC 日期時間格式的字串 | 取得或設定客戶名稱。 |
domainName | string | 取得或設定功能變數名稱。 |
durableOfferId | string | 取得或設定耐久供應專案的唯一標識符。 |
invoiceLineItemType | string | 取得發票明細專案的型別。 |
partnerId | number | 取得或設定與此明細項目相關聯的 PartnerID。 對於直接轉銷商,這是轉銷商的 PartnerID。 對於間接轉銷商,這是增值轉銷商 (VAR) 的 PartnerID。 |
offerId | string | 取得或設定供應專案的唯一標識符。 |
offerName | string | 取得或設定供應項目名稱。 |
訂單識別碼 | string | 取得或設定順序唯一標識碼。 |
partnerId | string | 取得或設定合作夥伴 Microsoft Entra 租使用者識別碼。 |
數量 | number | 取得或設定與此明細專案相關聯的單位數目。 |
subscriptionDescription | string | 取得或設定訂閱描述。 |
subscriptionEndDate | UTC 日期時間格式的字串 | 取得或設定訂閱到期的日期。 |
subscriptionId | string | 取得或設定訂用帳戶的唯一標識符。 |
subscriptionName | string | 取得或設定訂用帳戶名稱。 |
subscriptionStartDate | UTC 日期時間格式的字串 | 取得或設定訂閱啟動時的日期。 |
次 全 切除 | number | 取得或設定折扣后的金額。 |
syndicationPartnerSubscriptionNumber | string | 取得或設定新聞訂閱合作夥伴訂用帳戶號碼。 |
稅 | number | 取得或設定收費的稅金。 |
tier2MpnId | number | 取得或設定與此明細專案相關聯的第 2 層合作夥伴 PartnerID。 |
totalForCustomer | number | 取得或設定折扣和稅後的總金額。 |
totalOtherDiscount | number | 取得或設定與此購買相關聯的折扣。 |
unitPrice | number | 取得或設定單價。 |
UsageBasedLineItem
代表使用量型訂用帳戶的發票計費明細專案。
屬性 | 類型 | 描述 |
---|---|---|
attributes | string | 取得屬性。 |
billingCycleType | string | 取得或設定計費週期類型。 |
billingProvider | string | 取得計費提供者。 |
chargeEndDate | UTC 日期時間格式的字串 | 取得或設定費用的結束日期。 |
chargeStartDate | UTC 日期時間格式的字串 | 取得或設定費用的開始日期。 |
chargeType | string | 取得或設定費用的類型。 |
consumedQuantity | number | 取得或設定取用的總單位數。 |
consumptionDiscount | string | 取得或設定取用的折扣。 |
consumptionPrice | string | 取得或設定取用的數量價格。 |
currency | string | 取得或設定與價格相關聯的貨幣。 |
customerName | string | 取得或設定客戶名稱。 |
customerId | string | 取得或設定客戶唯一標識碼。 |
detailLineItemId | number | 取得或設定詳細數據明細專案標識碼。 針對所取用單位計算不同的情況,可唯一識別明細專案。 範例:已取用總計 = 1338,1024 會收取一個費率,314 會以不同的費率收費。 |
domainName | string | 取得或設定功能變數名稱。 |
includedQuantity | number | 取得或設定順序中包含的單位。 |
invoiceLineItemType | string | 取得發票明細專案的型別。 |
invoiceNumber | string | 取得或設定發票號碼。 |
listPrice | number | 取得或設定每個單位的價格。 |
partnerId | number | 取得或設定與此明細項目相關聯的 PartnerID。 對於直接轉銷商,這是轉銷商的 PartnerID。 對於間接轉銷商,這是增值轉銷商 (VAR) 的 PartnerID。 |
訂單識別碼 | string | 取得或設定順序唯一標識碼。 |
overageQuantity | number | 取得或設定上述允許使用的數量。 |
partnerBillableAccountId | string | 取得或設定合作夥伴可計費帳戶標識碼。 |
partnerId | string | 取得或設定合作夥伴 Microsoft Entra 租使用者識別碼。 |
partnerName | string | 取得或設定夥伴的名稱。 |
postTaxEffectiveRate | number | 取得或設定稅後的有效價格。 |
postTaxTotal | number | 取得或設定稅後的總費用。 稅前費用 + 稅額 |
preTaxCharges | number | 取得或設定稅前收取的價格。 |
preTaxEffectiveRate | number | 取得或設定稅前的有效價格。 |
region | string | 取得或設定與資源實例相關聯的區域。 |
resourceGuid | string | 取得或設定資源標識碼。 |
resourceName | string | 取得或設定資源名稱。 範例:資料庫(GB/月)。 |
serviceName | string | 取得或設定服務名稱。 範例:Azure Data Service。 |
serviceType | string | 取得或設定服務類型。 範例:Azure SQL Azure DB。 |
SKU | string | 取得或設定服務 SKU。 |
subscriptionDescription | string | 取得或設定訂閱描述。 |
subscriptionId | string | 取得或設定訂用帳戶的唯一標識符。 |
subscriptionName | string | 取得或設定訂用帳戶名稱。 |
taxAmount | number | 取得或設定收取的稅金金額。 |
tier2MpnId | number | 取得或設定與此明細專案相關聯的第 2 層合作夥伴 PartnerID。 |
單位 | string | 取得或設定 Azure 使用量的測量單位。 |
InvoiceStatement
表示 application/pdf 中發票語句上可用的作業。
屬性 | 類型 | 描述 |
---|---|---|
httpResponseMessage | object | 具有 contentType = application/pdf 的 ByteArrayContent。 |
OneTimeInvoiceLineItem
代表授權型訂閱的發票計費明細專案。
屬性 | 類型 | 描述 |
---|---|---|
PartnerId | string | 取得或設定合作夥伴租用戶標識碼。 |
CustomerId | string | 取得或設定客戶租用戶標識碼。 |
CustomerName | string | 取得或設定客戶名稱。 |
CustomerDomainName | string | 取得或設定客戶功能變數名稱。 |
CustomerCountry | string | 取得或設定客戶國家/地區。 |
InvoiceNumber | string | 取得或設定發票號碼。 |
MpnId | string | 取得或設定與此明細項目相關聯的 PartnerID。 |
ResellerMpnId | int | 取得或設定與此明細專案相關聯的第 2 層合作夥伴 PartnerID。 |
OrderDate | Datetime | 取得或設定建立訂單的日期。 |
OrderId | string | Microsoft 計費平台中訂單的唯一標識符。 |
ProductId | 字串 | 取得或設定產品唯一標識符。 |
SkuId | string | 取得或設定 SKU 唯一識別碼。 |
AvailabilityId | string | 取得或設定可用性唯一標識符。 |
ProductName | string | 取得或設定產品名稱。 |
SkuName | string | 取得或設定 SKU 名稱。 |
ChargeType | string | 取得或設定費用的類型。 |
UnitPrice | decimal | 取得或設定單價。 |
EffectiveUnitPrice | decimal | 取得或設定有效的單價。 |
UnitType | string | 取得或設定單位類型。 |
數量 | int | 取得或設定與此明細專案相關聯的單位數目。 |
小計 | decimal | 取得或設定折扣后的金額。 |
TaxTotal | decimal | 取得或設定收費的稅金。 |
TotalForCustomer | decimal | 取得或設定折扣和稅後的總金額。 |
貨幣 | string | 取得或設定用於此明細項目的貨幣。 |
PublisherName | string | 取得或設定與此購買相關聯的發行者名稱。 |
PublisherId | string | 取得或設定與此購買相關聯的發行者標識符。 |
SubscriptionDescription | string | 取得或設定與此購買相關聯的訂用帳戶描述。 |
SubscriptionId | string | 取得或設定與此購買相關聯的訂用帳戶標識碼。 |
ChargeStartDate | Datetime | 取得或設定與此購買相關聯的費用開始日期。 |
ChargeEndDate | Datetime | 取得或設定與此購買相關聯的費用結束日期。 |
TermAndBillingCycle | string | 取得或設定與此購買相關聯的字詞和計費週期。 |
AlternateId | string | 取得或設定替代識別碼(引號標識符)。 |
PriceAdjustmentDescription | string | 取得或設定價格調整描述。 |
CreditReasonCode | string | 取得或設定信用原因碼。 |
DiscountDetails | string | 已取代。 取得或設定與此購買相關聯的折扣詳細數據。 |
PricingCurrency | string | 取得或設定定價貨幣代碼。 |
PCToBCExchangeRate | decimal | 取得或設定定價貨幣為計費貨幣匯率。 |
PCToBCExchangeRateDate | Datetime | 取得或設定決定計費貨幣匯率的匯率日期。 |
BillableQuantity | decimal | 取得或設定購買的單位。 針對每個名為 BillableQuantity 的設計數據行。 |
MeterDescription | string | 取得或設定取用明細專案的計量描述。 |
ReservationOrderId | string | 取得或設定 Azure RI 購買的保留訂單標識碼。 |
BillingFrequency | string | 取得或設定計費頻率。 |
InvoiceLineItemType | InvoiceLineItemType | 傳回發票明細項目的類型。 |
BillingProvider | BillingProvider | 傳回計費提供者。 |
ProductQualifiers | string | 要知道附加元件或試用版購買的標識符。 |
PromotionId | string | 擷取促銷信息的標識碼。 |
DailyRatedUsageLineItem
代表每日評分使用量的未計費帳單對帳明細專案。
屬性 | 類型 | 描述 |
---|---|---|
PartnerId | string | 取得或設定合作夥伴租用戶標識碼。 |
PartnerName | string | 取得或設定夥伴名稱。 |
CustomerId | string | 取得或設定使用量所屬客戶的租用戶標識碼。 |
CustomerName | string | 取得或設定使用方式所屬的客戶公司名稱。 |
CustomerDomainName | string | 取得或設定使用方式所屬客戶的功能變數名稱。 |
InvoiceNumber | string | 取得或設定使用量所屬發票的標識碼。 |
ProductId | 字串 | 取得或設定產品唯一標識符。 |
SkuId | string | 取得或設定 SKU 唯一識別碼。 |
AvailabilityId | string | 取得或設定可用性唯一標識符。 |
SkuName | string | 取得或設定服務的 SKU 名稱。 |
ProductName | string | 取得或設定產品名稱。 |
PublisherName | string | 取得或設定發行者的名稱。 |
PublisherId | string | 取得或設定發行者的標識碼。 |
SubscriptionId | string | 取得或設定訂用帳戶標識碼。 |
SubscriptionDescription | string | 取得或設定訂閱描述。 |
ChargeStartDate | Datetime | 取得或設定費用開始日期。 |
ChargeEndDate | Datetime | 取得或設定收費結束日期。 |
UsageDate | Datetime | 取得或設定使用日期。 |
MeterType | string | 取得或設定計量類型。 |
計量類別目錄 | string | 取得或設定計量類別目錄。 |
MeterId | string | 取得或設定計量標識碼 (GUID)。 |
MeterSubCategory | string | 取得或設定計量子類別目錄。 |
MeterName | string | 取得或設定計量名稱。 |
MeterRegion | string | 取得或設定計量區域。 |
UnitOfMeasure | string | 取得或設定量值單位。 |
資源位置 | string | 取得或設定資源的位置。 |
ConsumedService | string | 取得或設定取用的服務名稱。 |
ResourceGroup | string | 取得或設定資源組名。 |
ResourceUri | string | 取得或設定使用方式所關於之資源實例的 URI。 |
標籤 | string | 取得或設定客戶新增的標記。 |
AdditionalInfo | string | 取得或設定服務特定的元數據。 例如,虛擬機的映像類型。 |
ServiceInfo1 | string | 取得或設定內部 Azure 服務元數據。 |
ServiceInfo2 | string | 取得或設定服務資訊,例如虛擬機的映像類型,以及 ExpressRoute 的 ISP 名稱。 |
CustomerCountry | string | 取得或設定客戶的國家/地區。 |
MpnId | string | 取得或設定與此明細項目相關聯的 PartnerID。 |
ResellerMpnId | string | 取得或設定與這個明細項目相關聯之第 2 層合作夥伴的 Reseller PartnerID。 |
ChargeType | string | 取得或設定費用的類型。 |
UnitPrice | decimal | 取得或設定單位的價格。 |
數量 | decimal | 取得或設定使用量的數量。 |
UnitType | string | 取得或設定單位類型(例如1小時)。 |
BillingPreTaxTotal | decimal | 取得或設定客戶或計費貨幣的當地貨幣稅前的延長成本或總成本。 |
BillingCurrency | string | 取得或設定 ISO 貨幣,其中計量是以客戶或計費貨幣的當地貨幣計費。 |
PricingPreTaxTotal | decimal | 取得或設定用於評分的美元或目錄貨幣的稅前延長成本或總成本。 |
PricingCurrency | string | 取得或設定 ISO 貨幣,其中計量是以美元或用於評分的目錄貨幣來收費。 |
EntitlementId | string | 取得或設定權利 (Azure 訂用帳戶) 識別碼。 |
EntitlementDescription | string | 取得或設定權利 (Azure 訂用帳戶) 描述。 |
PCToBCExchangeRate | string | 取得或設定定價貨幣為計費貨幣匯率。 |
PCToBCExchangeRateDate | Datetime | 取得或設定計費貨幣匯率日期的定價貨幣。 |
EffectiveUnitPrice | decimal | 取得或設定有效的單價。 |
RateOfPartnerEarnedCredit | decimal | 取得或設定合作夥伴所獲得點數的比率。 |
HasPartnerEarnedCredit | bool | 取得或設定已套用合作夥伴所獲得點數。 |
RateOfCredit | decimal | 取得或設定指定信用類型的點數比率。 |
CreditType | string | 取得或設定信用額度的類型。 |
InvoiceLineItemType | InvoiceLineItemType | 傳回發票明細項目的類型。 |
BillingProvider | BillingProvider | 傳回計費提供者。 |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應