Create Virtual Account
Create a new virtual account with optional initial deposit. This API is restricted to pre-approved businesses.
Endpoint https://api.chapa.co/v1/virtual-account
Method POST
Authorization
: Pass your secret key as a bearer token in the request header to authorize this call.
Request Parameters
Parameter | Required | Type | Description |
---|---|---|---|
account_name | Yes | string | The name associated with the virtual account |
initial_deposit | No | number | Initial amount to deposit. Account created with zero balance if not provided |
account_alias | No | string | Custom alias for easy reference |
{
"account_name": "Abebe Bikila",
"initial_deposit": 1000,
"account_alias": "JD_VA"
}
1import requests2import json34url = "https://api.chapa.co/v1/virtual-account"56payload = json.dumps({7 "account_name": "SEMER NUR",8 "initial_deposit": 20,9 "account_alias": "4242424"10})1112headers = {13 'Authorization': 'Bearer CHASECK-xxxxxxxxxxxxxxxx',14 'Content-Type': 'application/json'15}1617response = requests.post(url, headers=headers, data=payload)18print(response.text)
ℹ️
If specifying an initial_deposit, your business balance must have sufficient funds to cover the amount.