POST
/
invoices
/
{invoice}
Update an invoice
curl --request POST \
  --url https://api.chargeapi.co/v1/invoices/{invoice} \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "April 2024 fleet invoice"
}'
{
  "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 invoice to update.

Body

application/json

Response

Returns the updated Invoice object reflecting the supplied changes. Raises an error if the invoice ID is invalid or the invoice is no longer editable (for example, already finalized).