post_entry
Post a balanced journal entry (debits equal credits across at least two legs) to record financial changes. Reuse the idempotency key on retries to return the original entry instead of posting twice.
Instructions
Post a balanced journal entry: total debits must equal total credits across at least two legs. This is the ONLY way to change a balance. Corrections are reversal entries, never edits. If you are retrying a call that may already have gone through, reuse the SAME idempotency_key: you will get the original entry back with replayed=true instead of posting twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | Yes | ||
| timestamp | No | Effective time (ISO 8601). Defaults to now. Drives point-in-time balances. | |
| description | Yes | What happened, e.g. "sale #1001" | |
| idempotency_key | Yes | Required dedupe key unique to this real-world event (an order id, webhook event id, invoice number). Reuse it on retries; never reuse it for a different entry. |