API Reference
Connect your apps and systems to Mizqara ERP with our REST API.
1. Introduction
The Mizqara ERP REST API lets you connect your own apps, websites and tools to your Mizqara data. All requests use HTTPS and return JSON.
Base URL: https://api.mizqara.com/v1
2. Authentication
Create an API key under Settings → API keys in Mizqara ERP. Send it in the Authorization header with every request. Keep your keys secret and never put them in public code.
curl https://api.mizqara.com/v1/customers \
-H "Authorization: Bearer YOUR_API_KEY"
3. Requests & responses
Send request bodies as JSON with the header Content-Type: application/json. List endpoints are paginated with page and per_page parameters.
{
"data": [ ... ],
"meta": { "page": 1, "per_page": 25, "total": 140 }
}
4. Errors
| Status | Meaning |
|---|---|
200 / 201 | Success / created |
400 | The request is invalid or missing fields |
401 | Missing or invalid API key |
404 | The resource was not found |
429 | Too many requests, slow down |
500 | Something went wrong on our side |
5. Rate limits
Each API key can make up to 120 requests per minute. The current limit and remaining requests are returned in the X-RateLimit-Limit and X-RateLimit-Remaining headers.
6. Customers
POST /v1/customers
{
"name": "Example Trading Co.",
"email": "accounts@example.com",
"phone": "+000 0000 0000"
}
7. Products
8. Invoices
POST /v1/invoices
{
"customer_id": "cus_1024",
"items": [
{ "product_id": "prd_88", "quantity": 2, "price": 150.00 }
],
"due_date": "2027-01-15"
}
9. Webhooks
Webhooks notify your system when something happens in Mizqara ERP, such as invoice.paid, order.created or stock.low. Add a webhook URL under Settings → Webhooks, and we will send a POST request with the event details.
Need help with an integration? Contact our developers.
Ready to Transform Your Business?
Schedule a demo and discover how Mizqara can streamline your operations, ensure compliance and drive growth.