Payment Endpoints
Manage payment records linked to invoices and contacts.
Base Pathβ
/api/payment
Endpointsβ
List Paymentsβ
GET /api/payment
Authorization: Bearer {token}
Get Payment by IDβ
GET /api/payment/:id
Authorization: Bearer {token}
Create Paymentβ
POST /api/payment
Authorization: Bearer {token}
Request Body:
{
"paymentDate": "2025-01-31",
"amount": 2500,
"currency": "USD",
"note": "Partial payment for Invoice #1001",
"paymentMethod": "BANK_TRANSFER",
"invoiceId": "invoice-uuid",
"contactId": "contact-uuid",
"projectId": "project-uuid"
}
Update Paymentβ
PUT /api/payment/:id
Authorization: Bearer {token}
Delete Paymentβ
DELETE /api/payment/:id
Authorization: Bearer {token}
Payment Methodsβ
| Method | Code |
|---|---|
| Cash | CASH |
| Bank Transfer | BANK_TRANSFER |
| Debit Card | DEBIT_CARD |
| Credit Card | CREDIT_CARD |
| Cheque | CHEQUE |
| Online | ONLINE |
Permissionsβ
| Action | Required Permission |
|---|---|
| View | ORG_PAYMENT_VIEW |
| Add | ORG_PAYMENT_ADD |
| Edit | ORG_PAYMENT_EDIT |
Related Pagesβ
- Invoice Endpoints β invoicing
- Payments Feature β feature guide