/v2/api/entity base and authenticated with a Bearer token.1) is the data level — how deeply related records are loaded — not a page number. Pagination is controlled by the page and per_page query parameters.| Parameter | Purpose |
|---|---|
page | Page number (default 1). |
per_page | Items per page (default 20). |
filter[<field>][<operator>] | Filter by a field, e.g. filter[client_id][equal]=2. |
sort[<field>] | Sort by a field, asc or desc. |
fields[] | Restrict the returned columns. |
search | Free-text search. |
data is a booking record.curl --location --globoff 'https://.daftara.com/v2/api/entity/booking/list/1?page=undefined&per_page=undefined' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json'{
"current_page": 1,
"data": [
{
"id": 0,
"no": "string",
"date": "string",
"client_id": 0,
"staff_id": 0,
"payment_status": 0
}
],
"per_page": 20,
"total": 0,
"last_page": 0,
"from": 0,
"to": 0,
"first_page_url": "string",
"last_page_url": "string",
"next_page_url": "string",
"prev_page_url": "string",
"path": "string",
"links": [
{}
]
}