/v1/wallet/sessions
signed
Create a deposit-address page link
The only signed call in the hosted wallet flow. Returns a one-time link to a page that shows the player's standing deposit address with a QR code, the coin and network to send, and the deposits that already arrived. Credit the player from deposit.confirmed, exactly as in the host-to-host wallet flow.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
player_id |
string | yes | Your id for the player. The page shows this player's standing addresses, the same ones POST /v1/wallet/address returns. |
network |
string | no | Show only this network. Send network or networks, not both. |
networks |
array | no | Offer these networks, in this order. Omit both to offer every network with deposit addresses switched on for you. |
token |
string | no | Name the coin the player should send. Networks that do not accept it are left out. |
amount |
string | no | A suggested amount shown on the page, in whole units. The address takes any amount: this is a hint for the player, not a limit. |
return_url |
string | no | Absolute http(s) URL for the page's back button. |
language |
string | no | Page language: az, de, en, es, fr, hy, it, ka, kk, ky, pl, pt, ru, tg, tr, uk or uz. Anything else falls back to English. |
ttl_seconds |
integer | no | How long the link opens the page: 60 to 86400 seconds, default 3600. The addresses themselves never expire. |
Request
curl -X POST "$BASE_URL/v1/wallet/sessions" \
-H "Content-Type: application/json" \
-H "X-Api-Key: $API_KEY_ID" \
-H "X-Timestamp: $TS" \
-H "X-Nonce: $NONCE" \
-H "X-Signature: $SIG" \
-d '{"player_id":"player-123","networks":["tron","bsc"],"token":"USDT","return_url":"https://merchant.example/account","language":"en"}'res, err := client.Call(ctx, "POST", "/v1/wallet/sessions", `{
"player_id": "player-123",
"networks": [
"tron",
"bsc"
],
"token": "USDT",
"return_url": "https://merchant.example/account",
"language": "en"
}`)$res = $client->call('POST', '/v1/wallet/sessions', [
'player_id' => 'player-123',
'networks' => [
'tron',
'bsc',
],
'token' => 'USDT',
'return_url' => 'https://merchant.example/account',
'language' => 'en',
]);const res = await client.call("POST", "/v1/wallet/sessions", {
"player_id": "player-123",
"networks": [
"tron",
"bsc"
],
"token": "USDT",
"return_url": "https://merchant.example/account",
"language": "en"
});res = client.call("POST", "/v1/wallet/sessions", {
"player_id": "player-123",
"networks": [
"tron",
"bsc",
],
"token": "USDT",
"return_url": "https://merchant.example/account",
"language": "en",
})const res = await client.call("POST", "/v1/wallet/sessions", {
"player_id": "player-123",
"networks": [
"tron",
"bsc"
],
"token": "USDT",
"return_url": "https://merchant.example/account",
"language": "en"
});The client is the one on Signing requests: it signs, sends, and turns an error into an exception carrying its code.
Response 200
The hosted link.
{
"session": "wsess_4b1f0c",
"token": "q8Hk2LxV0mZ7cN4pR1tY6wE3uI9oA5sD2fG8hJ0kL3",
"url": "https://pay.time2pay.tech/wallet/q8Hk2LxV0mZ7cN4pR1tY6wE3uI9oA5sD2fG8hJ0kL3",
"expires_at": "2026-11-18T10:00:00Z"
}
Errors
400
unsupported
A missing player_id, a TTL out of range, both network and networks, or a network or coin without deposit addresses for you. Codes: validation, unsupported.
{
"error": {
"code": "unsupported",
"message": "USDC is not accepted on any network with deposit addresses"
}
}
401
unauthorized
The signature, key, timestamp or nonce did not check out: a missing header, an unknown key id, a timestamp more than 5 minutes from ours, a signature that does not match, or a nonce already used inside the window. Do not retry without rebuilding the request — a retry needs a new timestamp, a new nonce and a new signature.
{
"error": {
"code": "unauthorized",
"message": "invalid signature"
}
}
403
forbidden
The credential is valid but the caller's IP is not in the allowlist configured for your merchant. Not retryable.
{
"error": {
"code": "forbidden",
"message": "client IP not allowed for this merchant"
}
}
503
unavailable
A dependency we need to answer safely is degraded, so the request was refused rather than served wrongly. Transient: retry with backoff, using a fresh timestamp, nonce and signature.
{
"error": {
"code": "unavailable",
"message": "cannot verify request nonce"
}
}