{
  "name": "Remittance cash application preparation",
  "description": "Parse remittance advice into payment references and invoice allocations. Prepare cash application review while your system owns matching and posting.",
  "prompt_additions": "Extract only information explicitly present in this document. Do not infer missing values, verify authenticity, make business decisions, or compare other documents. Preserve identifiers as strings. Return amounts as numbers and dates as YYYY-MM-DD. Review and set required fields for your process before using this schema in production.",
  "fields": [
    {
      "key": "payer_name",
      "label": "Payer Name",
      "type": "string",
      "required": false,
      "description": "Customer or payer as identified in the advice."
    },
    {
      "key": "payment_reference",
      "label": "Payment Reference",
      "type": "string",
      "required": false,
      "description": "Customer’s transfer, check or remittance reference."
    },
    {
      "key": "payment_date",
      "label": "Payment Date",
      "type": "date",
      "required": false,
      "description": "Stated payment date; not verified bank settlement."
    },
    {
      "key": "currency_code",
      "label": "Currency Code",
      "type": "string",
      "required": false,
      "description": "Explicit currency of the advised payment."
    },
    {
      "key": "payment_amount",
      "label": "Payment Amount",
      "type": "currency",
      "required": false,
      "description": "Total payment amount stated in the advice."
    },
    {
      "key": "invoice_allocations",
      "label": "Invoice Allocations",
      "type": "array",
      "required": false,
      "description": "Invoice reference, allocated amount and any stated deduction reason."
    }
  ]
}