{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildworkpro-com/json-schema/buildworkpro-com-invoice-payment-schema.json",
  "title": "InvoicePayment",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildworkpro-com-invoices-api-openapi.yml#/components/schemas/InvoicePayment",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "invoiceId": {
      "type": "integer"
    },
    "amount": {
      "type": "string"
    },
    "paidAt": {
      "type": "string",
      "format": "date-time"
    },
    "method": {
      "type": [
        "string",
        "null"
      ]
    },
    "reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "voidedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "invoiceId",
    "amount",
    "paidAt",
    "method",
    "reference",
    "notes",
    "voidedAt"
  ]
}