Getting Started
Authenticate using your API key and send requests to the ZIAF POS REST API.
Base URL
Use this Url to send requests to the ZIAF POS API.
https://api.ziafpos.com/v1
Authentication
Every request must include your API Key.
Authorization: Bearer YOUR_API_KEY
Core API Endpoints
Frequently used endpoints for integrating with ZIAF POS.
| Method | Endpoint | Description |
|---|---|---|
| GET |
/v1/products
|
Retrieve all products. |
| POST |
/v1/products
|
Create a new product. |
| GET |
/v1/customers
|
Retrieve customer list. |
| POST |
/v1/invoices
|
Create a sales invoice. |
| GET |
/v1/invoices
|
Retrieve invoices. |
| GET |
/v1/reports/sales
|
Retrieve sales reports. |
Example Requests
Use your preferred programming language to access the API.
curl --request GET \
--url https://api.ziafpos.com/v1/products \
--header "Authorization: Bearer YOUR_API_KEY"
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => "https://api.ziafpos.com/v1/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY"
]
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
const response = await fetch(
"https://api.ziafpos.com/v1/products",
{
headers:{
Authorization:"Bearer YOUR_API_KEY"
}
}
);
const data = await response.json();
console.log(data);
import requests
response = requests.get(
"https://api.ziafpos.com/v1/products",
headers={
"Authorization":"Bearer YOUR_API_KEY"
}
)
print(response.json())
Example Response
{
"success": true,
"data": [
{
"id":1,
"name":"Coffee",
"price":450,
"stock":25
},
{
"id":2,
"name":"Burger",
"price":850,
"stock":14
}
]
}
Error Codes
| 200 | Success |
| 201 | Created |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 422 | Validation Failed |
| 500 | Internal Server Error |
Built for modern integrations
Secure, reliable and scalable APIs designed for businesses of every size.
Secure Authentication
Authenticate every request using secure API Keys and HTTPS encryption.
High Performance
Fast JSON APIs built for reliable integrations and enterprise workloads.
Versioned API
Stable versioned endpoints ensure backward compatibility.
Webhooks
Receive real-time notifications whenever important events occur.
Rate Limits
| Starter | 100 Requests / Minute |
| Professional | 1,000 Requests / Minute |
| Enterprise | 10,000 Requests / Minute |
Rate limits are applied per API key and reset automatically every minute.
Ready to integrate with ZIAF POS?
Explore the documentation, generate your API key and start building powerful integrations today.
