Skip to main content

Payments

Record and manage payments for invoices and retainer invoices.

Create Payment​

POST https://api.invoiless.com/v1/invoices/:id/payments

Record a payment for an invoice.

Example:

{
"amount": 100.5,
"method": "BankTransfer",
"paidAt": "2024-01-15",
"notes": "Payment received via bank transfer"
}

Path Parameters​

NameTypeDescriptionRequired
idstringInvoice idYes

Header Parameters​

NameTypeDescriptionRequired
scope-idstringScope idNo

Body Parameters​

NameTypeDescriptionRequired
amountnumberPayment amount (must be positive, max 2 decimal places). If not provided, the full invoice balance will be usedNo
methodstringPayment method, possible values are Cash, Cheque, Card, BankTransfer, or OtherYes
paidAtdatePayment dateNo, default is current date
notesstringPayment notes (max 500 characters)No
sendNotificationboolSend payment notification email to customerNo, default is false

Get Payment​

GET https://api.invoiless.com/v1/payments/:id

Retrieve a specific payment by ID.

Path Parameters​

NameTypeDescriptionRequired
idstringPayment idYes

Get Payments​

GET https://api.invoiless.com/v1/invoices/:id/payments

Retrieve all payments for a specific invoice.

Path Parameters​

NameTypeDescriptionRequired
idstringInvoice idYes

List Payments​

GET https://api.invoiless.com/v1/payments

Retrieve a paginated list of all payments.

Query Parameters​

NameTypeDescriptionRequired
pagenumberPage numberNo, default is 1
limitnumberPage limitNo, default is 50
searchstringSearch by invoice number, customer name, notes, or amountNo

Update Payment​

PUT https://api.invoiless.com/v1/payments/:id

PATCH https://api.invoiless.com/v1/payments/:id

Update an existing payment. See PUT vs PATCH for details on the differences.

Path Parameters​

NameTypeDescriptionRequired
idstringPayment idYes

Body Parameters​

Accepts the same parameters as Create Payment.

Delete Payment​

DELETE https://api.invoiless.com/v1/payments/:id

Permanently delete a payment.

Path Parameters​

NameTypeDescriptionRequired
idstringPayment idYes