Blacklist/Whitelist Account
Blacklist accounts suspected of fraudulent activity to prevent funds from reaching your settlement account. Blacklisted accounts can receive funds, but notifications are not processed until whitelistd
The /PiPBlacklistAccount endpoint is used when you suspect that a user is using an account for fraudulent transactions. To prevent funds transferred to such an account from eventually entering your settlement account, you can call this endpoint to blacklist the account.
Please note that virtual accounts cannot be deleted—they can only be blacklisted using the /PiPBlacklistAccount endpoint. Also, blacklisted accounts can still receive funds; however, payment notifications will not be processed successfully until the blacklist flag is removed.
To remove a blacklist (i.e., to whitelist an account), use the /PiPBlacklistAccount endpoint with the appropriate flag.
Production Base URL
http://154.113.16.142:8088/appdevapi/api/
HTTP Request
POST /PiPBlacklistAccount
Post https://api-staging.providusbank.com/v1/PiPBlacklistAccount
To Blacklist an account, set the blacklist_flag to 1, set to 0 if you want to whitelist the account
Request (Blacklist)
{
"account_number": "9977708171",
"blacklist_flg": 1
}
Request (Whitelist)
{
"account_number": "9977708171",
"blacklist_flg": 0
}
{
"requestSuccessful": true,
"responseMessage": "account blacklisted / whitelisted successfully",
"responseCode": "00"
}
Sample Implementation
curl -X POST http://154.113.16.142:8088/appdevapi/api/PiPBlacklistAccount \
-H "Client-Id: dGVzdF9Qcm92aWR1cw==" \
-H "X-Auth-Signature: BE09BEE831CF262226B426E39BD109f2AF84DC63076D4174FAC78A2261F9A3D6E59744983B8326B69CDF2963FE314DFC89635CFA37A40596508DD6EAAB09402C7" \
-H "Content-Type: application/json" \
-d '{"account_number":"9977708171","blacklist_flg":1}'
The above command returns JSON structured like this:
{
"requestSuccessful": true,
"responseMessage": "OPERATION SUCCESSFUL",
"responseCode": "00"
}
Last updated