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
| Path | Data Type | Description |
|---|---|---|
| message | string | Human readable callback message, e.g. "Invoice outstanding amount due has been updated" |
| payment_method | string | Display name of the payment method, e.g. "Digital Payment - Bank Transfer" (present on reconciliation-triggered callbacks) |
| data | object | Callback data |
| data.invoice | object | The invoice whose amount due was updated |
| data.invoice.id | string | Invoice UUID |
| data.invoice.number | string | Invoice number |
| data.invoice.partner_id | string | Partner UUID related to the invoice |
| data.invoice.status | string | Invoice status, e.g. unpaid |
| data.invoice.amount_due | number | Outstanding amount still due on the invoice |
| data.invoice.total_amount | number | Total invoice amount |
| data.invoice.updated_at | string | Invoice last updated time |
| data.payment | object | The payment that updated the amount due; omitted on some triggers (e.g. write-off) |
| data.payment.external_id | string | Payment reference ID of the transaction that updated the amount due |
| data.payment.reconciled_amount | number | Amount applied to the invoice by this transaction |
| data.payment.total_reconciled_amount | number | Running total reconciled on the payment reference so far |
| data.payment.parent_external_id | string | Parent payment reference in a chained (moving) payment; self reference when the payment is not part of a chain |
| data.payment.previous_external_id | string | Previous 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_documents | array | Documents connected to this amount-due update (payment, write-off, credit note, debit note) |
| data.connected_documents[].id | string | Document UUID |
| data.connected_documents[].type | string | pay-01 (payment in), wo-01 (write-off), cn-01 (credit note), dn-01 (debit note) |
| data.connected_documents[].number | string | Document number |
| data.connected_documents[].date | string | Document date, DD-MM-YYYY |
| data.connected_documents[].name | string | Document name, e.g. "Sales Receipt" |
| data.connected_documents[].notes | string | Document notes |
| data.connected_documents[].amount | number | Amount applied to the invoice by this document |
| data.connected_documents[].total_amount | number | Total amount of the connected payment; 0 on reconciliation-triggered callbacks and for non-payment documents |