Create a Dynamic Virtual Account
Create a dynamic virtual account
Create a dynamic virtual account
POST
https://api-fsdh360-test.fsdhgroup.com/api/v1/virtualaccounts/dynamic
To create a dynamic virtual account the below Parameters should be provided.
Attention should be given to parameters marked *required
.
Query Parameters
API-version
String
Request Body
Account name *
String
Clients account name
BVN*
String
Clients bank verification number
Collection Account Number*
String
clients collection account number
Unique Reference*
String
Unique reference code
Currency Code*
String
Currency code e.g NGN
Valid till*
String
Specify valid till e.g 2022-11-30T09:42:29.755Z
Valid for*
String
Specify the following "Years" "Months" "Days" "Hours" "Minutes"
Is One Time Payment*
String
Specify "true"
Expected amount
String
Specify expected amount
{
"accountNumber": "string",
"accountName": "string",
"collectionAccountNumber": "string",
"bvn": "string",
"accountType": 1,
"accountCurrency": "string",
"hasExpired": true,
"expires": "2022-12-07T10:21:13.041Z",
"uniqueReference": "string",
"isOneTimePaymentAccount": true,
"expectedAmount": "string"
}
Request body
To create a dynamic virtual account, the below details are *required
in the request body.
{
"accountName": "string",
"bvn": "string",
"collectionAccountNumber": "string",
"uniqueReference": "string",
"currencyCode": "string",
"validTill": "2022-04-11T15:26:47.140Z",
"validFor": {
"years": 0,
"months": 0,
"days": 0,
"hours": 0,
"minutes": 0
},
"isOneTimePaymentAccount": true
}
curl -X POST "https://api-fsdh360-test.fsdhgroup.com/api/v1/virtualaccounts/dynamic" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"accountName\":\"string\",\"bvn\":\"string\",\"collectionAccountNumber\":\"string\",\"uniqueReference\":\"string\",\"currencyCode\":\"string\",\"validTill\":\"2022-04-26T10:42:02.951Z\",\"validFor\":{\"years\":0,\"months\":0,\"days\":0,\"hours\":0,\"minutes\":0},\"isOneTimePaymentAccount\":true}"
Response body
Inputting the correct parameters should give you a 201
: Success
response which will populate the below Success details. Also specified are possible responses from the request.
{
"accountNumber": "string",
"accountName": "string",
"collectionAccountNumber": "string",
"bvn": "string",
"accountType": 1,
"accountCurrency": "string",
"hasExpired": true,
"expires": "2022-11-30T09:54:21.389Z",
"uniqueReference": "string",
"isOneTimePaymentAccount": true,
"expectedAmount": "string"
}
Last updated