Get Wallet Balance Api
Get Wallet Balance
Description :
This API endpoint is used to get the wallet balance and credit due of the user.
Endpoint URL :Request Parameters
| Request Parameter | Data Type | Default Value | Required | Description | Change Date | Change Description |
|---|
Responses (JSON)
- Status Code 1: Data fetched
- Description: Data successfully fetched.
- 'status_code' (integer): 1
- 'message' (string): "Data successfully fetched"
- 'wallet1' (integer): "wallet1 balance of user"
- 'wallet2' (integer): "wallet2 balance of user"
- 'wallet3' (integer): "wallet3 balance of user"
- 'total' (integer): "total balance of user"
- 'creditDue' (integer): "due credit of user"
{"status_code": 0, "message": "Unable to feth balance details"}, 400
- Status Code 0: Error message
- Description: A specific error message.
- 'status_code' (integer): 0
- 'message' (string): "Unable to feth balance details"
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.