ERP REST & Webhook API
Endpoints for General Ledger, multi-warehouse stock balances, journal vouchers, and real-time webhook subscriptions.
The Nabik AI ERP API enables programmatic synchronization between external eCommerce platforms, point-of-sale systems, and your enterprise core ledger, inventory, and billing databases.
11. Posting Double-Entry General Ledger Journals
Create immutable financial journal entries. Debit and credit lines must balance exactly to zero discrepancy before database commit.
POST /v1/erp/ledgers/journals
{
"reference": "JV-2026-902",
"voucherDate": "2026-10-21",
"currency": "BDT",
"memo": "Factory Equipment Advance Payment",
"lines": [
{ "accountCode": "1010-CASH", "debit": 0, "credit": 500000 },
{ "accountCode": "1520-MACHINERY", "debit": 500000, "credit": 0 }
]
}22. Querying Multi-Warehouse Stock Levels
Retrieve real-time item availability across multiple factory warehouses and distribution centers with barcode scanner integration support:
curl -X GET "https://api.nabikai.com/v1/erp/inventory/stock?sku=RAW-COTTON-40S" \
-H "Authorization: Bearer nbk_live_98a72b1c4e8f9023" \
-H "X-Nabik-Tenant-ID: tenant_dhaka_corp_01"33. Real-Time Webhook Event Subscriptions
Register HTTP endpoints to receive signed event payloads when invoices are cleared, stock thresholds are reached, or purchase orders are approved.
POST /v1/webhooks/subscriptions
{
"endpointUrl": "https://yourcompany.com/api/nabik-webhook",
"events": [
"invoice.paid",
"invoice.partial_payment",
"inventory.low_threshold",
"workorder.completed"
],
"secret": "whsec_8923bc49281a7d6e"
}Was this documentation helpful?
Your feedback helps our engineering team refine API endpoints and docs.