Add a beneficiary to whitelist
POST
/api/merchant-portal/merchant-access/whitelist-account/add-whitelist-payout
Request
Header Params
Content-Type
string
required
Example:
application/json
Body Params application/json
request_time
string
required
merchant_id
string
required
<= 20 characters
merchant_auth
string
required
mc_id
, payee
encrypted using RSA public key encryption in chunks. The resulting encrypted data is then concatenated and encoded in Base64 format.string
mandatory
A unique merchant key which provided by ABA Bank. Same value as
merchant_id
string
mandatory
Beneficiary identifier: It can be either a MID or an ABA account.
hash
string
required
request_time
and merchant_auth
with public_key
..
Example
{
"request_time": "20200728093403",
"merchant_id": "ec000002",
"merchant_auth": "39aaa43...c00a",
"hash": "EVDFA21....t+sWw=="
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/merchant-portal/merchant-access/whitelist-account/add-whitelist-payout' \
--header 'Content-Type: application/json' \
--data-raw '{
"request_time": "20200728093403",
"merchant_id": "ec000002",
"merchant_auth": "39aaa43...c00a",
"hash": "EVDFA21....t+sWw=="
}'
Responses
🟢200OK
application/json
Body
data
object
optional
name
string
optional
<= 255 characters
payee
string
optional
<= 250 characters
currency
string
optional
<= 10 characters
type
string
optional
<= 20 characters
status
string
optional
1
: Active0
: Inactive<= 1 characters
created_at
string
optional
status
object
optional
code
string
optional
PTL02
: Wrong hashPTL04
: Parameter validation requiredPTL25
: Invalid account classPTL99
: Merchant invalid currencyPTL134
: Account not foundPTL146
: Payee is invalidPTL147
: Currency of the payee does not the same as merchant currencyPTL148
: Payee already existPTL150
: Business profile is not foundPTL151
: Failed to whitelist accountmessage
string
optional
code
above.Examples
{
"data": {
"name": "INDOCHINE LODGE",
"payee": "318111358120004",
"currency": "USD",
"type": "MID",
"status": "1",
"created_at": "2022-09-19 07:52:51"
},
"status": {
"code": "00",
"message": "Success!"
}
}