POST
/
invoices
curl --request POST \
  --url https://api.antei.com/invoices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contact_id": "<string>",
  "line_items": [
    {
      "product_id": "<string>",
      "quantity": 123,
      "price": 123
    }
  ],
  "issue_date": "2023-12-25",
  "due_date": "2023-12-25",
  "currency": "<string>",
  "metadata": {}
}'
{
  "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 you to generate a new invoice.

Required fields:

  • contact_id
  • line_items with product references
  • currency and issue_date

You may also include optional fields such as due_date, payment_instructions, or internal_notes.

Once created, the invoice will be available for downstream tax calculation, email dispatch, and reporting workflows.

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

201 - application/json

Invoice created

The response is of type object.