cURL
curl --request POST \ --url https://api.contazen.ro/v1/invoices/{id}/pay \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amount": 123, "payment_date": "2023-12-25", "payment_method": "<string>", "observations": "<string>" }'
{ "success": true, "data": { "is_paid": true, "total_amount": 123, "total_paid": 123, "remaining": 123 }, "meta": { "version": "v1", "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "response_time": "23.45ms" } }
Record a payment for an invoice
Use your API key (sk_live_xxx or sk_test_xxx)
Invoice CzUid
Payment amount
Payment date (defaults to today)
Payment method used
Payment notes
Payment recorded
Show child attributes
Was this page helpful?