API Reference
Integrate with Velox ERP using our robust RESTful API. Below you'll find the most commonly used endpoints and example requests.
Authentication
POST /api/login
{
"email": "user@example.com",
"password": "your_password"
}
// Response
{
"token": "eyJ0eXAiOiJKV1QiLCJhbGci..."
}
Returns a JWT token for authenticated requests. Include this token in the Authorization
header for all subsequent API calls.
Error Responses
// Example error response
{
"error": "Unauthorized",
"message": "Invalid credentials."
}
Products
GET /api/products
Authorization: Bearer <token>
POST /api/products
{
"name": "Product X",
"price": 99.99
}
Webhooks
Velox ERP supports webhooks for real-time notifications. Register your webhook URL in the dashboard to receive events such as order.created
, invoice.paid
, and user.invited
.
// Example webhook payload
{
"event": "order.created",
"data": {
"order_id": 123,
"amount": 250.00
}
}
API Endpoints Table
Endpoint | Method | Description |
---|---|---|
/api/login | POST | User authentication |
/api/products | GET | List all products |
/api/products | POST | Create a new product |
/api/orders | GET | List all orders |
/api/webhooks | POST | Register a webhook endpoint |