PATCH
/
invoices
/
{id}
curl --request PATCH \
  --url https://api.antei.com/invoices/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "metadata": {},
  "internal_notes": "<string>",
  "status": "draft"
}'
{
  "id": "<string>",
  "invoice_number": "<string>",
  "status": "draft",
  "contact_id": "<string>",
  "transaction_ids": [
    "<string>"
  ],
  "currency": "<string>",
  "amount": 123,
  "issue_date": "2023-12-25",
  "due_date": "2023-12-25",
  "metadata": {}
}

This endpoint allows partial updates to an invoice. Common fields that can be updated:

  • status (e.g., to mark as paid or void)
  • metadata or internal tags
  • due_date

⚠️ You cannot update financial fields like line items or tax amounts after creation. For corrections, use credit notes or cancel-and-recreate strategy.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json

Response

200 - application/json

Invoice updated

The response is of type object.