/v1/payout/sessions
signed
Create a withdrawal page link
The only signed call before the player acts. Returns a one-time link to a page where the player chooses a network and coin and enters their wallet address. When they submit, a payout is created and you get payout.requested; authorize it with your wallet signature, as any other payout. The platform cannot pay out without that signature.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
external_id |
string | yes | Your withdrawal reference. One link per reference: repeating the create returns the same session with a fresh link while the player has not submitted a wallet yet. |
player_id |
string | yes | Your id for the player asking to withdraw. |
amount |
string | no | The amount to pay out, in whole units. Omit it to let the player enter an amount on the page; check that amount when payout.requested arrives, before you authorize. |
token |
string | no | Pay out in this coin. Omit it to let the player pick among the coins you pay out in. |
network |
string | no | Pay out on this network only. Send network or networks, not both. |
networks |
array | no | Offer these networks. Omit both to offer every network you pay out on. |
callback_url |
string | no | Where payout webhooks for this withdrawal go, instead of your default callback URL. |
return_url |
string | no | Absolute http(s) URL for the page's back button. |
language |
string | no | Page language, same list as the deposit page. |
ttl_seconds |
integer | no | How long the link stays usable: 60 to 86400 seconds, default 1800. A link whose player already submitted a wallet keeps showing the payout's progress. |
Request
curl -X POST "$BASE_URL/v1/payout/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 '{"external_id":"WD-2026-004417","player_id":"player-123","amount":"120","token":"USDT","networks":["tron","bsc"],"return_url":"https://merchant.example/account","language":"en"}'res, err := client.Call(ctx, "POST", "/v1/payout/sessions", `{
"external_id": "WD-2026-004417",
"player_id": "player-123",
"amount": "120",
"token": "USDT",
"networks": [
"tron",
"bsc"
],
"return_url": "https://merchant.example/account",
"language": "en"
}`)$res = $client->call('POST', '/v1/payout/sessions', [
'external_id' => 'WD-2026-004417',
'player_id' => 'player-123',
'amount' => '120',
'token' => 'USDT',
'networks' => [
'tron',
'bsc',
],
'return_url' => 'https://merchant.example/account',
'language' => 'en',
]);const res = await client.call("POST", "/v1/payout/sessions", {
"external_id": "WD-2026-004417",
"player_id": "player-123",
"amount": "120",
"token": "USDT",
"networks": [
"tron",
"bsc"
],
"return_url": "https://merchant.example/account",
"language": "en"
});res = client.call("POST", "/v1/payout/sessions", {
"external_id": "WD-2026-004417",
"player_id": "player-123",
"amount": "120",
"token": "USDT",
"networks": [
"tron",
"bsc",
],
"return_url": "https://merchant.example/account",
"language": "en",
})const res = await client.call("POST", "/v1/payout/sessions", {
"external_id": "WD-2026-004417",
"player_id": "player-123",
"amount": "120",
"token": "USDT",
"networks": [
"tron",
"bsc"
],
"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": "psess_7d3a9e21",
"token": "Zt3nQ0vB8yW1xK6mL2pR9sD4fH7jG5cE0aU3iO8eT1",
"url": "https://pay.time2pay.tech/payout/Zt3nQ0vB8yW1xK6mL2pR9sD4fH7jG5cE0aU3iO8eT1",
"expires_at": "2026-11-17T19:30:00Z"
}
Errors
400
unsupported
A missing external_id or player_id, a TTL out of range, both network and networks, or a network or coin you do not pay out in. Codes: validation, unsupported.
{
"error": {
"code": "unsupported",
"message": "payouts of \"USDC\" are not enabled on \"tron\" for this merchant"
}
}
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"
}
}
409
conflict
This external_id already has a payout: the player submitted a wallet. Read the payout instead of making a new link.
{
"error": {
"code": "conflict",
"message": "the payout session already has a payout"
}
}
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"
}
}