API Reference
Log In
API Reference

Invoice Amount Due

Payload reference for the invoice-amount-due callback.

The Invoice Amount Due callback is triggered when the invoice's amount due changes - for example after a partial payment, a write-off, or a credit note. Register the callback URL in the Paper.id dashboard (Settings > API Integration).

The payload format is its own. The per-company feature flag invoice-payment-success-webhook controls whether Paper.id sends this format or a legacy one.

{
  "message": "Invoice outstanding amount due has been updated",
  "payment_method": "Digital Payment - Bank Transfer",
  "data": {
    "invoice": {
      "id": "afef0ea1-caa6-4123-9735-749df749642c",
      "number": "INV/2025/06/126",
      "partner_id": "2d0e80ca-9a46-4e35-a951-a61987fb7c98",
      "status": "unpaid",
      "amount_due": 4000,
      "total_amount": 10000,
      "updated_at": "2025-06-18 05:21:16.529804 +0700 MST"
    },
    "payment": {
      "external_id": "REF1755767319807TXKZ",
      "reconciled_amount": 6000,
      "total_reconciled_amount": 6000,
      "parent_external_id": "REF1755767319807TXKZ",
      "previous_external_id": null
    },
    "connected_documents": [
      {
        "id": "580efeb6-5887-4973-ab13-099e22598adf",
        "type": "pay-01",
        "number": "SR/2025/06/0001",
        "date": "18-06-2025",
        "name": "Sales Receipt",
        "notes": "",
        "amount": 6000,
        "total_amount": 6000
      }
    ]
  }
}

Payload schema

PathData TypeDescription
messagestringHuman readable callback message, e.g. "Invoice outstanding amount due has been updated"
payment_methodstringDisplay name of the payment method, e.g. "Digital Payment - Bank Transfer" (present on reconciliation-triggered callbacks)
dataobjectCallback data
data.invoiceobjectThe invoice whose amount due was updated
data.invoice.idstringInvoice UUID
data.invoice.numberstringInvoice number
data.invoice.partner_idstringPartner UUID related to the invoice
data.invoice.statusstringInvoice status, e.g. unpaid
data.invoice.amount_duenumberOutstanding amount still due on the invoice
data.invoice.total_amountnumberTotal invoice amount
data.invoice.updated_atstringInvoice last updated time
data.paymentobjectThe payment that updated the amount due; omitted on some triggers (e.g. write-off)
data.payment.external_idstringPayment reference ID of the transaction that updated the amount due
data.payment.reconciled_amountnumberAmount applied to the invoice by this transaction
data.payment.total_reconciled_amountnumberRunning total reconciled on the payment reference so far
data.payment.parent_external_idstringParent payment reference in a chained (moving) payment; self reference when the payment is not part of a chain
data.payment.previous_external_idstringPrevious transaction reference in the chain; null on payment-link-triggered callbacks, empty string on reconciliation-triggered callbacks when there is no previous reference
data.connected_documentsarrayDocuments connected to this amount-due update (payment, write-off, credit note, debit note)
data.connected_documents[].idstringDocument UUID
data.connected_documents[].typestringpay-01 (payment in), wo-01 (write-off), cn-01 (credit note), dn-01 (debit note)
data.connected_documents[].numberstringDocument number
data.connected_documents[].datestringDocument date, DD-MM-YYYY
data.connected_documents[].namestringDocument name, e.g. "Sales Receipt"
data.connected_documents[].notesstringDocument notes
data.connected_documents[].amountnumberAmount applied to the invoice by this document
data.connected_documents[].total_amountnumberTotal amount of the connected payment; 0 on reconciliation-triggered callbacks and for non-payment documents