Skip to content

API reference ​

Base URL: https://bizmitra.io · Version prefix: /api/v1

All endpoints require Authorization: Bearer {key_id}:{secret}.

Public preview

This page lists the endpoint surface. Detailed per-endpoint request and response schemas are being published progressively. The Postman collection is the most complete executable reference today.

Utility ​

MethodEndpointPurpose
GET/api/v1/pingVerify authentication
GET/api/v1/tally/{resource}Tally bridge passthrough

Changing in the next release

When the next release ships, /api/v1/tally/{resource} is limited to GET ledgers and GET units, and requires the pull.master capability.

Writing vouchers ​

All are asynchronous and return a transaction_id. See Jobs and transactions.

MethodEndpointCreates
POST/api/v1/invoicesSales invoice
POST/api/v1/ordersSales order
POST/api/v1/credit-notesCredit note
POST/api/v1/debit-notesDebit note
POST/api/v1/purchasesPurchase
POST/api/v1/receiptsReceipt
POST/api/v1/paymentsPayment
POST/api/v1/contrasContra
POST/api/v1/journalsJournal

Transactions ​

MethodEndpointPurpose
GET/api/v1/transactions?company_id={id}List transaction status
GET/api/v1/transactions/{job}Status of one transaction

Reading vouchers ​

MethodEndpointPurpose
GET/api/v1/pulled-vouchers?company_id={id}List vouchers from Tally
GET/api/v1/pulled-vouchers/{transaction_id}?company_id={id}Fetch one voucher in full
POST/api/v1/pulled-vouchers/ackAcknowledge consumption

List filters: voucher_kind, voucher_type, status, start_date, end_date, limit, offset.

Walkthrough: Pull vouchers from Tally.

Changing in the next release

When the next release ships: vouchers whose kind is missing, other or not recognised are withheld; total and count cover only rows your application may read; POST …/ack returns out-of-scope ids in a refused list and never acknowledges them; and a company belonging to another application or environment returns 404. See Pull vouchers.

Reports ​

Every report is a GET. There is nothing to request or refresh: the Connector reads each report from Tally on its own schedule and stores it, for every company whose application has that report enabled. Your read returns the latest stored copy.

Every report needs the company: send X-Bizmitra-Company, or company_reference (your cmp_… reference) as a query parameter.

MethodEndpointReturnsEnabled by
GET/api/v1/balance-sheetBalance Sheet, every head opened down to its ledgersreport.financial_statements
GET/api/v1/trial-balanceTrial Balance (closing Dr / Cr), every group opened down to its ledgersreport.financial_statements
GET/api/v1/profit-loss-statementProfit & Loss, every income and expense group opened down to its ledgersreport.financial_statements
GET/api/v1/ledger?ledger_name={name}One ledger's vouchers, as Tally's Ledger report shows themreport.ledger
GET/api/v1/stock-summaryStock summary, all itemsreport.stock
GET/api/v1/stock/monthly?item_name={name}Monthly movement for one itemreport.stock
GET/api/v1/stock/vouchers?item_name={name}Vouchers affecting one itemreport.stock
GET/api/v1/stock-treeStock group treereport.stock
GET/api/v1/funds-flowFunds flow, 12 monthsreport.financials
GET/api/v1/cash-flowCash flow, 12 monthsreport.cash_flow
GET/api/v1/cash-bank-bookClosing balance of every cash and bank ledger, with its groupreport.cash_bank_book
GET/api/v1/bank-reconUncleared bank entries. bank_ledger narrows to one bankreport.bank_recon
GET/api/v1/gstGSTR-1 and GSTR-3B return view. Filters: statement_type, period_key, section_keyreport.gst
GET/api/v1/gst/statsWhich GST periods are held, and when they last refreshedreport.gst
GET/api/v1/tds-summaryTDS outstanding per partyreport.tds
GET/api/v1/tds/bills?party={name}One party's TDS billsreport.tds
GET/api/v1/bills-receivablePending bills the company is owed. party narrows to one partyreport.bills_receivable
GET/api/v1/bills-payablePending bills the company owes. party narrows to one partyreport.bills_payable

A report your application does not have enabled answers 403 with capability_not_allowed. If the application has it but the company's customer was not given it, the answer is 403 with sync_capability_not_assigned. Once it is enabled, the Connector picks it up within a few minutes and its first pull follows.

How current a report is ​

Each read carries a freshness block. data_status says what you are reading: current or available (stored and usable), partial, stale, no_data (pulled, and Tally held nothing), never_synced, failed or disabled. data_as_of is when the stored copy was taken. The Connector refreshes most reports about every 15 minutes while Tally is open with the company loaded. On a computer set to business hours, the heavier reports refresh after hours, and GST about hourly during the day.

Balance Sheet, Trial Balance and Profit & Loss ​

These three come in Tally's detailed view. Every row has name, row_type (group or ledger) and parent_group (the group it sits under; null for a main head), so the tree can be rebuilt. For example, Sundry Debtors is followed by each debtor and their balance, and sub-groups are opened the same way. A group's figure is the sum of the rows beneath it.

  • They are read for Tally's current period, as Tally shows them, and stored under range_key current. A read without range_key returns the latest.
  • The Balance Sheet and Profit & Loss give one signed amount per row (Dr negative, Cr positive; take abs() to match Tally's screen). The Trial Balance gives closing_debit and closing_credit.
  • Tally does not export its "Difference in opening balances" line. When a company has one, the Balance Sheet and Trial Balance totals differ by exactly that amount.

One Profit & Loss

GET /api/v1/profit-loss-statement is the Profit & Loss. The older /api/v1/profit-loss and every …/refresh endpoint have been removed.

Masters ​

MethodEndpointPurpose
POST/api/v1/masters/{type}Create a master
GET/api/v1/masters/{type}?company_id={id}List master jobs
GET/api/v1/masters/{type}/{job}Status of one master job
GET/api/v1/pulled-masters/{type}?company_id={id}List masters read back from Tally

{type} is one of group, ledger, currency, unit, godown, stock_group, stock_category, stock_item, voucher_type. Hyphens are accepted (stock-item).

The first three endpoints report your pushes. pulled-masters reports what exists in the customer's company — it requires the pull.master capability and the masters pull enabled for that company. List filters: limit (max 200), offset.

Changing in the next release

When the next release ships, /api/v1/masters* requires your application's master capability and /api/v1/transactions* requires its push capability. A company belonging to another application or environment returns 404.

See Masters.

Applications ​

MethodEndpointPurpose
GET/api/v1/applicationsList applications

Customers ​

MethodEndpointPurpose
GET/api/v1/customersList customers
POST/api/v1/customersCreate a customer
POST/api/v1/customers/{token}/rotateRotate a customer token

Companies ​

MethodEndpointPurpose
GET/api/v1/companiesList companies
POST/api/v1/companiesCreate a company
POST/api/v1/companies/{id}/customerAttach a company to a customer
DELETE/api/v1/companies/{id}/customerDetach a company from a customer
GET/api/v1/companies/{id}/healthConnector and Tally readiness
POST/api/v1/companies/{id}/disconnectDisconnect from its Connector

Pairing ​

MethodEndpointPurpose
POST/api/v1/connectors/pairing-codeGenerate a pairing code
GET/api/v1/connectors/pairing-codesList outstanding codes
POST/api/v1/connectors/pairing-codes/{id}/revokeRevoke a code

See Pairing a company.

Connectors ​

MethodEndpointPurpose
GET/api/v1/connectorsList the fleet
GET/api/v1/connectors/{machine}One connector
GET/api/v1/connectors/{machine}/companiesCompanies it serves
GET/api/v1/connectors/{machine}/jobsSync history
PATCH/api/v1/connectors/{machine}Rename
POST/api/v1/connectors/{machine}/disableStop it taking work
POST/api/v1/connectors/{machine}/enableResume
DELETE/api/v1/connectors/{machine}Remove

See Connectors.

Webhooks ​

MethodEndpointPurpose
GET/api/v1/webhooksList endpoints
POST/api/v1/webhooksCreate an endpoint
GET/api/v1/webhooks/{id}Get one endpoint
PATCH/api/v1/webhooks/{id}Update an endpoint
DELETE/api/v1/webhooks/{id}Delete an endpoint
POST/api/v1/webhooks/{id}/rotate-secretRotate the signing secret
POST/api/v1/webhooks/{id}/testSend a test event
GET/api/v1/webhooks/{id}/deliveriesDelivery history

See Webhooks.

Documentation content is all rights reserved; code samples are MIT licensed. Use of the Bizmitra API, Connector App, and hosted services is governed separately by Bizmitra’s commercial terms.