Credits Transactions
/api/v3/credits/transactions Base URL https://api.easify.liveBearer token and Accept header required Authentication →
This endpoint returns the account's credit transaction history: credits added and credits used.
Transactions are returned newest first. Each request covers at most 30 days:
- With no dates, it returns the last 30 days.
- With only
from_date, it returns the 30 days starting on that date. - With only
to_date, it returns the 30 days ending on that date. - With both,
to_datemay be at most 30 days afterfrom_date.
Dates are read in the account's timezone. To fetch older history, request one 30-day range at a time.
A sub-user's token returns only the transactions that sub-user can see in the Easify app.
There is a rate limit of 60 requests per minute per API token. This limit is shared by all API endpoints except those with their own separate limit (/api/v3/sms/send, /api/v3/sms/status, etc.), so requests to other endpoints also count toward it. If you exceed this limit, you will receive a 429 Too Many Requests status, along with a message indicating when you can try again.
Query Parameters
| type string |
Only return transactions of this type Allowed values: credited, debited |
Optional |
| from_date string |
Start of the date range, as YYYY-MM-DD
|
Optional |
| to_date string |
End of the date range, as YYYY-MM-DD. Must be on or after from_date, and at most 30 days after it
|
Optional |
| limit integer |
Number of transactions per page Default: 10 Minimum: 1, Maximum: 100 |
Optional |
| page integer |
The page number for paginated data Default: 1 |
Optional |
Response Fields
Each item in data.transactions:
| type string | credited (credits added) or debited (credits used) |
| credits number | Number of credits added or used |
| remarks string | What the credits were for, e.g. "CREDITS DEDUCTED FOR QUICK SMS" |
| user_name string | null | Name of the user or sub-user the transaction belongs to |
| created_at string | When the transaction happened, in the account's timezone, as MM-DD-YYYY hh:mm:ss AM/PM |
data.pagination holds current_page, per_page, total (transactions in the range) and last_page.
Example Request and Response
params
{
"type": "debited",
"from_date": "2026-11-01",
"to_date": "2026-11-20",
"limit": 2,
"page": 1
}
Success Response:
{
"status": true,
"message": "Wallet transactions fetched successfully",
"data": {
"transactions": [
{
"type": "debited",
"credits": 12,
"remarks": "CREDITS DEDUCTED FOR QUICK SMS",
"user_name": "John Doe",
"created_at": "11-19-2026 11:06:55 PM"
},
{
"type": "debited",
"credits": 9,
"remarks": "CREDITS DEDUCTED FOR OUTGOING CHAT MMS",
"user_name": "John Doe",
"created_at": "11-19-2026 10:42:10 PM"
}
],
"pagination": {
"current_page": 1,
"per_page": 2,
"total": 24,
"last_page": 12
}
}
}
Responses
| Case | Status Code | Response |
|---|---|---|
| If the user does not provide a token in the header or provides an invalid token | 401 |
{
"status":false,
"message":"Unauthenticated",
"errors": []
}
|
If to_date is more than 30 days after from_date
|
400 |
{
"status": false,
"message": "The date range should not exceed 30 days. Please select a valid period.",
"errors": []
}
|
| If the type is not credited or debited | 422 |
{
"status": false,
"message": "The selected type is invalid.",
"errors": {
"type": ["The selected type is invalid."]
}
}
|
| If a date is not in YYYY-MM-DD format | 422 |
{
"status": false,
"message": "The from date field must match the format Y-m-d.",
"errors": {
"from_date": ["The from date field must match the format Y-m-d."]
}
}
|
| If to_date is before from_date | 422 |
{
"status": false,
"message": "The to date field must be a date after or equal to from date.",
"errors": {
"to_date": ["The to date field must be a date after or equal to from date."]
}
}
|
| If the limit exceeds maximum value | 422 |
{
"status": false,
"message": "The limit field must not be greater than 100.",
"errors": {
"limit": ["The limit field must not be greater than 100."]
}
}
|
| If the user exceeds the allowed rate limit for requests | 429 |
{
"status":false,
"message":"Too many requests. Try again in 59 seconds",
"errors":[]
}
|
| If the user's subscription has ended | 402 |
{
"status":false,"message":"You need to recharge your account to proceed","errors":[]
}
|
| When the user account is inactive | 403 |
{
"status": false,
"message": "Your account is currently inactive.",
"errors": []
}
|
| If the request comes from an IP address or domain that is not on the account's API whitelist | 400 |
{
"status": false,
"message": "Access denied! Your IP or domain is not whitelisted.[ HostName : ] - [ Ip Address : << YOUR_SERVER_IP >>]",
"errors": []
}
|
Code Examples
php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.easify.live/api/v3/credits/transactions?type=debited&from_date=2026-11-01&to_date=2026-11-20&limit=2&page=1',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer <> ',
'Accept: application/json',
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;