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.

ModuleWhat it coversActions
customersCustomer records, contacts and addresses; approve overrides a credit limit.R C U D A
quotesQuotations sent to customers.R C U D
salesOrdersConfirmed customer orders before they are invoiced.R C U D
invoicesTax invoices raised to customers.R C U D
creditNotesCredit notes for returns and corrections against invoices.R C U D
recurringInvoicesSchedules that raise invoices automatically.R C U D
paymentsReceivedMoney received from customers and how it is applied to invoices.R C U D
collectionsChasing dues, promises and reminders; approve confirms a claimed UPI payment.R C U A S
salespersonsSalespersons, targets and commission; approve records a payout.R C U D A
schemesTrade schemes and offers applied on sales.R C U D
crmLeads, deals and the sales pipeline.R C U D
customerPortalCustomer portal activity and comments; update changes the portal settings.R U
vendorsVendor records, contacts and bank details.R C U D
purchaseOrdersPurchase orders sent to vendors, and reorder suggestions.R C U D
billsBills received from vendors.R C U D
debitNotesDebit notes for purchase returns and corrections against bills.R C U D
paymentsMadeMoney paid to vendors and how it is applied to bills.R C U D
expensesBusiness expenses outside purchase bills.R C U D
itemsItems, item groups, size modules and option sets.R C U D
priceListsCustomer and channel price lists.R C U D
stockStock on hand, lots, movements, transfers, adjustments, warehouses and labels.R
inventoryPost stock adjustments, transfers and opening stock.C U D
challansDelivery, job-work and approval challans; approve cancels or writes one off.R C U D A
manufacturingBills of materials and production runs; approve posts production.R C U D A
accountsBank, cash and payment accounts.R C U D
taxesTax rates, groups and exemptions.R C U D
currenciesCurrencies and exchange rates.R C U D
paymentTermsPayment terms offered on documents.R C U D
numberSeriesDocument numbering series.R C U D
gstFilingGST returns and exports; create and update generate or change e-invoices and e-way bills.R C U
gstReconciliationMatching purchase bills against GSTR-2B.R C U D
bankReconciliationMatching bank statements against recorded payments.R C U D
reportsThe reports hub and saved custom reports; create builds a custom report.R C
salesReportsSales, customer dues and collection reports.R
purchaseReportsPurchase, vendor dues and purchase price reports.R
inventoryReportsStock movement, ageing and reorder reports.R
financialReportsGST, day book, cash flow and other money-in-and-out reports.R
approvalsThe approvals queue; approve decides a request.R A
whatsappThe WhatsApp inbox and its settings; send messages customers and vendors.R U S
settingsOrganization settings, templates and warehouses.R C U D
usersMembers of the organization and their roles.R C U D
rolesRoles and what each one can do.R C U D
auditLogWho changed what, and when.R
billingThe subscription plan and its invoices; update changes the plan or pays.R U
apiAccessPersonal access tokens and connected apps.R C D
dataImportThe data import hub and its batches.R C
sellingPrice role onlySee selling prices, MRP, price lists and line amounts on stock screens.R
costPrice role onlySee item cost, purchase price and stock cost.R
margin role onlySee margin and profit on documents and reports.R
stockValue role onlySee the value of stock on hand.R
teamNumbers role onlySee team totals and other salespersons' figures.R
bulkExport role onlyExport 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.