This API is used to retrieve the earnings of a user on the Voomerr platform.
Endpoint #
The Voomerr Get earnings endpoint is POST hhttps://admin.voomerr.com/api/get_earnings.php
Request Parameters #
Parameter | Type | Required | Description |
---|---|---|---|
user_id | Integer | Yes | The user id for which earnings are to be retrieved. |
Response Parameters #
json
{
"status": "success",
"message": "Earnings retrieved successfully.",
"data": {
"earnings": {
"total_earnings": 500,
"available_earnings": 400,
"pending_earnings": 100
}
}
}
If an error occurs, the API will return a JSON response in the following format:
json
{
"status": "error",
"message": "Error message describing the error."
}
Example Request #
json
{
"user_id": 12345
}
Example Response #
json
{
"status": "success",
"message": "Earnings retrieved successfully.",
"data": {
"earnings": {
"total_earnings": 500,
"available_earnings": 400,
"pending_earnings": 100
}
}
}