Invoice
import type { Invoice } from "https://googleapis.deno.dev/v1/displayvideo:v4.ts";
A single invoice.
§Properties
The budget grouping ID for this invoice. This field will only be set if the invoice level of the corresponding billing profile was set to "Budget invoice grouping ID".
The list of summarized information for each budget associated with this invoice. This field will only be set if the invoice detail level of the corresponding billing profile was set to "Budget level PO".
The ID of the original invoice being adjusted by this invoice, if
applicable. May appear on the invoice PDF as Reference invoice number
. If
replaced_invoice_ids is set, this field will be empty.
The type of invoice document.
The total amount of costs or adjustments not tied to a particular budget,
in micros of the invoice's currency. For example, if currency_code is
USD
, then 1000000 represents one US dollar.
The ID of the payments account the invoice belongs to. Appears on the
invoice PDF as Billing Account Number
.
The ID of the payments profile the invoice belongs to. Appears on the
invoice PDF as Billing ID
.
The URL to download a PDF copy of the invoice. This URL is user specific
and requires a valid OAuth 2.0 access token to access. The access token
must be provided in an Authorization: Bearer
HTTP header and be
authorized for one of the following scopes: *
https://www.googleapis.com/auth/display-video-mediaplanning
*
https://www.googleapis.com/auth/display-video
The URL will be valid for 7
days after retrieval of this invoice object or until this invoice is
retrieved again.
The ID(s) of any originally issued invoice that is being cancelled by this
invoice, if applicable. Multiple invoices may be listed if those invoices
are being consolidated into a single invoice. May appear on invoice PDF as
Replaced invoice numbers
. If corrected_invoice_id is set, this field will
be empty.
The pre-tax subtotal amount, in micros of the invoice's currency. For
example, if currency_code is USD
, then 1000000 represents one US dollar.