Sdílet prostřednictvím


Invoice Class

An invoice.

Variables are only populated by the server, and will be ignored when sending a request.

Constructor

Invoice(**kwargs)

Variables

Name Description
id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.

due_date

The due date for the invoice.

invoice_date

The date when the invoice was generated.

status

The current status of the invoice. Known values are: "Due", "OverDue", "Paid", and "Void".

amount_due

The amount due as of now.

azure_prepayment_applied

The amount of Azure prepayment applied to the charges. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.

billed_amount

The total charges for the invoice billing period.

credit_amount

The total refund for returns and cancellations during the invoice billing period. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.

free_azure_credit_applied

The amount of free Azure credits applied to the charges. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.

sub_total

The pre-tax amount due. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.

tax_amount

The amount of tax charged for the billing period. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.

total_amount

The amount due when the invoice was generated. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.

invoice_period_start_date

The start date of the billing period for which the invoice is generated.

invoice_period_end_date

The end date of the billing period for which the invoice is generated.

invoice_type

Invoice type. Known values are: "AzureService", "AzureMarketplace", and "AzureSupport".

is_monthly_invoice

Specifies if the invoice is generated as part of monthly invoicing cycle or not. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.

billing_profile_id
str

The ID of the billing profile for which the invoice is generated.

billing_profile_display_name
str

The name of the billing profile for which the invoice is generated.

purchase_order_number
str

An optional purchase order number for the invoice.

documents

List of documents available to download such as invoice and tax receipt.

payments

List of payments.

rebill_details

Rebill details for an invoice.

document_type

The type of the document. Known values are: "Invoice" and "CreditNote".

billed_document_id
str

The Id of the active invoice which is originally billed after this invoice was voided. This field is applicable to the void invoices only.

credit_for_document_id
str

The Id of the invoice which got voided and this credit note was issued as a result. This field is applicable to the credit notes only.

subscription_id
str

The ID of the subscription for which the invoice is generated.