{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-campaign-manager/json-schema/google-campaign-manager-advertiser-invoices-list-response-schema.json",
  "title": "AdvertiserInvoicesListResponse",
  "description": "Invoice List Response",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-campaign-manager-advertiser-invoices-api-openapi.yml#/components/schemas/AdvertiserInvoicesListResponse",
  "properties": {
    "nextPageToken": {
      "type": "string",
      "description": "Pagination token to be used for the next list operation."
    },
    "invoices": {
      "description": "Invoice collection",
      "items": {
        "$ref": "#/$defs/Invoice"
      },
      "type": "array"
    },
    "kind": {
      "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#advertiserInvoicesListResponse\".",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "CampaignSummary": {
      "description": "Represents a summarized campaign information associated with this invoice.",
      "type": "object",
      "properties": {
        "totalAmountMicros": {
          "description": "The total amount of charges for this campaign, in micros of the invoice's currency.",
          "format": "int64",
          "type": "string"
        },
        "taxAmountMicros": {
          "type": "string",
          "format": "int64",
          "description": "The tax amount for this campaign, in micros of the invoice's currency."
        },
        "campaignId": {
          "format": "int64",
          "description": "Campaign ID.",
          "type": "string"
        },
        "billingInvoiceCode": {
          "description": "Campaign billing invoice code.",
          "type": "string"
        },
        "preTaxAmountMicros": {
          "description": "The pre-tax amount for this campaign, in micros of the invoice's currency.",
          "format": "int64",
          "type": "string"
        }
      }
    },
    "Invoice": {
      "properties": {
        "subtotalAmountMicros": {
          "format": "int64",
          "type": "string",
          "description": "The pre-tax subtotal amount, in micros of the invoice's currency."
        },
        "kind": {
          "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#invoice\".",
          "type": "string"
        },
        "invoiceType": {
          "type": "string",
          "enum": [
            "INVOICE_TYPE_UNSPECIFIED",
            "INVOICE_TYPE_CREDIT",
            "INVOICE_TYPE_INVOICE"
          ],
          "description": "The type of invoice document."
        },
        "totalAmountMicros": {
          "description": "The invoice total amount, in micros of the invoice's currency.",
          "type": "string",
          "format": "int64"
        },
        "serviceEndDate": {
          "type": "string",
          "description": "The invoice service end date."
        },
        "purchaseOrderNumber": {
          "description": "Purchase order number associated with the invoice.",
          "type": "string"
        },
        "id": {
          "type": "string",
          "description": "ID of this invoice."
        },
        "pdfUrl": {
          "type": "string",
          "description": "The URL to download a PDF copy of the invoice. Note that 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. The URL will only be usable for 7 days from when the api is called."
        },
        "currencyCode": {
          "type": "string",
          "description": "Invoice currency code in ISO 4217 format."
        },
        "paymentsProfileId": {
          "type": "string",
          "description": "The ID of the payments profile the invoice belongs to. Appears on the invoice PDF as *Billing ID*."
        },
        "serviceStartDate": {
          "description": "The invoice service start date.",
          "type": "string"
        },
        "campaign_summaries": {
          "description": "The list of summarized campaign information associated with this invoice.",
          "items": {
            "$ref": "#/$defs/CampaignSummary"
          },
          "type": "array"
        },
        "issueDate": {
          "description": "The date when the invoice was issued.",
          "type": "string"
        },
        "dueDate": {
          "type": "string",
          "description": "The invoice due date."
        },
        "correctedInvoiceId": {
          "type": "string",
          "description": "The originally issued invoice that is being adjusted by this invoice, if applicable. May appear on invoice PDF as *Reference invoice number*."
        },
        "totalTaxAmountMicros": {
          "type": "string",
          "format": "int64",
          "description": "The sum of all taxes in invoice, in micros of the invoice's currency."
        },
        "paymentsAccountId": {
          "type": "string",
          "description": "The ID of the payments account the invoice belongs to. Appears on the invoice PDF as *Billing Account Number*."
        },
        "replacedInvoiceIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The originally issued invoice(s) that is being cancelled by this invoice, if applicable. May appear on invoice PDF as *Replaced invoice numbers*. Note: There may be multiple replaced invoices due to consolidation of multiple invoices into a single invoice."
        }
      },
      "description": "Contains information about a single invoice",
      "type": "object"
    }
  }
}