# Propose CCH-Axcess-style Tax-Line Mappings

> 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…

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_rows array of objects

Prepared trial balance rows (alpha-canonical dict shape from enrich_tb_rows). Each row carries code, name, debit, credit, classification.

tax_group_catalog array 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_type enum · default 1065

IRS return form of the entity: 1065, 1120, 1120S or 1040.

1065 1120 1120S 1040

confidence_threshold number · default 0.85

Minimum confidence from 0 to 1 for a proposed mapping to be accepted.

Returns

Skill executed successfully

skill string Required

Example propose_qbo_tax_group_mapping

output object Required

output.stub_fields array of strings

output.warnings array of strings

output.mappings array of values

output.counts object

output.unmapped array of strings

account_numbers we could not propose a mapping for.

correlation_id string Required

Errors

Status Type When

401 AUTH.TOKEN_INVALID Authentication required

403 PERMISSION.CAPABILITY_DENIED Insufficient permissions

404 SKILL.NOT_FOUND Skill not found

422 VALIDATION.INVALID_FORMAT Validation error

429 RATE_LIMIT.USER Rate limit exceeded

5XX INTERNAL.UNKNOWN Internal server error

[Previous ← Analyse an Investment Portfolio](https://heyarchie.com/en-gb/developers/api-reference/analysis/analyse-an-investment-portfolio/)

```
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>"
  }
}
```

Every response also carries X-Request-ID. Quote it if you write to us about a call.
