Add Whitelist Account
Add Whitelist Account
Description :
This API endpoint is used to add whitelist account.
Endpoint URL :Request Parameters
| Request Parameter | Data Type | Default Value | Required | Description | Change Date | Change Description |
|---|---|---|---|---|---|---|
| token | string | Yes | Please pass the app access token | |||
| type | string | Yes | Please pass the type of account value should be ACCOUNT or UPI | |||
| bank_name | string | Yes if type is ACCOUNT | Please pass the bank name | |||
| account_number | numeric | Yes if type is ACCOUNT | Please pass the account number | |||
| ifsc_code | string | Yes if type is ACCOUNT | Please pass the ifsc code | |||
| upi_id | string | Yes if type is UPI | Please pass the upi id |
Request Example
token=275ccf828dcb4e6e24c509709e5bf162&type=ACCOUNT&bank_name=central bank of india&account_number=3539546456&ifsc_code=CBIN0281975
Responses (JSON)
- Description: Account added successfully.
- status_code (integer): The status code of the response.
- 'status_code' (integer): 1
- 'message' (string): "Account added successfully."
{"status_code": 2, "message": "token is required"}
- 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": "Account not added"}
- Status Code 0: Error message
- Description: A specific error message.
- 'status_code' (integer): 0
- 'message' (string): "Account not added"
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.