Search the docs

Pages and API endpoints

Developer dashboard
Docs/Payments

Payments

Record customer payments against invoices. Payments are posted to the GL immediately and cannot be deleted (audit compliance).

List Payments

GET/api/v1/payments
ParameterTypeDescription
customerIdstringFilter by customer
invoiceIdstringFilter by invoice
startDatedatePayments on or after this date
endDatedatePayments on or before this date
pagenumberPage number

Record Payment

POST/api/v1/payments

Record a payment. Links to an invoice and updates its paid amount automatically.

ParameterTypeDescription
customerIdrequiredstringCustomer ID
amountrequirednumberPayment amount
paymentMethodrequiredstringcash, card, bank_transfer, mobile_money, cheque
paymentDaterequireddateDate payment was received
invoiceIdstringInvoice to apply payment to
referencestringExternal reference (cheque number, transaction ID)
notesstringInternal notes
Request
curl -X POST https://api.syncbooksapp.com/api/v1/payments \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "customerId": "65f1a2b3c4d5e6f7a8b9c0d1",
    "amount": 2375,
    "paymentMethod": "mobile_money",
    "paymentDate": "2026-06-06",
    "invoiceId": "65f1a2b3c4d5e6f7a8b9c0d2",
    "reference": "MoMo-TXN-123456"
  }'
Response (201)
{
  "data": {
    "_id": "65f1a2b3c4d5e6f7a8b9c0d3",
    "paymentNumber": "PAY-06-0001",
    "amount": 2375,
    "paymentMethod": "mobile_money",
    "invoiceId": "65f1a2b3c4d5e6f7a8b9c0d2",
    "status": "completed"
  }
}

Note: Payments cannot be deleted (audit compliance). If a payment was recorded in error, create a refund or adjustment instead.