| Parameter | Type | Required | Description |
|---|---|---|---|
search | string | Yes | Customer phone number to search for bookings (e.g., 966512345678). Use the full phone number with country code. |
per_page | integer | No | Number of results to return per page. Default: 15. Controls pagination size. |
page | integer | No | Page number for pagination. Default: 1. Use this to navigate through multiple pages of results. |
| Header | Required | Description |
|---|---|---|
Customer-Key | Yes | Authentication key for the customer. Used to identify and authenticate the API consumer. |
Secret-Key | Yes | Secret authentication key. Provides additional security layer for API access. |
Accept-Language | No | Language preference for the response content (e.g., ar for Arabic, en for English). Affects localized fields like status labels and service names. |
{
"success": true,
"message": null,
"data": [...],
"meta": {...}
}
first_name, last_name, full_name: Customer name detailsemail: Customer email addressphone: Customer phone number with country codeuuid: Branch unique identifiername: Branch nameaddress: Physical addresslocation: Geographic coordinates (lat/lng)map_url: Google Maps URL for the locationuuid: Service unique identifiername: Service nameprice: Service priceduration: Service duration in hoursimage: Service image URLicon: Service icon URLcode: Status code (e.g., "pending", "confirmed", "in_progress")label: Localized status labelcode: Payment status code (e.g., "pending", "paid")label: Localized payment status labelcurrent_page: Current page numberlast_page: Total number of pagesper_page: Results per pagetotal: Total number of bookings foundGET {{url}}/v1/bookings?search=966512345678&per_page=15&page=1
meta object to navigate through multiple pagesAccept-Language header affects the localization of labels and service namescurl --location --request GET 'https://dev.your-api-server.com/v1/bookings?search=966512345678&per_page=15&page=1' \
--header 'Customer-Key: {{Customer-Key}}' \
--header 'Secret-Key: {{Secret-Key}}' \
--header 'Accept-Language: ar'{}