POST
/
invoices
/
{invoice}
/
finalize
curl --request POST \
  --url https://api.chargeapi.co/v1/invoices/{invoice}/finalize \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "id": null,
  "object": null,
  "amount_due": null,
  "amount_paid": null,
  "created": null,
  "currency": null,
  "due_date": null,
  "line_items": null,
  "paid_at": null,
  "period_end": null,
  "period_start": null,
  "status": null
}

Path Parameters

invoice
string
required

ID of the draft invoice to finalize.

Body

application/json · object

Response

200
application/json

Returns the Invoice object with status updated to open, line-items locked, and amount_due computed. Raises an error if the invoice is already finalized, void, or paid.