Edit VBA
curl --request PUT \
--url https://api-pacb-uat.eximpe.com/pg/vba/{virtual_account_id}/ \
--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_name": "Acme Imports Pvt Ltd",
"remitter_lock_details": {
"allowed_remitters": [
{
"account_number": "26291800001191",
"ifsc": "YESB0000262"
}
]
}
}
'import requests
url = "https://api-pacb-uat.eximpe.com/pg/vba/{virtual_account_id}/"
payload = {
"virtual_account_name": "Acme Imports Pvt Ltd",
"remitter_lock_details": { "allowed_remitters": [
{
"account_number": "26291800001191",
"ifsc": "YESB0000262"
}
] }
}
headers = {
"X-Client-ID": "<api-key>",
"X-Client-Secret": "<api-key>",
"X-Merchant-ID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
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_name: 'Acme Imports Pvt Ltd',
remitter_lock_details: {allowed_remitters: [{account_number: '26291800001191', ifsc: 'YESB0000262'}]}
})
};
fetch('https://api-pacb-uat.eximpe.com/pg/vba/{virtual_account_id}/', 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/{virtual_account_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'virtual_account_name' => 'Acme Imports Pvt Ltd',
'remitter_lock_details' => [
'allowed_remitters' => [
[
'account_number' => '26291800001191',
'ifsc' => 'YESB0000262'
]
]
]
]),
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/{virtual_account_id}/"
payload := strings.NewReader("{\n \"virtual_account_name\": \"Acme Imports Pvt Ltd\",\n \"remitter_lock_details\": {\n \"allowed_remitters\": [\n {\n \"account_number\": \"26291800001191\",\n \"ifsc\": \"YESB0000262\"\n }\n ]\n }\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api-pacb-uat.eximpe.com/pg/vba/{virtual_account_id}/")
.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_name\": \"Acme Imports Pvt Ltd\",\n \"remitter_lock_details\": {\n \"allowed_remitters\": [\n {\n \"account_number\": \"26291800001191\",\n \"ifsc\": \"YESB0000262\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-pacb-uat.eximpe.com/pg/vba/{virtual_account_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.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_name\": \"Acme Imports Pvt Ltd\",\n \"remitter_lock_details\": {\n \"allowed_remitters\": [\n {\n \"account_number\": \"26291800001191\",\n \"ifsc\": \"YESB0000262\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "VBA updated successfully",
"data": {
"uid": "VBA5977751432",
"virtual_account_id": "24586202",
"vba_account_name": "Acme Imports Pvt Ltd",
"vba_bank_code": "UTIB",
"vba_account_number": "9461257424586202",
"vba_ifsc": "UTIB0CCH274",
"vba_status": "ACTIVE",
"remitter_lock_details": {
"allowed_remitters": [
{
"account_number": "26291800001191",
"ifsc": "YESB0000262"
}
]
},
"amount_lock_details": null
}
}{
"success": false,
"error": {
"code": "ERR_SERVICE_ERROR_000",
"message": "Payment gateway error",
"details": {
"error": "No editable fields provided"
}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "ERR_VBA_001",
"message": "Virtual account not found",
"details": {
"error": "VBA not found for this merchant"
}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Virtual Bank Accounts
Edit VBA
Update the name, contact details, remitter lock or amount lock of a Virtual Bank Account.
PUT
/
pg
/
vba
/
{virtual_account_id}
/
Edit VBA
curl --request PUT \
--url https://api-pacb-uat.eximpe.com/pg/vba/{virtual_account_id}/ \
--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_name": "Acme Imports Pvt Ltd",
"remitter_lock_details": {
"allowed_remitters": [
{
"account_number": "26291800001191",
"ifsc": "YESB0000262"
}
]
}
}
'import requests
url = "https://api-pacb-uat.eximpe.com/pg/vba/{virtual_account_id}/"
payload = {
"virtual_account_name": "Acme Imports Pvt Ltd",
"remitter_lock_details": { "allowed_remitters": [
{
"account_number": "26291800001191",
"ifsc": "YESB0000262"
}
] }
}
headers = {
"X-Client-ID": "<api-key>",
"X-Client-Secret": "<api-key>",
"X-Merchant-ID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
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_name: 'Acme Imports Pvt Ltd',
remitter_lock_details: {allowed_remitters: [{account_number: '26291800001191', ifsc: 'YESB0000262'}]}
})
};
fetch('https://api-pacb-uat.eximpe.com/pg/vba/{virtual_account_id}/', 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/{virtual_account_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'virtual_account_name' => 'Acme Imports Pvt Ltd',
'remitter_lock_details' => [
'allowed_remitters' => [
[
'account_number' => '26291800001191',
'ifsc' => 'YESB0000262'
]
]
]
]),
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/{virtual_account_id}/"
payload := strings.NewReader("{\n \"virtual_account_name\": \"Acme Imports Pvt Ltd\",\n \"remitter_lock_details\": {\n \"allowed_remitters\": [\n {\n \"account_number\": \"26291800001191\",\n \"ifsc\": \"YESB0000262\"\n }\n ]\n }\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api-pacb-uat.eximpe.com/pg/vba/{virtual_account_id}/")
.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_name\": \"Acme Imports Pvt Ltd\",\n \"remitter_lock_details\": {\n \"allowed_remitters\": [\n {\n \"account_number\": \"26291800001191\",\n \"ifsc\": \"YESB0000262\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-pacb-uat.eximpe.com/pg/vba/{virtual_account_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.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_name\": \"Acme Imports Pvt Ltd\",\n \"remitter_lock_details\": {\n \"allowed_remitters\": [\n {\n \"account_number\": \"26291800001191\",\n \"ifsc\": \"YESB0000262\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "VBA updated successfully",
"data": {
"uid": "VBA5977751432",
"virtual_account_id": "24586202",
"vba_account_name": "Acme Imports Pvt Ltd",
"vba_bank_code": "UTIB",
"vba_account_number": "9461257424586202",
"vba_ifsc": "UTIB0CCH274",
"vba_status": "ACTIVE",
"remitter_lock_details": {
"allowed_remitters": [
{
"account_number": "26291800001191",
"ifsc": "YESB0000262"
}
]
},
"amount_lock_details": null
}
}{
"success": false,
"error": {
"code": "ERR_SERVICE_ERROR_000",
"message": "Payment gateway error",
"details": {
"error": "No editable fields provided"
}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "ERR_VBA_001",
"message": "Virtual account not found",
"details": {
"error": "VBA not found for this merchant"
}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Headers
Body
application/json
Contact email for the VBA.
Example: