{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qualpay/json-schema/qualpay-invoice-payment-request-schema.json",
  "title": "InvoicePaymentRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qualpay-invoicing-api-openapi.yml#/components/schemas/InvoicePaymentRequest",
  "required": [
    "amt_paid",
    "date_payment",
    "type"
  ],
  "type": "object",
  "properties": {
    "amt_paid": {
      "type": "number",
      "description": "<strong>Format: </strong>Variable length, up to 10, 2 N<br><strong>Description: </strong>The amount paid. The payment currency should be the same as the invoice currency. ",
      "format": "double"
    },
    "date_payment": {
      "type": "string",
      "description": "<strong>Format: </strong>Variable length, up to 10 AN, in YYYY-MM-DD format<br><strong>Description: </strong>The date the payment was made."
    },
    "description": {
      "type": "string",
      "description": "<strong>Format: </strong>Variable length<br><strong>Description: </strong>A short description of the payment."
    },
    "transaction_id": {
      "type": "string",
      "description": "<strong>Format: </strong>Fixed length, 32 AN<br><strong>Description: </strong>The Payment Gateway ID of the applied card payment. This is found as the `pg_id` value in the 'Authorize Transaction' response. Applicable only to a `CREDIT`-type transaction."
    },
    "type": {
      "type": "string",
      "description": "<strong>Format: </strong>Variable length, up to 16 AN<br><strong>Description: </strong>The mode of payment. Select from the following: <br><ul><li>`CASH` - A cash payment.</li><li>`CHECK` - A check payment.</li><li>`CREDIT` - A credit card payment.</li><li>`OTHER` - Another mode of payment.</li></ul>",
      "enum": [
        "CASH",
        "CHECK",
        "CREDIT",
        "OTHER"
      ]
    }
  }
}