Skip to content

Lock Funds

A customer's wallet funds can be locked using the lockFunds endpoint. Once the wallet funds is locked, a lockedID will then be created on successful lock.

Request Body

Note

Serialize the request body, then encrypt (AES encryption) it using the provided key. The encryption requires a secret key and IV key which will be provided by the sterling team. Pass the encrypted string as the value of "Data" in the new request body.

EncryptedReq {
  "Data": "string"
}
curl -X POST https://pass.sterling.ng/OneBankWalletV3/api/Wallet/LockFunds
-H 'Content-Type: application/json' 
https://pass.sterling.ng/OneBankWalletV3/api/Wallet/LockFunds?mobile=0801234567

This method locks a user's fund, which it to be passed in the userAccount and lockedby parameters. It locks funds and returns a lockedID on successful lock.

Request Parameters

Parameter Type Description
virtualAcct string *required The customer’s virtual account number to be locked
amount string *required The customer wallet amount
lockedby string *required Name of the person who locked the fund