ای کھاتا کلاؤڈ
ایپ ڈاؤن لوڈ کریںڈیمو بک کریں
LIVE
—, —, —
Integrations · API & Webhooks

Build on the books, without touching the books

Your storefront, your delivery app, your reporting tool or your own bespoke system can read from and write to E-Khata Cloud through a versioned REST API, and hear about changes through signed webhooks. Tokens are scoped, writes are idempotent, every request is logged, and the specification is a file you can load into your tooling.

Book a free demoAll integrations

The E-Khata Cloud public API is a versioned REST surface at /public/v1, described by an OpenAPI specification you can download from the API itself. Access is by API token, created in Settings under Developers, with scopes that limit what each token can read or write and a rotate action that swaps a key without downtime. Writes require an Idempotency-Key, so a retried request cannot create a second invoice. Webhooks push product, party, order and invoice events to your endpoint with a signature, a delivery log and a replay button.

What the API and webhooks give you

Two directions, two mechanisms. The API is pull and write; webhooks are push.

Your system to E-Khata, through the API

  • Create and update products, with prices and units
  • Create and update parties (customers and suppliers)
  • Create sales orders and invoices, posted into the books
  • Read stock and inventory levels
  • Read your own token's identity and scopes at /me

E-Khata to your system, through webhooks

  • product.created, product.updated
  • party.created, party.updated
  • order.created, order.updated
  • invoice.created, invoice.updated, invoice.cancelled
  • webhook_endpoint.created, webhook_endpoint.deleted

How to get started with the E-Khata API

Everything a developer needs is in Settings, under Developers. No email to us is required to get a token.

  1. Create an API token
    Settings, then Developers. Name the token, pick its scopes, and copy the key. It is shown once and stored hashed.
  2. Load the OpenAPI specification
    Fetch /public/v1/openapi.json and import it into Postman, Insomnia or your code generator. A Postman collection is also published.
  3. Make a read call
    GET /public/v1/me returns the token's business and scopes. Then list products, parties or inventory.
  4. Make a write call with an Idempotency-Key
    POST a product, a party or an invoice with a unique Idempotency-Key header. Retry safely; the same key returns the same result.
  5. Register a webhook endpoint
    Add your HTTPS URL, choose the events, copy the signing secret, and press Test. Every delivery is logged and can be replayed.

Scoped tokens, rotated without downtime

A token is created with exactly the scopes it needs, read or write per resource, and nothing else. Rotate swaps the key while the old one keeps working for a grace period, so a deployment never goes dark. Tokens are shown once, stored hashed, and every request they make is logged with a summary you can read in Settings.

  • Per-resource read and write scopes.
  • Rotate in place; revoke at any time.
  • Request log and summary per token.

Writes that cannot double-post

Networks retry. Without protection, a retried POST creates two invoices. The public API requires an Idempotency-Key on every write and returns the stored result for a repeated key, so your integration can retry freely. If posting to the books fails, the API returns an error rather than a success with missing accounting entries.

  • Idempotency-Key required on writes, enforced by middleware.
  • A failed accounting post returns 422, never a silent 201.
  • Rate limits per token, with the limit visible in the response headers.

Webhooks with a signature, a log and a replay

Register an HTTPS endpoint, choose the events, and E-Khata signs each delivery with the endpoint's secret so you can verify it came from us. Deliveries are logged with the response your server gave, retried on failure, and any delivery can be replayed from the log while you are debugging. Rotate the secret whenever you like.

  • Nine event types across products, parties, orders and invoices.
  • Signed payloads, delivery history, retry, and one-click replay.
  • Test button to send a sample event before you go live.

Documented, and used by our own connectors

The Shopify and WooCommerce integrations are built on the same surface, which is the strongest guarantee that it stays maintained. The OpenAPI file is generated from the code, so it does not drift from what the server does, and the envelopes for lists, errors and pagination are consistent across every resource.

  • OpenAPI specification generated from the code.
  • Consistent list, error and pagination envelopes.
  • A published Postman collection.

Who it is for

Businesses with their own ordering app
Orders from your app become posted invoices; stock stays true in both.
Software houses serving traders
One integration, many clients, each with their own scoped token.
Storefronts not on Shopify or WooCommerce
Products and stock out, orders in, through the same API our connectors use.
Factories with a planning tool
Read stock and production stock levels; hear about new orders the moment they post.

Frequently asked questions

Yes. A versioned REST API at /public/v1 with an OpenAPI specification you can fetch from the API itself, plus a published Postman collection.

Explore more of E-Khata

Shopify integrationWooCommerce integrationSecurity and data protectionPartner with usAll integrations

دیکھیں کہ آپ کا کاروبار ای کھاتا پر کیسے چلتا ہے۔

30 منٹ کی زوم یا واٹس ایپ کال۔ ہم آپ کو ای کھاتا دکھائیں گے۔

Zain Gohar, co-founder of E-Khata Cloud
Zain Gohar
Co-founder, E-Khata Cloud
میں یا میرا کو-فاؤنڈر ہر ڈیمو کال میں خود شامل ہوتا ہوں۔
Book a 30-min call →

یا واٹس ایپ پر پیغام بھیجیں: +92 300 1676722 (1 گھنٹے میں جواب)۔