Setup Preferred Bank

To generate virtual account, can set a default preferred bank you would like your customers to generate. This will be the default bank your customer can generate.

NOTE: You can pass bankcode as a field to the generate account endpoint to generate account number on the go without considering the default set bank. Get the list of available bank and their code from the partnerbank endpoint.

POST https://api.oneappgo.com/v1/updatebankprefer

Headers

NameTypeDescription

authorization*

String

SECRET_KEY

Request Body

NameTypeDescription

bankcode*

String

Bank code

bankname*

String

Bank Name

{
  "status": true,
  "responseCode": "01",
  "message": "Preferred bank successfully updated"
}

Take a look at how you might do this:

curl --location 'https://api.oneappgo.com/v1/updatebankprefer' \
--header 'Authorization: Bearer SECRET_KEY' \
--header 'Content-Type: application/json' \
--data '{
    "bankcode": "090267",
    "bankname": "Kuda Bank"
}'

Last updated