API Reference
Arkan ERP provides a RESTful API.
Authentication
All requests require a Bearer token:
curl -H "Authorization: Bearer YOUR_TOKEN" \
-H "X-Company-Id: COMPANY_UUID" \
https://your-api-host/api/v1/projectsGet a Token
POST /api/v1/auth/login
{
"email": "user@example.com",
"password": "your-password"
}Company Context
Set the X-Company-Id header to scope requests to a specific company.
Core Endpoints
| Resource | Methods | Path |
|---|---|---|
| Projects | CRUD | /projects |
| Work Items | CRUD | /projects/:id/work-items |
| Invoices | CRUD + Post/Cancel | /accounting/invoices |
| Payments | CRUD | /accounting/payments |
| Employees | CRUD | /hr/employees |
| Products | CRUD | /inventory/products |
| Sales Orders | CRUD + Confirm | /sales/orders |
| Companies | CRUD + Switch | /companies |
Last updated on