list-transaction-cashcoding-recommendations
Ask Osome's model which account to cashcode a bank transaction to. It ranks the accounts clients can use in the company's jurisdiction from the transaction's description, amount, direction and contact, plus any description or vendorName you pass. Returns suggestions, best first, each with accountId, name, source and accuracy (the model's confidence); the list can be empty. Apply one with apply-transaction-cashcoding-recommendation, or if none fits, explain the transaction with add-transaction-comment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topK | No | How many recommendations to return: 1 or 3 (default 3). 2 makes the call fail. | |
| companyId | Yes | Company ID, as returned by list-companies | |
| vendorName | No | Who was paid or who paid, such as a merchant name. The model uses it to rank accounts. | |
| description | No | What the transaction was for, such as client lunch or software subscription. The model uses it to rank accounts. | |
| transactionId | Yes | Numeric acDocumentId of the transaction, as returned by search-transactions (transaction.acDocument.id in Websome) | |
| vendorContactId | No | Accepted but not used to rank accounts; pass vendorName instead. |