Create Wallet
curl --request POST \
--url https://secureapi.tender.cash/v1/api/wallet \
--header 'Content-Type: <content-type>' \
--header 'authorization: <api-key>' \
--header 'x-access-id: <x-access-id>' \
--header 'x-request-id: <x-request-id>' \
--header 'x-timestamp: <x-timestamp>' \
--data '
{
"reference": "user-8821"
}
'const options = {
method: 'POST',
headers: {
authorization: '<api-key>',
'x-timestamp': '<x-timestamp>',
'x-request-id': '<x-request-id>',
'x-access-id': '<x-access-id>',
'Content-Type': '<content-type>'
},
body: JSON.stringify({reference: 'user-8821'})
};
fetch('https://secureapi.tender.cash/v1/api/wallet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://secureapi.tender.cash/v1/api/wallet"
payload = { "reference": "user-8821" }
headers = {
"authorization": "<api-key>",
"x-timestamp": "<x-timestamp>",
"x-request-id": "<x-request-id>",
"x-access-id": "<x-access-id>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://secureapi.tender.cash/v1/api/wallet",
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([
'reference' => 'user-8821'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"authorization: <api-key>",
"x-access-id: <x-access-id>",
"x-request-id: <x-request-id>",
"x-timestamp: <x-timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": "success",
"message": "success",
"data": {
"reference": "user-8821",
"addresses": [
{
"network": "ethereum",
"address": "0xabc123...",
"address_reference": "ref-1"
},
{
"network": "polygon",
"address": "0xdef456...",
"address_reference": "ref-1"
}
]
}
}Subwallets
Create Wallet
Provision a new subwallet for an end-user under your merchant account
POST
/
v1
/
api
/
wallet
Create Wallet
curl --request POST \
--url https://secureapi.tender.cash/v1/api/wallet \
--header 'Content-Type: <content-type>' \
--header 'authorization: <api-key>' \
--header 'x-access-id: <x-access-id>' \
--header 'x-request-id: <x-request-id>' \
--header 'x-timestamp: <x-timestamp>' \
--data '
{
"reference": "user-8821"
}
'const options = {
method: 'POST',
headers: {
authorization: '<api-key>',
'x-timestamp': '<x-timestamp>',
'x-request-id': '<x-request-id>',
'x-access-id': '<x-access-id>',
'Content-Type': '<content-type>'
},
body: JSON.stringify({reference: 'user-8821'})
};
fetch('https://secureapi.tender.cash/v1/api/wallet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://secureapi.tender.cash/v1/api/wallet"
payload = { "reference": "user-8821" }
headers = {
"authorization": "<api-key>",
"x-timestamp": "<x-timestamp>",
"x-request-id": "<x-request-id>",
"x-access-id": "<x-access-id>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://secureapi.tender.cash/v1/api/wallet",
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([
'reference' => 'user-8821'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"authorization: <api-key>",
"x-access-id: <x-access-id>",
"x-request-id: <x-request-id>",
"x-timestamp: <x-timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": "success",
"message": "success",
"data": {
"reference": "user-8821",
"addresses": [
{
"network": "ethereum",
"address": "0xabc123...",
"address_reference": "ref-1"
},
{
"network": "polygon",
"address": "0xdef456...",
"address_reference": "ref-1"
}
]
}
}Auth method: Signed (HMAC) — this endpoint requires the full set of signed
headers:
x-access-id, x-request-id, x-timestamp, and an HMAC-SHA256
authorization signature. See Authentication.Example
const res = await fetch(`${BASE}/wallet`, {
method: 'POST',
headers: makeHeaders(),
body: JSON.stringify({
reference: 'user-8821',
}),
});
const { data } = await res.json();
/*
{
reference: 'user-8821',
addresses: [
{ network: 'ethereum', address: '0xabc...', address_reference: 'ref-1' },
{ network: 'polygon', address: '0xdef...', address_reference: 'ref-1' }
]
}
*/
res = requests.post(
f"{BASE}/wallet",
headers=make_headers(),
json={"reference": "user-8821"},
)
data = res.json()["data"]
# data["reference"] → "user-8821"
# data["addresses"] → list of address objects
Headers
string
required
Base64-encoded HMAC-SHA256 signature of the request payload using the API secretExample:
"5e73d044c44d733fcf819ad3409aaad..."string
required
Current timestamp in ISO 8601 formatExample:
"2025-03-15T09:45:53.000Z"string
required
Unique identifier for the request (UUID v4)Example:
"550e8400-e29b-41d4-a716-446655440000"string
required
Your API access ID provided by TenderExample:
"your-access-id-here"string
required
Example:
"application/json"Body
string
required
A unique identifier for this wallet within your merchant account. Use your own user ID or any
stable string — it must be unique across all wallets you create.Example:
"user-8821"Response
string
required
Example:
"success"string
required
Example:
"success"object
required
Show data properties
Show data properties
string
The wallet reference you provided.Example:
"user-8821"Authorizations
Signed (HMAC) authentication. Required headers: x-access-id, x-request-id (UUID v4), x-timestamp (ISO 8601), and authorization (Base64 HMAC-SHA256 signature of {timeStamp, requestId, accessId} using your access secret).
Headers
Body
application/json
A unique identifier for this wallet within your merchant account.
Response
200 - application/json
Wallet created successfully