ื“ืœื’ ืœืชื•ื›ืŸ ื”ืจืืฉื™

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โ€‹

MethodCode
CashCASH
Bank TransferBANK_TRANSFER
Debit CardDEBIT_CARD
Credit CardCREDIT_CARD
ChequeCHEQUE
OnlineONLINE

Permissionsโ€‹

ActionRequired Permission
ViewORG_PAYMENT_VIEW
AddORG_PAYMENT_ADD
EditORG_PAYMENT_EDIT