Balance Transfer Report Api
Balance Transfer Report
Description :
This API endpoint is used to get the Report of balance transfer to the users.
Endpoint URL :Request Parameters
| Request Parameter | Data Type | Default Value | Required | Description | Change Date | Change Description |
|---|---|---|---|---|---|---|
| offset | integer | 0 | No | number of records to skip before starting to return results. | ||
| limit | integer | 10 | No | determines the maximum number of records to return in the response. | ||
| from_date | Date | Yes | date in Y-m-d format | |||
| to_date | Date | Yes | date in Y-m-d format | |||
| user_id | string | No | child user id here |
Request Example
Responses (JSON)
- 'status_code' (integer): 1
- 'message' (string): "records successfully fetched"
- 'recordsTotal' (integer): "number or total records"
- 'recordsFiltered' (integer): "number or records filtered"
- data (object):
- txn_id (string): Txn id of the record.
- user_id (string): Like a RP01.
- full_name (string): Name of the user.
- company_name (string): Shop name of the user.
- mobile_no (string): Mobile number of the user.
- transfer_type (string): It will contain credit/debit.
- amount (string): Amount.
- amount_in_words (string): Amount in words.
- walletType (string): wallet type.
- payment_mode (string): payment mode.
- opening_bal (string): Opening balance of the user.
- closing_bal (string): Closing balane of the user.
- parent_opening_bal (string): Parent opening balance.
- parent_closing_bal (string): Parent closing balance.
- created_date (string): "date of record created"
- created_time (string): "time of record created"
{"status_code": 2, "message": "from_date is required"}, 422
- Status Code 2: Validation Error
- Description: Validation error in the input parameters.
- 'status_code' (integer): 2
- 'message' (string): "A specific validation error message."
{"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.