/v2/api/entity base and authenticated with a Bearer token. The trailing path segment (1) is the data level — how deeply related records are loaded — not a page number; on this endpoint it has no visible effect. The response is a flat credit-charge record.status value is one of:| Value | Meaning |
|---|---|
available | Credit is available to consume |
consumed | Credit has been fully used |
expired | Credit passed its expiry date |
suspended | Credit is temporarily suspended |
curl --location --globoff 'https://.daftara.com/v2/api/entity/credit_charge/38/1' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'{
"id": 0,
"staff_id": 0,
"client_id": 0,
"credit_type_id": 0,
"status": "available",
"start_date": "string",
"expiry_date": "string",
"amount": 0,
"description": "string",
"created": "string",
"modified": "string",
"deleted_at": "string",
"renewal_id": 0
}