Skip to main content

Scan Invoice Payment Proof

POST 

/api/purchase-invoices/:purchaseInvoice/payment-request/scan-proof

Scan a payment proof — a bank transfer confirmation image or PDF — and return the payment details read from it, used to pre-fill the record-payment form. Nothing is stored: the file is only persisted later (as a payment-proof attachment) when the payment is actually recorded.

Send as multipart/form-data with a single file field. Accepted types: PDF, JPG/JPEG, PNG, GIF, WEBP, TIFF, BMP. Maximum size 10 MB. If the extraction service is unavailable the endpoint returns 422.

Authentication: Requires Bearer token.

Response fields (each nullable when a value cannot be read):

  • reference: Payment reference or transaction ID.
  • amount: Payment amount.
  • currency_code: ISO currency code.
  • value_date: Date the payment settled (YYYY-MM-DD).
  • payee_name: Beneficiary name shown on the proof.

Request

Responses

OK

Response Headers
    Content-Type