Update a virtual account

Update a single-use virtual account





Authorization string

set value to Bearer SECRET_KEY

Path Param

account_ref string required

Virtual account reference

Body Param

business_id string required

Business ID

account_name string required

Virtual account name

provider string

Prefered bank provider

firstname string

Account firstname

lastname string

Account lastname

email string

Account email

phone_number string

Account phone number

amount string

Amount to be received

Sample request

curl --location --request PATCH 'https://api.tryduplo.com/v1/virtual-accounts/:account_ref?business_id={YOUR_VALUE}' \
--header 'Authorization: Bearer SECRET_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
   "account_name": "John doe",
   "provider": "providus"

Duplo response

   "data": {
       "provider": {
           "bank_code": "053",
           "bank_name": "Providus",
           "id": "providus",
           "default": true
       "email": "alindavdsin@gmail.com",
       "phone_number": "08085279945",
       "account_ref": "act_jdnusyEcN",
       "created_at": "2021-09-28T20:10:07.000Z",
       "status": "active",
       "account_name": "John doe",
       "account_number": "9977658630",
       "bvn": "39372746283"
   "errors": {},
   "message": "Request successful"

Last updated