Skills › Analysis
Propose CCH-Axcess-style Tax-Line Mappings
POST/api/v1/skills/propose.qbo.tax.group.mapping/invoke
Proposes a US tax-line mapping for each row of a prepared trial balance, so the return can be built from your own tax-group catalogue. You must supply tb_rows and tax_group_catalog, and can set the entity_type and a confidence threshold. It returns one mapping per account with its confidence and reasoning, counts and the unmapped account numbers.
Body parameters
tb_rowsarray of objects
Prepared trial balance rows (alpha-canonical dict shape from enrich_tb_rows). Each row carries code, name, debit, credit, classification.
tax_group_catalogarray of objects
Firm's tax-line catalog — one dict per tax group / line with tax_code, engagement_tax_code, line_description, category, worksheet, section. Source: CCH Axcess import template or Caseware TB extract.
entity_typeenum · default 1065
IRS return form of the entity: 1065, 1120, 1120S or 1040.
106511201120S1040
confidence_thresholdnumber · default 0.85
Minimum confidence from 0 to 1 for a proposed mapping to be accepted.
Returns
Skill executed successfully
skillstringRequired
Example propose_qbo_tax_group_mapping
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.mappingsarray of values
output.countsobject
output.unmappedarray of strings
account_numbers we could not propose a mapping for.
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALID Authentication required
403PERMISSION.CAPABILITY_DENIED Insufficient permissions
404SKILL.NOT_FOUND Skill not found
422VALIDATION.INVALID_FORMAT Validation error
429RATE_LIMIT.USER Rate limit exceeded
5XXINTERNAL.UNKNOWN Internal server error
curl https://uk.heyarchie.com/api/v1/skills/propose.qbo.tax.group.mapping/invoke \ -X POST \ -H "Authorization: Bearer sk_..." \ -H "Content-Type: application/json" \ -d '{ "tb_rows": [ {} ], "tax_group_catalog": [ {} ], "entity_type": "1065", "confidence_threshold": 0 }'
from heyarchie import Archie archie = Archie(api_key="sk_...") result = archie.skills.invoke( "propose.qbo.tax.group.mapping", tb_rows=[{}], tax_group_catalog=[{}], entity_type="1065", confidence_threshold=0, ) print(result)
import { Archie } from "heyarchie";
const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("propose.qbo.tax.group.mapping", {
"tb_rows": [
{}
],
"tax_group_catalog": [
{}
],
"entity_type": "1065",
"confidence_threshold": 0
});
console.log(result);Response
{
"skill": "propose_qbo_tax_group_mapping",
"output": {
"counts": {
"mapped": 1,
"unmapped": 0
},
"mappings": [
{
"account_name": "Sales",
"account_number": "4000",
"confidence": 0.93,
"proposed_engagement_tax_code": "INC-GROSS-01",
"proposed_line_description": "Gross receipts or sales",
"proposed_tax_code": "INC-GROSS",
"reasoning": "Revenue account that matches the gross receipts line."
}
],
"unmapped": []
},
"correlation_id": "<string>"
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}Every response also carries X-Request-ID. Quote it if you write to us about a call.