API-Technical Document
API-Technical Document
LTD (UNITEL)
Nongbone Rd, Phonexay Village, Saysettha District
Vientiane Capital, Lao P.D.R
USSD *999#
Core 1 Core 2
Core 3 Core 4
DB 1 DB 2
Mobile
App
Core 1 Core 2
DB
API
IP PORT
Error message:
Error message:
Failure (Not
Failure (Not authenticated, <<Fail>>
authenticated, Account
Account does not exist, Account
does not exist, Account
canceled, ...)
canceled, ...)
<<Success>>
<<Fail>>
<<Success>>
Processing
transaction results
{
"phoneNumber":"8562095873197",
Body "serviceCode":"BANKCODE_TRANSFER"
}
• Response template:
SUCCESSFUL:
{
"responseCode": "00000",
"message": "Successful",
"timestamp": "2021-05-27T13:12:33.023+0700",
"transId": null,
"transDate": "20210527131232",
"accountName": "Mr Bobby ແກ້ ວດວງດ
ີ ",
"accountStatus": "ACTIVE",
"tier": "1",
"minAmount": 0.0,
"maxAmount": null
}
TRANSFER MONEY:
• Security:
o Whitelisting IP (Partner provide the IP to whitelist)
o Restrict by login user role
- Request template:
http://183.182.100.174:8083/api/v1.0/bank/transferMoney (Public
URL template test IP)
Production is private IP and need open connection on firewall.
Method POST
{
"phoneNumber": "8562095873197",
"bankAccount": "3832028446464443459",
"amount": "10001",
Body "bankTransId": "FT19130LN36W1",
"content": "Bopby 交易成功 ການເຮ ັ ດທ
ຸ ລະກ
ໍ າ"
}
Parameter definition
<<Success>>
Customers enter the amount Display information returned from u- Returns information query results:
to be transferred and click money: Account, Status, Customer Name,
button Transfer Account, Status, Customer Name,... ...
<<Fail>>
<<Success>>
Processing
transaction results
W_BANK_(NAME_OF_BANK)_TEMP
(-) Amount
Accounting for
W_BANK_(NAME_OF_BANK)_TEMP transferring money
Success 1 (-) Fee from temporary
wallet to bank's
W_BANK_(NAME_OF_BANK) (+) master wallet
Amount
W_BANK_(NAME_OF_BANK)_FEE
(+) Fee
W_BANK_(NAME_OF_BANK)_TEMP
(-) Amount Accounting for
transferring money
Fail -1 W_BANK_(NAME_OF_BANK)_TEMP from temporary
(-) Fee wallets to customer
wallets
Customer Account (+) Amount
Customer Account (+) Fee
Keep Customer's
Timeout -5 Cross check with BANK money in temporary
wallets
RESPONSE RESPONSE
RESULT ACCOUNTING
CODE DESCRIPTION
Customer Account (-) Amount
Customer Account (-) Fee Accounting for
W_BANK_(NAME_OF_BANK) (+) transferring money
Success 1 Amount from customer’s wallet
to bank's master
W_BANK_(NAME_OF_BANK)_FEE wallets
(+) Fee
W_BANK_(NAME_OF_BANK) (-)
Amount Accounting for
transferring money
Fail -1 W_BANK_(NAME_OF_BANK)_FEE from bank’s master
(-) Fee wallets to customer
Customer Account (+) Amount wallets
Customer Account (+) Fee
Keep Customer's
Timeout -5 Cross check with BANK money in Bank’s
master wallets