POST
/
transactions
Create Transaction
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

The body is of type object.

Response

200
application/json

Transaction created

The response is of type object.