Technical reference

Tally to Zoho field mapping

How fields in a Tally XML export are turned into Zoho Books records, and the error codes you may see along the way.

Field mapping

These are the main translation rules applied to each ledger in the export:

Tally XML fieldZoho Books fieldWhat happens
LEDGER.NAMEaccount_nameTrimmed, XML entities decoded, duplicates flagged
LEDGER.PARENTaccount_typeMatched against Tally’s predefined groups
LEDGER.OPENINGBALANCEopening_balanceSign converted (a negative amount is a debit in Tally)
LEDGER.PARTYGSTINgst_treatment, gstinChecksum verified, state code taken from the first two digits

GST ledgers to tax groups

Tally usually has one ledger per rate, such as Input CGST 9%. Zoho Books uses tax rates and tax groups instead. Matching ledgers are combined into a group like this:

zoho_tax_group_example.json
{
  "tax_name": "GST 18%",
  "tax_percentage": 18.0,
  "tax_type": "tax_group",
  "sub_taxes": [
    { "tax_name": "CGST 9%", "tax_percentage": 9.0, "account_id": "acc_cgst_output_9" },
    { "tax_name": "SGST 9%", "tax_percentage": 9.0, "account_id": "acc_sgst_output_9" }
  ]
}

Error codes

  • ERR_TB_VARIANCE_NONZERO

    Total debits do not equal total credits. Check the sign of opening balances.
  • ERR_GSTIN_INVALID_CHECKSUM

    A GSTIN failed the check-digit test. It is usually a typing error in the party master.
  • ERR_DUPLICATE_PARTY_MASTER

    Two or more ledgers map to the same customer or vendor but have different PANs.

Last updated: Draft, review before publishing