Fetch Today's Collection / Due / Total Balance Api
Fetch Today's Collection / Due / Total Balance Api
Description :
This API endpoint is used to fetch today's collection or due and total downline balance.
Endpoint URL :Request Parameters
| Request Parameter | Data Type | Default Value | Required | Description | Change Date | Change Description |
|---|
Request Example
Responses (JSON)
- status_code (integer): The status code of the response.
- message: Records successfully fetched.
- data (object):
- todays_collection (integer): Today's collection amount.
- total_credit_due (integer): Total downline credit dues.
- total_balance (integer): Total downline balance.
{"status_code": 0, "message": "records not found"}, 200
- Status Code 0: Error message
- Description: A specific error message.
- 'status_code' (integer): 0
- 'message' (string): "there is no data found"
Note
- The API endpoint should be accessed via a POST request.
- Ensure that the request is properly validated and sanitized to prevent security vulnerabilities.
- Implement proper error handling on the client side to display user-friendly error messages based on the 'status_code' and 'message' fields in the response.