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.50,
"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

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