Invoke Skill Transactions Classify
post
/api/v1/skills/transactions.classify/invokeClassify a financial transaction to chart-of-accounts code.
Suggests the chart-of-accounts code for a single transaction, so an accountant can code bank-feed lines quickly and consistently. It needs the description and amount, and accepts a currency, transaction date and vendor to sharpen the answer. It returns the account code and name, a confidence score, alternative codes and the tax code, and it never posts anything.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
descriptionrequired | string | Bank-feed or invoice text that describes the transaction. |
amountrequired | number | string | Transaction amount in the transaction currency. |
currency | string | Transaction currency as an ISO 4217 currency code. |
transaction_date | string (date) | null | Date of the transaction as an ISO 8601 date. |
vendor | string | null | Name of the vendor or counterparty, when it is known. |
Responses
200Skill executed successfully
| Field | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | ||||||||||||||||||||||||
outputrequired | object | βshow nested
| ||||||||||||||||||||||||
correlation_idrequired | string | β |
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
403Insufficient permissions
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
404Skill not found
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
curl https://api.dev.arch.ie/api/v1/skills/transactions.classify/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"description": "string",
"amount": null,
"currency": "string",
"transaction_date": null,
"vendor": null
}'