Developer Resources
The StockPro API
Build custom integrations, automate reporting, and sync your external systems with StockPro's powerful multi-tenant API.
RESTful Architecture
Our API is organized around REST. It has predictable resource-oriented URLs, accepts form-encoded/JSON request bodies, and returns JSON-encoded responses with standard HTTP status codes.
- Secure HTTPS-only communication
- Business-scoped data isolation (business_id)
- Universal JSON formats for all endpoints
// Fetch inventory items for a branch GET /api/inventory?branch_id=BR_123 Authorization: Bearer sp_test_51... { "success": true, "items": [ { "sku": "SP-X9-RED", "stock": 142, "price": 15000 } ] }
Authentication
Token-based auth scoped to your business_id
Inventory
Read/write access to stock levels and logs
Invoicing
Generate and verify QR-enabled invoices
Clients
Sync your CRM with StockPro customer lists
Reports
Pull aggregated sales and profit data
Branches
Manage multiple points of sale programmatically
Logistics
Automate internal stock transfers
Webhooks
Real-time notifications for sales (Coming Soon)