HostPanel
Reading customers, orders and services
Methods and authentication
GET /api/v1/customers and /customers/CUSTOMER_ID need customers:read; /orders and /orders/ORDER_ID need orders:read; /services and /services/SERVICE_ID need services:read.
Append shortened paths to https://YOUR_PANEL_DOMAIN/api/v1.
All require a key, organization ID and corresponding account permissions.
Pagination and filters
Lists accept page, per_page (default 25, maximum 100), search and status.
Services also accept type and customer_id; orders accept customer_id.
Filters apply only when the resource has the field.
Records are sorted by descending id.
Response shape
Lists return a data array and meta with current_page, last_page and total.
A detail response has a data object and an empty meta array.
Order details additionally include items.
Fields depend on the resource; examples below are abbreviated, not complete schemas.
Errors and privacy
Handle 401 for invalid credentials, 403 for permissions or organization, 404 for unavailable records and 429 for limits.
Store responses on your server and expose them only to authorized staff.
Private read APIs are not public catalogs.
Read examples
curl 'https://YOUR_PANEL_DOMAIN/api/v1/customers?per_page=25&page=1' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'X-Organization-ID: YOUR_ORGANIZATION_ID'
curl 'https://YOUR_PANEL_DOMAIN/api/v1/orders?customer_id=CUSTOMER_ID&page=1' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'X-Organization-ID: YOUR_ORGANIZATION_ID'
curl 'https://YOUR_PANEL_DOMAIN/api/v1/services?customer_id=CUSTOMER_ID&page=1' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'X-Organization-ID: YOUR_ORGANIZATION_ID'
curl 'https://YOUR_PANEL_DOMAIN/api/v1/orders/ORDER_ID' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'X-Organization-ID: YOUR_ORGANIZATION_ID'Abbreviated list response
Illustrative data. Only a subset of response fields is shown.
{
"data": [
{
"id": 101,
"status": "paid"
}
],
"meta": {
"current_page": 1,
"last_page": 1,
"total": 1
}
}