cURL
curl --request PUT \ --url https://dev-billing-api.iqraa.ai/api/v1/api/v1/invoices/{id}/finalize \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "invoiceNumber": "<string>", "date": "<string>", "status": "DRAFT", "amount": 123, "currency": "<string>", "description": "<string>", "customerName": "<string>", "customerEmail": "<string>", "downloadLink": "<string>", "planType": "<string>" }
Finalize an invoice, making it ready for payment.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Invoice ID
Invoice finalized successfully
DRAFT
FINALIZED
PAYMENT_FAILED
PAID
VOID