{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/asm-co/main/json-schema/asm-co-get-v1-invoices-response-schema.json",
  "title": "GetV1InvoicesResponse",
  "x-generated": "2026-10-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/asm-co-openapi-generated.yml#/components/schemas/GetV1InvoicesResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier for this item."
    },
    "createdAt": {
      "type": "string",
      "description": "The date this item was created in RFC3339 format."
    },
    "updatedAt": {
      "type": "string",
      "description": "The date this item was updated in RFC3339 format."
    },
    "object": {
      "type": "string",
      "description": "The object type of this resource."
    },
    "collectionMethod": {
      "type": "string",
      "description": "How the payment for this invoice is collected."
    },
    "currency": {
      "type": "string",
      "description": "The 3 letter currency code representing the settlement currency for this invoice."
    },
    "dueDate": {
      "type": "string",
      "description": "The date when this invoice is due in RFC3339 format."
    },
    "memo": {
      "type": "string",
      "description": "The memo added to the invoice."
    },
    "number": {
      "type": "string",
      "description": "A unique number generated for this invoice."
    },
    "recipientId": {
      "type": "string",
      "description": "Deprecated in favor of clientId and companyId."
    },
    "clientId": {
      "type": "string",
      "description": "The ID of the client this invoice is assigned to."
    },
    "companyId": {
      "type": "string",
      "description": "The ID of the company this invoice is assigned to."
    },
    "address": {
      "type": "object",
      "description": "Optional billing address associated with the invoice."
    },
    "sentDate": {
      "type": "string",
      "description": "The date this invoice was sent to a client in RFC3339 format."
    },
    "paymentSuccessDate": {
      "type": "string",
      "description": "The date this invoice was paid in RFC3339 format."
    },
    "status": {
      "type": "string",
      "description": "The status of the invoice (draft, open, paid, void)."
    },
    "taxPercentage": {
      "type": "number",
      "description": "The percentage of tax set on this invoice."
    },
    "taxAmount": {
      "type": "number",
      "description": "The amount of tax on this invoice."
    },
    "total": {
      "type": "number",
      "description": "The total amount of this invoice to be paid."
    },
    "lineItems": {
      "type": "array",
      "description": "Array of line item objects."
    },
    "paymentMethodPreferences": {
      "type": "array",
      "description": "Array of payment method configuration objects."
    },
    "fileUrl": {
      "type": "string",
      "description": "Link to download invoice PDF."
    },
    "receiptNumber": {
      "type": "string",
      "description": "Invoice receipt number if invoice is paid."
    },
    "receiptUrl": {
      "type": "string",
      "description": "Link to download invoice receipt PDF, if invoice is paid."
    },
    "billingReason": {
      "type": "string",
      "description": "Indicates the reason why the invoice was created."
    }
  }
}