Error
A valid request URL is required to generate request examples{
"id": 123,
"amount": "2500.00",
"paid_on": "2023-12-25",
"reference": "<string>",
"notes": "<string>",
"allocations": [
{
"purchase_order": {
"id": 123,
"label": "<string>"
},
"amount": "<string>"
}
],
"created_by_id": 123,
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}SupplierInvoicePayment
Record supplier invoice payment
Records a (partial) payment of a matched or approved invoice. Payments are entered manually — paying itself happens in the accounting system.
POST
/
supplier_invoices
/
{supplier_invoice_id}
/
payments
Error
A valid request URL is required to generate request examples{
"id": 123,
"amount": "2500.00",
"paid_on": "2023-12-25",
"reference": "<string>",
"notes": "<string>",
"allocations": [
{
"purchase_order": {
"id": 123,
"label": "<string>"
},
"amount": "<string>"
}
],
"created_by_id": 123,
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}Body
application/json
Records a (partial) payment of a matched or approved invoice; the paid total can't exceed the net amount. The payment is split across the invoice's purchase orders and stored — without allocations proportionally across all of them (by their items' amount on the invoice), with allocations ids only proportionally across the selected ones, with ids and amounts exactly (amounts must add up to amount; a PO may get more than its share).
Response
Created