create_transaction
Create expense or income transactions in Spendee. Preview to check conversion rates, then confirm with a unique request ID.
Instructions
Preview or create a transaction.
Amount must always be positive. transaction_type controls whether Spendee receives a negative expense or positive income. currency defaults to the selected wallet's currency. For a different currency, preview without an exchange_rate first, then confirm with the returned foreign_rate as exchange_rate. First call with confirm=false; create only after checking the preview, then pass confirm=true and a unique request_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| amount | Yes | ||
| labels | No | ||
| confirm | No | ||
| currency | No | ||
| wallet_id | Yes | ||
| request_id | No | ||
| category_id | Yes | ||
| occurred_at | No | ||
| exchange_rate | No | ||
| transaction_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||