cURL
curl --request POST \
--url https://sandbox.dollarpe.xyz/cms/api/v1/bank/create \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-SIGNATURE: <api-key>' \
--header 'X-TIMESTAMP: <api-key>' \
--data '
{
"customer_id": "c2cf861b-342b-4318-a90e-85cd0312e82f",
"account_number": "7627389201",
"ifsc": "SBI0001829IU",
"account_name": "Sandbox Technologies Pvt Ltd"
}
'import requests
url = "https://sandbox.dollarpe.xyz/cms/api/v1/bank/create"
payload = {
"customer_id": "c2cf861b-342b-4318-a90e-85cd0312e82f",
"account_number": "7627389201",
"ifsc": "SBI0001829IU",
"account_name": "Sandbox Technologies Pvt Ltd"
}
headers = {
"X-API-KEY": "<api-key>",
"X-TIMESTAMP": "<api-key>",
"X-SIGNATURE": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-KEY': '<api-key>',
'X-TIMESTAMP': '<api-key>',
'X-SIGNATURE': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
customer_id: 'c2cf861b-342b-4318-a90e-85cd0312e82f',
account_number: '7627389201',
ifsc: 'SBI0001829IU',
account_name: 'Sandbox Technologies Pvt Ltd'
})
};
fetch('https://sandbox.dollarpe.xyz/cms/api/v1/bank/create', 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://sandbox.dollarpe.xyz/cms/api/v1/bank/create",
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([
'customer_id' => 'c2cf861b-342b-4318-a90e-85cd0312e82f',
'account_number' => '7627389201',
'ifsc' => 'SBI0001829IU',
'account_name' => 'Sandbox Technologies Pvt Ltd'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>",
"X-SIGNATURE: <api-key>",
"X-TIMESTAMP: <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://sandbox.dollarpe.xyz/cms/api/v1/bank/create"
payload := strings.NewReader("{\n \"customer_id\": \"c2cf861b-342b-4318-a90e-85cd0312e82f\",\n \"account_number\": \"7627389201\",\n \"ifsc\": \"SBI0001829IU\",\n \"account_name\": \"Sandbox Technologies Pvt Ltd\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-TIMESTAMP", "<api-key>")
req.Header.Add("X-SIGNATURE", "<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://sandbox.dollarpe.xyz/cms/api/v1/bank/create")
.header("X-API-KEY", "<api-key>")
.header("X-TIMESTAMP", "<api-key>")
.header("X-SIGNATURE", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"c2cf861b-342b-4318-a90e-85cd0312e82f\",\n \"account_number\": \"7627389201\",\n \"ifsc\": \"SBI0001829IU\",\n \"account_name\": \"Sandbox Technologies Pvt Ltd\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.dollarpe.xyz/cms/api/v1/bank/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-TIMESTAMP"] = '<api-key>'
request["X-SIGNATURE"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_id\": \"c2cf861b-342b-4318-a90e-85cd0312e82f\",\n \"account_number\": \"7627389201\",\n \"ifsc\": \"SBI0001829IU\",\n \"account_name\": \"Sandbox Technologies Pvt Ltd\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"id": "4e6f1b20-a73c-11ec-b909-0242ac120002",
"customer_id": "550e8400-e29b-41d4-a716-446655440000",
"account_number": "123456789012",
"ifsc": "ABC123456",
"account_name": "Sandbox Technologies Pvt Ltd",
"vpa": "testing@upi",
"bank_account_type": "ACCOUNT_DETAILS",
"bank_account_status": "VERIFIED",
"failure_reason": "null"
}
}{
"status": false,
"message": "Bad Request",
"err_code": "REQ_FIELD_MISSING",
"errors": {
"account_number": [
"account_number is required"
]
},
"data": null
}{
"success": false,
"message": "Internal Server Error",
"err_code": "SYS_INTERNAL_ERROR",
"errors": "Unexpected error occurred. Please try again later.",
"data": null
}Bank
Add Bank Account
Adds a bank account for a customer. Used as the payout destination for off-ramp transactions.
POST
/
bank
/
create
cURL
curl --request POST \
--url https://sandbox.dollarpe.xyz/cms/api/v1/bank/create \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-SIGNATURE: <api-key>' \
--header 'X-TIMESTAMP: <api-key>' \
--data '
{
"customer_id": "c2cf861b-342b-4318-a90e-85cd0312e82f",
"account_number": "7627389201",
"ifsc": "SBI0001829IU",
"account_name": "Sandbox Technologies Pvt Ltd"
}
'import requests
url = "https://sandbox.dollarpe.xyz/cms/api/v1/bank/create"
payload = {
"customer_id": "c2cf861b-342b-4318-a90e-85cd0312e82f",
"account_number": "7627389201",
"ifsc": "SBI0001829IU",
"account_name": "Sandbox Technologies Pvt Ltd"
}
headers = {
"X-API-KEY": "<api-key>",
"X-TIMESTAMP": "<api-key>",
"X-SIGNATURE": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-KEY': '<api-key>',
'X-TIMESTAMP': '<api-key>',
'X-SIGNATURE': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
customer_id: 'c2cf861b-342b-4318-a90e-85cd0312e82f',
account_number: '7627389201',
ifsc: 'SBI0001829IU',
account_name: 'Sandbox Technologies Pvt Ltd'
})
};
fetch('https://sandbox.dollarpe.xyz/cms/api/v1/bank/create', 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://sandbox.dollarpe.xyz/cms/api/v1/bank/create",
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([
'customer_id' => 'c2cf861b-342b-4318-a90e-85cd0312e82f',
'account_number' => '7627389201',
'ifsc' => 'SBI0001829IU',
'account_name' => 'Sandbox Technologies Pvt Ltd'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>",
"X-SIGNATURE: <api-key>",
"X-TIMESTAMP: <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://sandbox.dollarpe.xyz/cms/api/v1/bank/create"
payload := strings.NewReader("{\n \"customer_id\": \"c2cf861b-342b-4318-a90e-85cd0312e82f\",\n \"account_number\": \"7627389201\",\n \"ifsc\": \"SBI0001829IU\",\n \"account_name\": \"Sandbox Technologies Pvt Ltd\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-TIMESTAMP", "<api-key>")
req.Header.Add("X-SIGNATURE", "<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://sandbox.dollarpe.xyz/cms/api/v1/bank/create")
.header("X-API-KEY", "<api-key>")
.header("X-TIMESTAMP", "<api-key>")
.header("X-SIGNATURE", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"c2cf861b-342b-4318-a90e-85cd0312e82f\",\n \"account_number\": \"7627389201\",\n \"ifsc\": \"SBI0001829IU\",\n \"account_name\": \"Sandbox Technologies Pvt Ltd\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.dollarpe.xyz/cms/api/v1/bank/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-TIMESTAMP"] = '<api-key>'
request["X-SIGNATURE"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_id\": \"c2cf861b-342b-4318-a90e-85cd0312e82f\",\n \"account_number\": \"7627389201\",\n \"ifsc\": \"SBI0001829IU\",\n \"account_name\": \"Sandbox Technologies Pvt Ltd\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"id": "4e6f1b20-a73c-11ec-b909-0242ac120002",
"customer_id": "550e8400-e29b-41d4-a716-446655440000",
"account_number": "123456789012",
"ifsc": "ABC123456",
"account_name": "Sandbox Technologies Pvt Ltd",
"vpa": "testing@upi",
"bank_account_type": "ACCOUNT_DETAILS",
"bank_account_status": "VERIFIED",
"failure_reason": "null"
}
}{
"status": false,
"message": "Bad Request",
"err_code": "REQ_FIELD_MISSING",
"errors": {
"account_number": [
"account_number is required"
]
},
"data": null
}{
"success": false,
"message": "Internal Server Error",
"err_code": "SYS_INTERNAL_ERROR",
"errors": "Unexpected error occurred. Please try again later.",
"data": null
}Add Bank Account
Either [account_number, ifsc] or vpa is required.
Only 3 bank accounts and UPI IDs allowed.
Error Codes and Messages
| API Status Code | Response | Reason |
|---|---|---|
| 400 | Customer not found or access denied | Customer not found |
| 400 | Customer not found or access denied | Customer does not belong to the organization |
| 400 | Customer is unverified | Customer is not KYC verified |
| 400 | VPA already in use | UPI ID is already in use |
| 400 | Maximum 3 UPI IDs allowed | 3 UPI IDs are already added for the customer |
| 400 | Account number already in use | Account number is already in use |
| 400 | Maximum 3 bank account details allowed | 3 Bank Accounts are already added for the customer |
| 400 | KYC already in use | KYC is being used by another customer |
| 500 | Internal Server Error | Internal Server Error |
Authorizations
API Key for authentication
Current timestamp in seconds since epoch
HMAC SHA256 signature of the request encoded in Base64
Body
application/json
- Option 1
- Option 2
⌘I

