amount granted for that package. The response is a standard paginated envelope: the records are in data[] (each item is id, credit_type_id, package_id, amount), 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 |
|---|---|---|
credit_type_id | integer (credit type) | filter[credit_type_id][equal]=1 |
package_id | integer (package) | filter[package_id][equal]=24 |
amount | number | filter[amount][greater_than_equal]=1000 |
sort, results default to newest-first (by id)./credit_type_package/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/api2/credit_type_package/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": 1,
"credit_type_id": 1,
"package_id": 24,
"amount": 1000
}
],
"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
}