Create virtual account
Changed onCreates bank account details for a customer to transfer into. When feeBearer is CUSTOMER, show the returned payableAmount rather than requestedAmount: it includes fees and is rounded to a figure the customer can transfer.
Request
- Base URLhttps://api.kyshi.co
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"customer": {
"firstName": "Dom",
"lastName": "Aba",
"email": "dom@yopmail.com",
"phoneNumber": "2348012345678"
},
"currency": "NGN",
"accountType": "INDIVIDUAL",
"accountCategory": "VIRTUAL_ACCOUNT",
"bank": "VFD",
"reference": "VA-ORDER-100045",
"expiresAt": "1440",
"amount": 1000,
"feeBearer": "CUSTOMER"
}Response
Success.
Example response
{
"status": true,
"message": "Success",
"code": 200,
"data": {}
}Changes
- breaking
the request property
became required - breaking
the request property
became required - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - info
the endpoint scheme security
ApiKeyAuthwas added to the API - info
the
request property default valueVIRTUAL_ACCOUNTwas removed - info
the
request property default valueINDIVIDUALwas removed - info
added
subschema #2to the response bodyallOflist for the response status - info
removed from the response body
allOflist for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking