Volboo Docs
Home Pricing Dashboard

Virtual accounts

Create account

Issues a virtual account and returns the details your customer pays into.

POST /v1/create_account

Headers

HeaderValue
Content-Typeapplication/json
api-keyYour business API key
secret-keyYour business secret key

Request body

FieldTypeRequiredNotes
emailstringYesThe customer this account belongs to.
refstringYesYour own reference, returned as client_reference everywhere the account appears.
fnamestringYesFirst name.
lnamestringYesLast name.
phonenumberYesCustomer phone number.
bvnnumberYesRequired by some banking partners before an account can be issued.
dobstringYesDate of birth.
genderstringYesCustomer gender.
addressstringYesCustomer address.
banksarrayYesWhich partner banks to issue with. ["9PSB"]

Request

Example
curl -X POST /v1/create_account \
  -H "Content-Type: application/json" \
  -H "api-key: <your api key>" \
  -H "secret-key: <your secret key>" \
-d '{
    "email": "customer@example.com",
    "ref": "order_10432",
    "fname": "Amanda",
    "lname": "Elumelu",
    "phone": 8060082079,
    "bvn": 22222222222,
    "dob": "1995-05-15",
    "gender": "female",
    "address": "12 Marina Road, Lagos",
    "banks": ["9PSB"]
  }'
{
  "email":   "customer@example.com",
  "ref":     "order_10432",
  "fname":   "Amanda",
  "lname":   "Elumelu",
  "phone":   8060082079,
  "bvn":     22222222222,
  "dob":     "1995-05-15",
  "gender":  "female",
  "address": "12 Marina Road, Lagos",
  "banks":   ["9PSB"]
}

Response

FieldTypeNotes
statusstringsuccess when the account was issued.
resultsarrayOne entry per account issued.
results[].vol_referencestringVolboo's identifier for the account.
results[].account_namestringName the account is held in.
results[].account_numberstringThe number your customer pays into.
results[].bank_namestringPartner bank holding the account.
results[].statusstringState of the account.
request_refstringIdentifier for this request, worth logging.
200 Success
{
  "status": "success",
  "results": [
    {
      "vol_reference":  "VOL-695E0C5DA6A9A",
      "account_name":   "AMANDA ELUMELU",
      "account_number": "9060132960",
      "bank_name":      "9PSB",
      "status":         "created" //created or existing. 
    }
  ],
  "request_ref": "order_10432"
}
Store vol_reference against your own customer record. It is what ties a later payment or webhook event back to the account you issued.

Errors

A rejected call answers 400 with the reason in message. See Errors for the shape.