Add Invoice Payment
POST/api/invoice-payments
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| invoice_id | number | Mandatory Invoice ID |
| amount | number | Mandatory Payment amount |
| payment_date | string | Mandatory Payment date (Y-m-d) |
| payment_method_id | number | optional Optional Payment method ID |
| note | string | optional Optional Payment note |
| created_by | number | optional Optional RISE user ID. Default: 1. Use for proper attribution. |
curl -X POST "https://yoursite.com/api/invoice-payments" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "invoice_id": "...", "amount": "...", "payment_date": "..." }' Success-Response:
HTTP/1.1 201 Created
{
"status": 200,
"messages": {"success": "Payment add success"},
"id": 1
}