txn_post
Post balanced debits and credits to company books in decimal major units, with pending card holds, immediate grants, or propose-only approvals; skip duplicate references.
Instructions
Record balanced debits and credits in decimal major units. Use status=pending for a card hold with one debit and one credit. Direct grants post immediately and return a transaction ID. A propose-only grant reserves the same input and returns a pending proposal ID for approval. Pass a stable reference and on_conflict=skip to skip an already posted reference. A reference must not start with the reserved txn: prefix (any case), which links use for transaction IDs. Posted results list entry IDs. Look up a pending reference in the proposal list.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company": "<company>",
"description": "<description>",
"debits": "<debits>",
"credits": "<credits>"
},
"name": "txn_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax | No | ||
| date | No | ||
| meta | No | ||
| debits | Yes | ||
| status | No | Use pending for a card authorization. Defaults to posted. | posted |
| company | Yes | ||
| credits | Yes | ||
| currency | No | A three-letter ISO 4217 currency code with a defined decimal minor unit, such as USD, KRW, or TND. Fund and special-purpose codes are excluded. | |
| metadata | No | ||
| correlate | No | ||
| reference | No | ||
| description | Yes | ||
| on_conflict | No |