Simulate VBA Transfer
curl --request POST \
--url https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/ \
--header 'Content-Type: application/json' \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--header 'X-Merchant-ID: <api-key>' \
--data '
{
"virtual_account_id": "24586202",
"vba_simulation": {
"amount": 1500,
"utr": "TESTUTRA136UG",
"remitter_name": "John",
"remitter_account": "123456789012",
"remitter_ifsc": "YESB0CMSNOC",
"phone": "9876543210"
}
}
'import requests
url = "https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/"
payload = {
"virtual_account_id": "24586202",
"vba_simulation": {
"amount": 1500,
"utr": "TESTUTRA136UG",
"remitter_name": "John",
"remitter_account": "123456789012",
"remitter_ifsc": "YESB0CMSNOC",
"phone": "9876543210"
}
}
headers = {
"X-Client-ID": "<api-key>",
"X-Client-Secret": "<api-key>",
"X-Merchant-ID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-Client-Secret': '<api-key>',
'X-Merchant-ID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
virtual_account_id: '24586202',
vba_simulation: {
amount: 1500,
utr: 'TESTUTRA136UG',
remitter_name: 'John',
remitter_account: '123456789012',
remitter_ifsc: 'YESB0CMSNOC',
phone: '9876543210'
}
})
};
fetch('https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'virtual_account_id' => '24586202',
'vba_simulation' => [
'amount' => 1500,
'utr' => 'TESTUTRA136UG',
'remitter_name' => 'John',
'remitter_account' => '123456789012',
'remitter_ifsc' => 'YESB0CMSNOC',
'phone' => '9876543210'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Client-ID: <api-key>",
"X-Client-Secret: <api-key>",
"X-Merchant-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/"
payload := strings.NewReader("{\n \"virtual_account_id\": \"24586202\",\n \"vba_simulation\": {\n \"amount\": 1500,\n \"utr\": \"TESTUTRA136UG\",\n \"remitter_name\": \"John\",\n \"remitter_account\": \"123456789012\",\n \"remitter_ifsc\": \"YESB0CMSNOC\",\n \"phone\": \"9876543210\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-Merchant-ID", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/")
.header("X-Client-ID", "<api-key>")
.header("X-Client-Secret", "<api-key>")
.header("X-Merchant-ID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"virtual_account_id\": \"24586202\",\n \"vba_simulation\": {\n \"amount\": 1500,\n \"utr\": \"TESTUTRA136UG\",\n \"remitter_name\": \"John\",\n \"remitter_account\": \"123456789012\",\n \"remitter_ifsc\": \"YESB0CMSNOC\",\n \"phone\": \"9876543210\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-Client-Secret"] = '<api-key>'
request["X-Merchant-ID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"virtual_account_id\": \"24586202\",\n \"vba_simulation\": {\n \"amount\": 1500,\n \"utr\": \"TESTUTRA136UG\",\n \"remitter_name\": \"John\",\n \"remitter_account\": \"123456789012\",\n \"remitter_ifsc\": \"YESB0CMSNOC\",\n \"phone\": \"9876543210\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "VBA transfer simulation successful",
"data": {
"simulation_id": "sim_109690183D6zXpEmefYBXNIkzaDBovgM7jW",
"entity": "VBA_TRANSFER",
"entity_id": "9461257424586202",
"entity_simulation": {
"payment_status": "Payment processed successfully",
"payment_error_code": ""
}
}
}Virtual Bank Accounts
Simulate VBA Transfer
Simulate a payment into a Virtual Bank Account in the sandbox environment. The UTR must be unique across simulations.
POST
/
pg
/
vba
/
simulate-transfer
/
Simulate VBA Transfer
curl --request POST \
--url https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/ \
--header 'Content-Type: application/json' \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--header 'X-Merchant-ID: <api-key>' \
--data '
{
"virtual_account_id": "24586202",
"vba_simulation": {
"amount": 1500,
"utr": "TESTUTRA136UG",
"remitter_name": "John",
"remitter_account": "123456789012",
"remitter_ifsc": "YESB0CMSNOC",
"phone": "9876543210"
}
}
'import requests
url = "https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/"
payload = {
"virtual_account_id": "24586202",
"vba_simulation": {
"amount": 1500,
"utr": "TESTUTRA136UG",
"remitter_name": "John",
"remitter_account": "123456789012",
"remitter_ifsc": "YESB0CMSNOC",
"phone": "9876543210"
}
}
headers = {
"X-Client-ID": "<api-key>",
"X-Client-Secret": "<api-key>",
"X-Merchant-ID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-Client-Secret': '<api-key>',
'X-Merchant-ID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
virtual_account_id: '24586202',
vba_simulation: {
amount: 1500,
utr: 'TESTUTRA136UG',
remitter_name: 'John',
remitter_account: '123456789012',
remitter_ifsc: 'YESB0CMSNOC',
phone: '9876543210'
}
})
};
fetch('https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'virtual_account_id' => '24586202',
'vba_simulation' => [
'amount' => 1500,
'utr' => 'TESTUTRA136UG',
'remitter_name' => 'John',
'remitter_account' => '123456789012',
'remitter_ifsc' => 'YESB0CMSNOC',
'phone' => '9876543210'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Client-ID: <api-key>",
"X-Client-Secret: <api-key>",
"X-Merchant-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/"
payload := strings.NewReader("{\n \"virtual_account_id\": \"24586202\",\n \"vba_simulation\": {\n \"amount\": 1500,\n \"utr\": \"TESTUTRA136UG\",\n \"remitter_name\": \"John\",\n \"remitter_account\": \"123456789012\",\n \"remitter_ifsc\": \"YESB0CMSNOC\",\n \"phone\": \"9876543210\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-Merchant-ID", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/")
.header("X-Client-ID", "<api-key>")
.header("X-Client-Secret", "<api-key>")
.header("X-Merchant-ID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"virtual_account_id\": \"24586202\",\n \"vba_simulation\": {\n \"amount\": 1500,\n \"utr\": \"TESTUTRA136UG\",\n \"remitter_name\": \"John\",\n \"remitter_account\": \"123456789012\",\n \"remitter_ifsc\": \"YESB0CMSNOC\",\n \"phone\": \"9876543210\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-pacb-uat.eximpe.com/pg/vba/simulate-transfer/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-Client-Secret"] = '<api-key>'
request["X-Merchant-ID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"virtual_account_id\": \"24586202\",\n \"vba_simulation\": {\n \"amount\": 1500,\n \"utr\": \"TESTUTRA136UG\",\n \"remitter_name\": \"John\",\n \"remitter_account\": \"123456789012\",\n \"remitter_ifsc\": \"YESB0CMSNOC\",\n \"phone\": \"9876543210\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "VBA transfer simulation successful",
"data": {
"simulation_id": "sim_109690183D6zXpEmefYBXNIkzaDBovgM7jW",
"entity": "VBA_TRANSFER",
"entity_id": "9461257424586202",
"entity_simulation": {
"payment_status": "Payment processed successfully",
"payment_error_code": ""
}
}
}Sandbox only. In production the endpoint answers
403 and nothing is simulated.Authorizations
Headers
Body
application/json