v1
latestOpenAPI 3.0.02026-07-26866217.8 KBIncomes & Expenses
Create Transaction
Record a new income or expense entry. What the entry is linked to is inferred from the request:
- provide stay_code to record an entry against a specific stay,
- provide property_id to record an entry against a specific property,
- provide neither to record an operator-level entry (not tied to any specific property or stay; only available to the master operator).
stay_code and property_id are mutually exclusive.
The direction field decides whether the entry is an income or an expense, which in turn determines which dictionaries are used for item_id (GET /income_items or GET /expense_items) and payment_method_id (GET /income_methods or GET /expense_methods). The amount is always provided as a positive number; the sign is derived from direction. The currency accompanies the amount and must be supplied unless stay_code is provided, in which case it is inherited from the reservation order and, if you do provide it, it must match the order's currency.
post/transactions
Request body
Response
The transaction entry has been successfully created.
Example response
{
"error_msg": "Done."
}