API Documentation
REST endpoints for external integration (EDI, banking feeds, IoT sensors). All endpoints are JSON over HTTPS at your app's base URL, protected by the same session auth as the UI. Entity-with-lines endpoints (Journal Entries, Purchase/Sales Orders, Routings) accept a nested lines or operations array in one POST call.
For push-style integration instead of polling, see Webhooks — subscribe a URL to sales_order.created, purchase_order.created or ar_invoice.created and this app will POST the event to you with an HMAC-SHA256 X-Webhook-Signature header, signed with the secret shown once when the subscription is created.
Org Structure & Master Data
| /api/company-codes | GET, POST |
| /api/company-codes/[id] | GET, PATCH, DELETE |
| /api/plants | GET, POST |
| /api/plants/[id] | GET, PATCH, DELETE |
| /api/storage-locations | GET, POST |
| /api/cost-centers | GET, POST |
| /api/profit-centers | GET, POST |
| /api/chart-of-accounts | GET, POST |
| /api/materials | GET, POST |
| /api/customers | GET, POST |
| /api/vendors | GET, POST |
| /api/employees | GET, POST |
| /api/roles | GET, POST |
| /api/audit-log | GET |
Financials (FI + CO)
| /api/journal-entries | GET, POST (header+lines) |
| /api/journal-entries/[id] | GET, DELETE |
| /api/ap-invoices | GET, POST |
| /api/ar-invoices | GET, POST |
| /api/assets | GET, POST |
| /api/asset-transactions | GET, POST |
| /api/bank-accounts | GET, POST |
| /api/bank-statement-lines | GET, POST |
| /api/bank-statement-lines/[id]/match | POST |
| /api/financial-statements | GET (computed) |
| /api/aging-report | GET (computed) |
Procurement & Inventory (MM)
| /api/purchase-requisitions | GET, POST |
| /api/purchase-orders | GET, POST (header+lines) |
| /api/goods-receipts | GET, POST |
| /api/inventory-stock | GET |
Sales & Distribution (SD)
| /api/quotations | GET, POST |
| /api/quotations/[id]/convert | POST |
| /api/sales-orders | GET, POST (header+lines) |
| /api/sales-orders/[id]/bill | POST |
| /api/deliveries | GET, POST |
| /api/sales-contracts | GET, POST |
Production (PP + MES)
| /api/bill-of-material | GET, POST |
| /api/work-centers | GET, POST |
| /api/routings | GET, POST (header+operations) |
| /api/production-orders | GET, POST |
| /api/production-orders/[id]/confirm | POST |
Quality & Maintenance (QM + PM)
| /api/quality-notifications | GET, POST |
| /api/inspection-characteristics | GET, POST |
| /api/inspection-lots | GET, POST |
| /api/inspection-lots/[id]/results | POST |
| /api/equipment | GET, POST |
| /api/functional-locations | GET, POST |
| /api/maintenance-orders | GET, POST |
| /api/maintenance-plans | GET, POST |
| /api/maintenance-plans/[id]/generate | POST |
Warehouse & Projects (WM + PS)
| /api/bins | GET, POST |
| /api/wbs-elements | GET, POST |
| /api/project-milestones | GET, POST |
| /api/project-milestones/[id]/bill | POST |
HR (HCM)
| /api/leave-requests | GET, POST |
| /api/payroll-records | GET, POST |
CRM
| /api/leads | GET, POST |
| /api/opportunities | GET, POST |
| /api/service-tickets | GET, POST |
India GST / TDS
| /api/gst-invoice-details | GET, POST |
| /api/tds-records | GET, POST |
US Sales Tax
| /api/us-sales-tax-nexus | GET, POST |
| /api/us-sales-tax-nexus/[id] | PATCH, DELETE |
| /api/us-sales-tax-rates | GET, POST |
| /api/us-sales-tax-rates/[id] | DELETE |
| /api/exemption-certificates | GET (?customerId=&stateCode=), POST |
| /api/exemption-certificates/[id] | PATCH, DELETE |
| /api/us-sales-tax-preview | POST (compute without saving) |
AI Assistant
| /api/ai-assistant | GET, POST (governed, tool-use) |
| /api/ai-action-requests | GET |
| /api/ai-action-requests/[id]/decide | POST (approve/reject) |
Analytics
| /api/analytics | GET (computed aggregates) |
| /api/analytics/drilldown | GET (?metric=&bucket=) |
BI / Reporting
| /api/dashboard | GET (computed) |
| /api/reports | GET, POST |
| /api/reports/data?source= | GET (whitelisted sources) |
| /api/report-schedules | GET, POST |
Data Migration
| /api/data-import | POST (entity + rows) |
| /api/data-import/history | GET |
Extensibility
| /api/custom-field-definitions | GET (?entityType=), POST |
| /api/custom-field-definitions/[id] | DELETE |
| /api/custom-field-values | GET (?entityType=&entityId=), POST (upsert) |
| /api/webhook-subscriptions | GET, POST |
| /api/webhook-subscriptions/[id] | PATCH, DELETE |
| /api/webhook-deliveries | GET (?subscriptionId=) |