API Documentation
Endpoint
/api_agents_history.php
Method
POST
Request Parameters
{
"session_id": "your_session_id_here",
"start_date": "YYYY-MM-DD", // optional
"end_date": "YYYY-MM-DD", // optional
"transaction_type": "all|airtime|bill|datapackage|payout|pos|transfer" // optional
}
Response Fields
{
"success": boolean,
"agent": { ...agent details... },
"transactions": [ ...array of transactions... ],
"transaction_count": number,
"airtime_count": number,
"bill_count": number,
"datapackage_count": number,
"payout_count": number,
"pos_count": number,
"transfer_count": number
}