Delete a virtual account

Delete a single-use virtual account

URI

DELETE

https://api.tryduplo.com/v1/virtual-accounts/:account_ref?business_id={BUSINESS_ID_VALUE}

Parameters

Authorization string

set value to Bearer SECRET_KEY

Query Param

business_id string required

Buisness ID

Path Param

account_ref string required

Virtual account reference

Sample request

curl --location --request DELETE 'https://app-api.tryduplo.com/v1/virtual-accounts/:account_ref?business_id={YOUR_VALUE}’ \
--header 'Authorization: Bearer SECRET_KEY\
--header 'Content-Type: application/json' \

Duplo response

{
   "data": {},
   "errors": {},
   "message": "Request successful"
}

Last updated