Build on Munshi
Apps that work with a business's books: sync invoices, send reminders, run analytics, connect a shop. Businesses connect your app with OAuth and can disconnect it at any time.
How it works
- Register an app in the Munshi app under Developers: name, description, website, privacy policy, redirect URIs, scopes and a monthly price. You get a client id and a secret (shown once).
- Connect with OAuth 2.0 authorization code and PKCE (S256). The business sees what your app may do and chooses Allow or Deny.
- Call the API with the access token: the same endpoints the Munshi app uses, limited to your scopes and the connecting person's role. Tokens last an hour; refresh tokens rotate.
- Get events by webhook, signed with HMAC-SHA256 and retried for a day.
- Submit for review. Automated checks, then a review by Munshi, then the marketplace. Paid apps are paid monthly after a 20% commission.
Scopes
sales.read / sales.write· See / create and edit invoices and credit notespurchases.read / purchases.write· See / record purchases and expensesaccounting.read / accounting.write· See ledgers and vouchers / post vouchersmasters.read / masters.write· See / change itemsinventory.read· See stockgst.read· See GST returns and summariesreports.read· See reportswebhooks· Manage its own webhooks
An app can never delete, approve, change settings, manage people or open the credential vault.
Webhook events
invoice.createdinvoice.cancelledpurchase.createdvoucher.postedparty.createdping
Verify X-Munshi-Signature: t=…,v1=…: HMAC-SHA256 of t + "." + body with your secret, compared in constant time, within five minutes.
Full guide
The developer guide (OAuth requests, examples, errors, retries, review and payouts) is in docs/api/README.md and in the app under Developers.