cURL
curl --request PUT \ --url https://app.blinksale.test/api/v1/payments/{paymentId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "amount": 1000, "payment_date": "2023-06-25", "is_settled": true, "notes": "Payment via bank transfer" } '
{ "success": true, "message": "Payment updated successfully", "data": { "id": "01jtbf0c9zaraqx3swthf88n5y", "organization_id": "01jtbf0c9zaraqx3swthf88n5y", "invoice_id": "01jtbf0c9zaraqx3swthf88n5y", "amount": 500, "is_settled": true, "payment_date": "2023-06-25", "notes": "Payment via check #12345", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
Update an existing payment
Access token obtained from the /v1/auth/login endpoint
The ID of the payment to update
1000
"2023-06-25"
true
"Payment via bank transfer"
Payment updated successfully
"Payment updated successfully"
Show child attributes