{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/invoicepdfs-com/json-schema/invoicepdfs-com-payments-list-response-schema.json",
  "title": "PaymentsListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/invoicepdfs-com-payments-api-openapi.yml#/components/schemas/PaymentsListResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/PaymentOut"
      },
      "type": "array",
      "title": "Data"
    },
    "pagination": {
      "$ref": "#/$defs/CursorPagination"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "CursorPagination": {
      "properties": {
        "has_more": {
          "type": "boolean",
          "title": "Has More",
          "default": false
        },
        "next_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Cursor"
        }
      },
      "type": "object",
      "title": "CursorPagination"
    },
    "MoneyOut": {
      "properties": {
        "amount": {
          "type": "string",
          "title": "Amount"
        },
        "currency": {
          "type": "string",
          "title": "Currency"
        }
      },
      "type": "object",
      "required": [
        "amount",
        "currency"
      ],
      "title": "MoneyOut"
    },
    "PaymentOut": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "invoice_id": {
          "type": "string",
          "title": "Invoice Id"
        },
        "amount": {
          "$ref": "#/$defs/MoneyOut"
        },
        "paid_at": {
          "type": "string",
          "title": "Paid At"
        },
        "method": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Method"
        },
        "reference": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reference"
        },
        "notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Notes"
        },
        "created_at": {
          "type": "string",
          "title": "Created At"
        },
        "updated_at": {
          "type": "string",
          "title": "Updated At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "invoice_id",
        "amount",
        "paid_at",
        "created_at",
        "updated_at"
      ],
      "title": "PaymentOut"
    }
  }
}