Simulate an inflow
curl --request POST \
--url https://{host}/v1/simulations/inflows \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"account_number": "<string>",
"amount_minor": 2500000,
"session_id": "<string>",
"sender_name": "<string>",
"sender_bank_code": "<string>",
"sender_account_number": "<string>",
"narration": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_number: '<string>',
amount_minor: 2500000,
session_id: '<string>',
sender_name: '<string>',
sender_bank_code: '<string>',
sender_account_number: '<string>',
narration: '<string>'
})
};
fetch('https://{host}/v1/simulations/inflows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v1/simulations/inflows"
payload = {
"account_number": "<string>",
"amount_minor": 2500000,
"session_id": "<string>",
"sender_name": "<string>",
"sender_bank_code": "<string>",
"sender_account_number": "<string>",
"narration": "<string>"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": {
"session_id": "<string>",
"account_number": "<string>",
"amount_minor": 2500000,
"status": "<string>",
"account_name": "<string>"
},
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": {
"fields": {}
},
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": null,
"code": "13"
}Simulations
Simulate an inflow
A payment into one of the business’s accounts (wallet, static or dynamic virtual account), sent by the sandbox bank. The outcome arrives as it would in live: va.payment.* or dva.payment.* on GET /v1/events and the webhooks.
Required permission: mode:test, virtual-accounts:write
POST
/
v1
/
simulations
/
inflows
Simulate an inflow
curl --request POST \
--url https://{host}/v1/simulations/inflows \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"account_number": "<string>",
"amount_minor": 2500000,
"session_id": "<string>",
"sender_name": "<string>",
"sender_bank_code": "<string>",
"sender_account_number": "<string>",
"narration": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_number: '<string>',
amount_minor: 2500000,
session_id: '<string>',
sender_name: '<string>',
sender_bank_code: '<string>',
sender_account_number: '<string>',
narration: '<string>'
})
};
fetch('https://{host}/v1/simulations/inflows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v1/simulations/inflows"
payload = {
"account_number": "<string>",
"amount_minor": 2500000,
"session_id": "<string>",
"sender_name": "<string>",
"sender_bank_code": "<string>",
"sender_account_number": "<string>",
"narration": "<string>"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": {
"session_id": "<string>",
"account_number": "<string>",
"amount_minor": 2500000,
"status": "<string>",
"account_name": "<string>"
},
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": {
"fields": {}
},
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": null,
"code": "13"
}Authorizations
Body
application/json