Items, Taxes & Accounts
Item master, the GST tax catalogue, and read-only access to the Chart of Accounts.
Items
/itemsList itemsAIBooks.items.READ/items/{item_id}Get one itemAIBooks.items.READ/itemsCreate an itemAIBooks.items.CREATE/items/{item_id}Update an itemAIBooks.items.UPDATE/items/{item_id}Update an item (alias of PUT)AIBooks.items.UPDATE/items/{item_id}/archiveArchive (soft-delete)AIBooks.items.UPDATE/items/{item_id}Hard delete (only if unused)AIBooks.items.DELETEPATCH and PUT run the same handler: both are partial updates that change only the fields you send.
Starter templates
Two helpers for onboarding a clinic-type business with a ready item list. Declared before /items/{item_id}, so templates is never read as an item id.
/items/templatesList starter item templatesAIBooks.items.READ200 OK
{
"success": true,
"items": [
{ "slug": "clinic_gp", "label": "General / GP clinic", "count": 11 },
{ "slug": "clinic_dental", "label": "Dental clinic", "count": 11 }
]
}Not the standard envelope: success and items at the top level. Today the templates are clinic_aesthetic, clinic_ayurveda, clinic_dental, clinic_diagnostic, clinic_ent, clinic_eye, clinic_gp, clinic_homoeopathy, clinic_multispecialty and clinic_physiotherapy; call the list endpoint for the current set.
/items/seed-templateCreate the items of a templateAIBooks.items.CREATEQuery parameter template (required): a slugfrom the list above. No body. Creates the template's items as active items; an item whose name already exists in the organization (case-insensitive) is skipped, so calling it again does not duplicate. Template items are created without inventory tracking unless the template says otherwise, and the GST rate is mapped to the organization's tax rows.
POST /items/seed-template?template=clinic_gp
200 OK
{
"success": true,
"template": "clinic_gp",
"label": "General / GP clinic",
"created": 11,
"skipped": 0,
"items": [ { "id": "it_…", "name": "Consultation – New Patient", "type": "SERVICE" }, … ]
}An unknown slug returns 400 with the message Unknown item template '…' (the code is the generic validation.failed). A missing template returns 422 validation.failed. No Idempotency-Key is used.
Resource shape
{
"item_id": "it_widget",
"item_name": "Widget",
"sku": "W-100",
"item_type": "GOODS", // GOODS | SERVICE
"description": null,
"hsn_or_sac": "8421",
"unit": "NOS",
"rate": 100.0, // selling price
"purchase_rate": 70.0,
"tax_id": "tx_gst_18",
"status": "ACTIVE",
"created_time": "...",
"last_modified_time": "..."
}Taxes
/taxesList GST taxesAIBooks.taxes.READ/taxes/{tax_id}Get one taxAIBooks.taxes.READRead-only. Tax rows ship with the org and are managed via the Settings UI on the main app — no public write endpoint.
{
"tax_id": "tx_gst_18",
"name": "GST 18%",
"shape": "INTRA_STATE", // INTRA_STATE | INTER_STATE | RCM | EXEMPT | NIL_RATED | NON_GST
"cgst": 9.0,
"sgst": 9.0,
"igst": 18.0,
"cess": 0.0
}Reading the components. A tax named GST 18% carries the rate split: CGST 9 + SGST 9 for an intra-state supply, and IGST 18 for an inter-state one. The same row serves both — the posting engine picks the leg from the document's place of supply. So the headline rate is igst when set, otherwise cgst + sgst — never the sum of all three.
If you compute an expected tax yourself, use that rule and compare against the per-leg amounts on the line, not the rate fields — see Tax legs.
Accounts (Chart of Accounts)
/accountsList active accountsAIBooks.accounts.READ/accounts/{account_id}Get one accountAIBooks.accounts.READRead-only. Accounts are created via the Settings UI on the main app (or the system seeds them at org creation).
{
"account_id": "acc_ar",
"code": "1040",
"name": "Accounts Receivable",
"account_type":"ACCOUNTS_RECEIVABLE",
"parent_id": null,
"description": null,
"current_balance": 458920.0,
"currency_code": "INR",
"is_active": true,
"is_system": true
}