data[] (each item is id, name, allow_decimal, status, unit, description, created, modified, deleted_at), alongside pagination metadata (current_page, per_page, total, last_page, from, to, links, and the *_page_url fields).| Parameter | Purpose |
|---|---|
page | Page number (default 1). |
per_page | Items per page (default 20). |
filter[<field>][<operator>] | Filter by a field (see Filterable fields below). |
sort[<field>] | Sort by a field, asc or desc. |
fields[] | Restrict the returned columns. |
filter[<field>][<operator>]=<value>:| Field | Type | Example |
|---|---|---|
name | string | filter[name][like]=Loyalty |
status | enum (0 Inactive, 1 Active) | filter[status][equal]=1 |
sort, results default to newest-first (by id)./credit_type/list/1); it is optional for this entity and does not change the returned records — it is only echoed back into the pagination URLs.curl --location --globoff 'https://.daftara.com/v2/api/entity/credit_type/list/1?page=undefined&per_page=undefined' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'{
"current_page": 1,
"data": [
{
"id": 7,
"name": "Loyalty Points",
"allow_decimal": 1,
"status": 1,
"unit": "point",
"description": "Points earned on purchases",
"created": "2026-07-13 10:00:00",
"modified": "2026-07-13 10:00:00",
"deleted_at": null
}
],
"first_page_url": "string",
"from": 0,
"last_page": 0,
"last_page_url": "string",
"links": [
{
"url": "string",
"label": "string",
"page": 0,
"active": true
}
],
"next_page_url": "string",
"path": "string",
"per_page": 20,
"prev_page_url": "string",
"to": 0,
"total": 0
}