Skip to content
Start 14-day free trial

Developers

Build on RCS Book

A REST API for your own software, your accountant's tools, or a partner's system to connect to a shop's books — the way a Tally connector does. Scoped keys, JSON, versioned.

Getting started

Three steps, and the API is a Biz-plan feature.

  1. 1. On the Biz plan, open Settings → API keys and create a key. Choose only the permissions the integration needs.
  2. 2. Copy the key once — it is shown only at creation and never again.
  3. 3. Send it on every request as a bearer token.
curl https://rcsbook.in/api/v1/parties \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Accept: application/json"

Base URL: https://rcsbook.in/api/v1. All requests are HTTPS. A key is bound to one business, so it can never read another account's data.

Permissions

A key carries only the scopes you grant it. A request outside them is refused with 403.

Scope Grants
parties:read Read customers and suppliers
items:read Read items and stock catalogue
invoices:read Read invoices and vouchers
invoices:write Create and cancel invoices
companies:read Read business profiles

Endpoints

Everything the API exposes today. More arrive as integrators ask for them.

Method Path Scope Purpose
GET /parties parties:read List customers and suppliers
GET /search/parties parties:read Type-ahead party search
GET /items items:read List the item catalogue
GET /search/items items:read Type-ahead item search
GET /items/by-barcode/{barcode} items:read Look up an item by barcode
GET /vouchers/{id} invoices:read Read one invoice or voucher
GET /search/documents invoices:read Search invoices and vouchers
POST /vouchers invoices:write Create an invoice or voucher
POST /vouchers/{id}/cancel invoices:write Cancel a voucher
GET /companies companies:read List business profiles
GET /companies/{id} companies:read Read one business profile

To name the business a request acts on when a key's account has more than one, send its id in the X-Company-Id header.

Responses, errors and limits

One envelope everywhere, so a client is written once.

Success

{
  "data": [ ... ],
  "meta": { "page": 1, "per_page": 50,
            "total": 128, "last_page": 3 }
}

Error

{
  "error": {
    "code": "api_access_required",
    "message": "..."
  }
}
  • All money is in paise (₹1 = 100). Tax rates are percentages.
  • Identifiers are ULIDs. Lists are paginated, capped at 100 per page.
  • The API is versioned in the path (/api/v1); a breaking change ships as /v2, and v1 keeps working.
  • Rate limit: 120 requests/minute per key. Over that returns 429.
  • 401 — missing or bad key. 403 — key lacks the scope, or the plan no longer includes the API.

An OpenAPI description is available for generating a client. Questions? Talk to us.