Record a payment
POST
https://app.speybooks.com/api/v1/invoices/{id}/paymentRecords a payment against an invoice. The invoice status is updated automatically based on the total amount paid:
- If cumulative payments equal the invoice total, the status transitions to
paid. - If cumulative payments are less than the total, the status transitions to
partial.
Overpayment is rejected with a 400 error. The amount must be in minor units (pence) — for example, £50.00 is sent as 5000.
The payment date defaults to today if omitted.
Payments cannot be reversed via the API. To correct an overpayment or wrong amount, cancel the invoice and create a credit note.
Path parameters
id string requiredBody parameters
amount integer requireddate string optionalResponse
200 Default Response
Show response fields
amountPaid integernewStatus stringError codes
400 Default Response
404 Invoice not found.