Permissions & Scopes
Roles
Every organization member has one role, which sets the ceiling on what any token they issue can do. An organization can also define custom roles; a custom role reports the built-in role it was based on as role, and its own name as customRole on GET /api/v1/me.
- Owner
OWNER: Everything, including billing and deleting the organization. - Admin
ADMIN: Everything except owning the organization. - Accountant
ACCOUNTANT: Invoices, bills, payments, GST and all reports. - Sales
SALES: Customers, quotes, orders and invoices; sales reports. - Purchase
PURCHASE: Vendors, purchase orders and bills; purchase reports. - Store keeper
STORE_KEEPER: Stock, transfers, adjustments, lots, labels and challans. No prices or money. - Viewer
VIEWER: Read-only access to everything.
Modules
A permission is module.action. Actions: R read, C create, U update, D delete, A approve, S send. Modules marked role only are sensitive numbers (cost, margin, stock value and so on): they are never token scopes, and a token sees them exactly when its member's role does.
| Module | What it covers | Actions |
|---|---|---|
customers | Customer records, contacts and addresses; approve overrides a credit limit. | R C U D A |
quotes | Quotations sent to customers. | R C U D |
salesOrders | Confirmed customer orders before they are invoiced. | R C U D |
invoices | Tax invoices raised to customers. | R C U D |
creditNotes | Credit notes for returns and corrections against invoices. | R C U D |
recurringInvoices | Schedules that raise invoices automatically. | R C U D |
paymentsReceived | Money received from customers and how it is applied to invoices. | R C U D |
collections | Chasing dues, promises and reminders; approve confirms a claimed UPI payment. | R C U A S |
salespersons | Salespersons, targets and commission; approve records a payout. | R C U D A |
schemes | Trade schemes and offers applied on sales. | R C U D |
crm | Leads, deals and the sales pipeline. | R C U D |
customerPortal | Customer portal activity and comments; update changes the portal settings. | R U |
vendors | Vendor records, contacts and bank details. | R C U D |
purchaseOrders | Purchase orders sent to vendors, and reorder suggestions. | R C U D |
bills | Bills received from vendors. | R C U D |
debitNotes | Debit notes for purchase returns and corrections against bills. | R C U D |
paymentsMade | Money paid to vendors and how it is applied to bills. | R C U D |
expenses | Business expenses outside purchase bills. | R C U D |
items | Items, item groups, size modules and option sets. | R C U D |
priceLists | Customer and channel price lists. | R C U D |
stock | Stock on hand, lots, movements, transfers, adjustments, warehouses and labels. | R |
inventory | Post stock adjustments, transfers and opening stock. | C U D |
challans | Delivery, job-work and approval challans; approve cancels or writes one off. | R C U D A |
manufacturing | Bills of materials and production runs; approve posts production. | R C U D A |
accounts | Bank, cash and payment accounts. | R C U D |
taxes | Tax rates, groups and exemptions. | R C U D |
currencies | Currencies and exchange rates. | R C U D |
paymentTerms | Payment terms offered on documents. | R C U D |
numberSeries | Document numbering series. | R C U D |
gstFiling | GST returns and exports; create and update generate or change e-invoices and e-way bills. | R C U |
gstReconciliation | Matching purchase bills against GSTR-2B. | R C U D |
bankReconciliation | Matching bank statements against recorded payments. | R C U D |
reports | The reports hub and saved custom reports; create builds a custom report. | R C |
salesReports | Sales, customer dues and collection reports. | R |
purchaseReports | Purchase, vendor dues and purchase price reports. | R |
inventoryReports | Stock movement, ageing and reorder reports. | R |
financialReports | GST, day book, cash flow and other money-in-and-out reports. | R |
approvals | The approvals queue; approve decides a request. | R A |
whatsapp | The WhatsApp inbox and its settings; send messages customers and vendors. | R U S |
settings | Organization settings, templates and warehouses. | R C U D |
users | Members of the organization and their roles. | R C U D |
roles | Roles and what each one can do. | R C U D |
auditLog | Who changed what, and when. | R |
billing | The subscription plan and its invoices; update changes the plan or pays. | R U |
apiAccess | Personal access tokens and connected apps. | R C D |
dataImport | The data import hub and its batches. | R C |
sellingPrice role only | See selling prices, MRP, price lists and line amounts on stock screens. | R |
costPrice role only | See item cost, purchase price and stock cost. | R |
margin role only | See margin and profit on documents and reports. | R |
stockValue role only | See the value of stock on hand. | R |
teamNumbers role only | See team totals and other salespersons' figures. | R |
bulkExport role only | Export lists to CSV and spreadsheets. | C |
Scopes
A token is also granted scopes, which narrow (never widen) what it can do:
- Group scopes:
read,write,full - Module scopes (all actions on one module), e.g. customers, quotes, salesOrders, …
- Granular scopes:
module.action, e.g.invoices.create
Tokens issued before credit notes, debit notes, stock and the report families became their own modules keep working: invoices.* also covers credit notes, recurring invoices and GST e-documents, bills.* covers debit notes, items.read covers stock, and reports.read covers every report family.
Fetch the live, always-current catalog: GET /api/v1/scopes (no authentication required).
Effective access
A request succeeds only when both the token's scopes grant the permission and the member's role allows it.