POST
/
transactions
curl --request POST \
  --url https://api.antei.com/transactions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "transaction_type": "inflow",
  "amount": 123,
  "currency": "<string>",
  "timestamp": "2023-11-07T05:31:56Z",
  "description": "<string>"
}'
{
  "id": "<string>",
  "transaction_type": "inflow",
  "amount": 123,
  "currency": "<string>",
  "timestamp": "2023-11-07T05:31:56Z",
  "description": "<string>"
}

Creates a transaction that will be stored and potentially synced with your tax and reconciliation workflows.

Body Parameters:

  • type: Required – inflow or outflow
  • contact_id: Required – Must reference a valid contact
  • transaction_date: ISO 8601 date
  • line_items: Required – Array of objects with product ID, quantity, amount
  • tax_data: Optional – Override auto-calculated tax
  • currency: Optional – Defaults to organization base currency
  • metadata: Optional – Key-value pairs

Response:

Returns the created Transaction object, including its generated ID and all computed fields.

Authorizations

Authorization
string
header
required

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

Body

application/json

Transaction payload

id
string
required

Unique identifier for the transaction

transaction_type
enum<string>
required

Direction of the transaction

Available options:
inflow,
outflow
amount
number
required

Transaction amount

currency
string
required

Currency code (e.g., USD, EUR)

timestamp
string
required

Time of transaction

description
string

Optional description of the transaction

Response

200
application/json

Transaction created

id
string
required

Unique identifier for the transaction

transaction_type
enum<string>
required

Direction of the transaction

Available options:
inflow,
outflow
amount
number
required

Transaction amount

currency
string
required

Currency code (e.g., USD, EUR)

timestamp
string
required

Time of transaction

description
string

Optional description of the transaction