Wallet
Create Walletβ
Creates a new wallet for a cardholder in the specified currency.
- Endpoint
POST {{baseUrl}}/issuing/api/:version/wallet
Description
This API enables the creation of a wallet under a specific cardholderβs account. A wallet is linked to a cardholder and is initialized in a chosen currency (e.g., USD, EUR).
π Path Parameters
version string required
v1.π© Request Headers
x-api-key string required
x-product-id string required
x-cardholder-id string required
x-client-id string
x-request-id string required
Content-Type string required
application/jsonAuthorization string
π¦ Body Parameters
currency string required
- π§© Examples
- π§ͺ Try It Out
Request Example
- cURL
- Python
- Java
- NodeJs
curl --location --request POST \
--url '{{baseUrl}}/issuing/api/:version/wallet' \
--header 'x-api-key: {{Shared X-API key}}' \
--header 'x-product-id: {{Shared ProductID}}' \
--header 'x-cardholder-id: {{CardholderID}}' \
--header 'x-client-id: {{ClientID}}' \
--header 'x-request-id: {{IdempotencyKey}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{AccessToken}}' \
--data '{
"currency": "USD"
}'
import requests
import json
url = "{{baseUrl}}/issuing/api/:version/wallet"
payload = json.dumps({
"currency": "USD"
})
headers = {
'x-api-key': '{{Shared X-API key}}',
'x-product-id': '{{Shared ProductID}}',
'x-cardholder-id': '{{CardholderID}}',
'x-client-id': '{{ClientID}}',
'x-request-id': '{{IdempotencyKey}}',
'Content-Type': 'application/json',
'Authorization': 'Bearer {{AccessToken}}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n \"currency\": \"USD\"\r\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/issuing/api/:version/wallet")
.method("POST", body)
.addHeader("x-api-key", "{{Shared X-API key}}")
.addHeader("x-product-id", "{{Shared ProductID}}")
.addHeader("x-cardholder-id", "{{CardholderID}}")
.addHeader("x-client-id", "{{ClientID}}")
.addHeader("x-request-id", "{{IdempotencyKey}}")
.addHeader("Content-Type", "application/json")
.addHeader("Authorization", "Bearer {{AccessToken}}")
.build();
Response response = client.newCall(request).execute();
const axios = require('axios');
let data = JSON.stringify({
"currency": "USD"
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: '{{baseUrl}}/issuing/api/:version/wallet',
headers: {
'x-api-key': '{{Shared X-API key}}',
'x-product-id': '{{Shared ProductID}}',
'x-cardholder-id': '{{CardholderID}}',
'x-client-id': '{{ClientID}}',
'x-request-id': '{{IdempotencyKey}}',
'Content-Type': 'application/json',
'Authorization': 'Bearer {{AccessToken}}'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Response Example
- 200: Success
- 400: Error
{
"status": "success",
"message": "wallet created successfully!",
"code": 200,
"data": [
{
"id": "wallet-id",
"currency": "USD",
"amount": 0.00,
"holdingCurrency": "USD",
"holdingAmount": 0.00,
"dailyLimitAmount": 0.00,
"weeklyLimitAmount": 0.00,
"monthlyLimitAmount": 0.00,
"yearlyLimitAmount": 0.00,
"totalLimitAmount": 0.00,
"status": "ACTIVE",
"createdAt": "2025-09-24T06:45:35.803975298"
}
]
}
{
"code": 400,
"message": "Error Message",
"status": "error"
}
πΌ Create Wallet β Sandbox
π Headers
π Request Body
π» Generated cURL Command
β―Get Wallet Detailsβ
Retrieves wallet details of a specific cardholder.
- Endpoint
GET {{baseUrl}}/issuing/api/:version/wallet
Description
This API fetches the wallet information associated with a cardholder using their unique x-cardholder-id. It returns details such as wallet ID, currency, balance, and status.
π Path Parameters
version string required
v1.π© Request Headers
x-api-key string required
x-product-id string required
x-cardholder-id string required
x-client-id string
x-request-id string required
Content-Type string required
application/jsonAuthorization string
- π§© Examples
- π§ͺ Try It Out
Request Example
- cURL
- Python
- Java
- NodeJs
curl --location --request GET \
--url '{{baseUrl}}/issuing/api/:version/wallet' \
--header 'x-api-key: {{Shared X-API key}}' \
--header 'x-product-id: {{Shared ProductID}}' \
--header 'x-cardholder-id: {{CardholderID}}' \
--header 'x-client-id: {{ClientID}}' \
--header 'x-request-id: {{IdempotencyKey}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{AccessToken}}' \
import requests
import json
url = "{{baseUrl}}/issuing/api/:version/wallet"
payload = {}
headers = {
'x-api-key': '{{Shared X-API key}}',
'x-product-id': '{{Shared ProductID}}',
'x-cardholder-id': '{{CardholderID}}',
'x-client-id': '{{ClientID}}',
'x-request-id': '{{IdempotencyKey}}',
'Content-Type': 'application/json',
'Authorization': 'Bearer {{AccessToken}}'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("{{baseUrl}}/issuing/api/:version/wallet")
.method("GET", body)
.addHeader("x-api-key", "{{Shared X-API key}}")
.addHeader("x-product-id", "{{Shared ProductID}}")
.addHeader("x-cardholder-id", "{{CardholderID}}")
.addHeader("x-client-id", "{{ClientID}}")
.addHeader("x-request-id", "{{IdempotencyKey}}")
.addHeader("Content-Type", "application/json")
.addHeader("Authorization", "Bearer {{AccessToken}}")
.build();
Response response = client.newCall(request).execute();
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: '{{baseUrl}}/issuing/api/:version/wallet',
headers: {
'x-api-key': '{{Shared X-API key}}',
'x-product-id': '{{Shared ProductID}}',
'x-cardholder-id': '{{CardholderID}}',
'x-client-id': '{{ClientID}}',
'x-request-id': '{{IdempotencyKey}}',
'Content-Type': 'application/json',
'Authorization': 'Bearer {{AccessToken}}'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Response Example
- 200: Success
- 400: Error
{
"status": "success",
"message": "wallet details",
"code": 200,
"data": [
{
"id": "wallet-id",
"currency": "USD",
"amount": 10.00,
"holdingCurrency": "USD",
"holdingAmount": 0.00,
"dailyLimitAmount": 0.00,
"weeklyLimitAmount": 0.00,
"monthlyLimitAmount": 0.00,
"yearlyLimitAmount": 0.00,
"totalLimitAmount": 0.00,
"status": "ACTIVE",
"createdAt": "2025-09-24T06:45:35"
}
]
}
{
"code": 400,
"message": "Error Message",
"status": "error"
}
βΉοΈ Get Wallet Details β Sandbox
π Headers
π» Generated cURL Command
β―Get Wallet Historyβ
Retrieves the transaction history of a specific wallet.
- Endpoint
GET {{baseUrl}}/issuing/api/:version/wallet/history
Description
This API provides a detailed list of transactions linked to a wallet under a cardholder. It requires both the x-cardholder-id and x-wallet-id headers to identify the wallet. The response includes transaction details such as amounts, currency, timestamps, and status.
π Path Parameters
version string required
v1.π© Request Headers
x-api-key string required
x-product-id string required
x-cardholder-id string required
x-wallet-id string required
x-client-id string
x-request-id string required
Content-Type string required
application/jsonAuthorization string
π Query Parameters
from_date string
YYYY-MM-DD or yyyy-MM-ddTHH:mm:ss.to_date string
YYYY-MM-DD or yyyy-MM-ddTHH:mm:ss.page integer
size integer
- π§© Examples
- π§ͺ Try It Out
Request Example
- cURL
- Python
- Java
- NodeJs
curl --location --request GET \
--url '{{baseUrl}}/issuing/api/:version/wallet/history' \
--header 'x-api-key: {{Shared X-API key}}' \
--header 'x-product-id: {{Shared ProductID}}' \
--header 'x-cardholder-id: {{CardholderID}}' \
--header 'x-wallet-id: {{WalletID}}' \
--header 'x-client-id: {{ClientID}}' \
--header 'x-request-id: {{IdempotencyKey}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{AccessToken}}' \
import requests
import json
url = "{{baseUrl}}/issuing/api/:version/wallet/history"
payload = {}
headers = {
'x-api-key': '{{Shared X-API key}}',
'x-product-id': '{{Shared ProductID}}',
'x-cardholder-id': '{{CardholderID}}',
'x-wallet-id': '{{WalletID}}',
'x-client-id': '{{ClientID}}',
'x-request-id': '{{IdempotencyKey}}',
'Content-Type': 'application/json',
'Authorization': 'Bearer {{AccessToken}}'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("{{baseUrl}}/issuing/api/:version/wallet/history")
.method("GET", body)
.addHeader("x-api-key", "{{Shared X-API key}}")
.addHeader("x-product-id", "{{Shared ProductID}}")
.addHeader("x-cardholder-id", "{{CardholderID}}")
.addHeader("x-wallet-id", "{{WalletID}}")
.addHeader("x-client-id", "{{ClientID}}")
.addHeader("x-request-id", "{{IdempotencyKey}}")
.addHeader("Content-Type", "application/json")
.addHeader("Authorization", "Bearer {{AccessToken}}")
.build();
Response response = client.newCall(request).execute();
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: '{{baseUrl}}/issuing/api/:version/wallet/history',
headers: {
'x-api-key': '{{Shared X-API key}}',
'x-product-id': '{{Shared ProductID}}',
'x-cardholder-id': '{{CardholderID}}',
'x-wallet-id': '{{WalletID}}',
'x-client-id': '{{ClientID}}',
'x-request-id': '{{IdempotencyKey}}',
'Content-Type': 'application/json',
'Authorization': 'Bearer {{AccessToken}}'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Response Example
- 200: Success
- 400: Error
{
"status": "success",
"message": "wallet history",
"code": 200,
"data": [
{
"genericSlNo": 27,
"slNo": "RHA267",
"wallet_id": "wallet-id",
"programCode": "program-code",
"txn_currency": "USD",
"txn_amount": 7.89,
"available_amount": 13.00,
"available_currency": "USD",
"acquirer_amount": "390.00",
"acquirer_currency": "INR",
"txn_type": "fee_SCTF",
"txn_direction": "DEBIT",
"txn_ref_id": "rhatestwithfees1501202605",
"txn_email": null,
"txn_description": "Card Transaction",
"txn_status": "APPROVED",
"card_acceptor_name": "FEE",
"card_id": "card-id",
"initiated_by": "SYSTEM",
"settle_amount": 0.09,
"settle_currency": "USD",
"billing_amount": 0.09,
"billing_currency": "USD",
"initiatedAt": "2026-01-15T07:20:00",
"updatedAt": "2026-01-15T07:25:34"
},
{
"genericSlNo": 40,
"slNo": "WALLET286",
"wallet_id": "wallet-id",
"programCode": "program-code",
"txn_currency": "USD",
"txn_amount": 2.50,
"available_amount": 17.50,
"available_currency": "USD",
"acquirer_amount": "2.50",
"acquirer_currency": "USD",
"txn_type": "FEE",
"txn_direction": "DEBIT",
"txn_ref_id": "62012_M2P_FEE",
"txn_email": null,
"txn_description": null,
"txn_status": "SUCCESS",
"card_acceptor_name": "N/A",
"card_id": "N/A",
"initiated_by": "Wallet Load Fee",
"settle_amount": 2.50,
"settle_currency": "USD",
"billing_amount": 2.50,
"billing_currency": "USD",
"initiatedAt": "2026-01-12T12:36:45",
"updatedAt": null
}
]
}
{
"code": 400,
"message": "Error Message",
"status": "error"
}