Wallet Transaction Summary
Overview
This API endpoint retrieves a summary of transactions for wallets associated with an operator, filtered by account number, date type, and date. It requires authentication via an API key and returns transaction counts and amounts grouped by status.
Endpoint
POST {baseURL}/bot/api_v2/account_deposit.php (Replace with actual baseURL)
Content-Type : application/json
Authentication
Header: Api-Key (Required)
Description: A valid API key associated with an operator.
Example: Api-Key: your-api-key-here
Error: If missing or invalid, returns 401 Unauthorized with:
{
"status": "error",
"message": "Api-Key header missing"
}{
"status": "error",
"message": "Invalid or unauthorized Api-Key"
}Request Body
account_number
String
Yes
The account number to filter wallets.
filter_date_type
String
Yes
The date field to filter transactions(action_date or c_date)
filter_date
String
Yes
The date to filter transactions in DD-MM-YYYY format (e.g., 31-12-2023)
Request Validation
Missing Fields
If account_number is missing
If filter_date_type is missing
If filter_date is missing
Invalid filter_date_type:
Must be either
action_dateorc_date. Otherwise:
Invalid filter_date format
Must be in
DD-MM-YYYYformat and a valid date. Otherwise:
Response
The response is a JSON object with the following structure:
status
String
Indicates success or error (success or error).
data
Object
Transaction summary grouped by status.
message
String
Optional message (e.g., if no wallets are found).
Data Object
The data object contains transaction summaries grouped by status (e.g., success, pending, etc.). Each status key contains:
transaction_count
Number
Total number of transactions.
received_amount
Number
Sum of received amounts.
request_amount
Number
Sum of requested amounts.
status
String
Transaction status.
Example Success Response
Example No Wallets Response
Error Responses
All errors return a 401 Unauthorized status code with a JSON body containing:
status:"error"message: Description of the error (see validation errors above).
Example Usage
cURL Request
Expected Response
Last updated