time2pay Developer Docs

Reference

Idempotency and limits

Which calls are safe to repeat, what makes them safe, and the limits a well-behaved client stays under.

What makes a call safe to repeat

Networks fail between your request and our answer. Every call that creates something has a key of yours that makes a repeat return what the first one created instead of creating it twice. Send it every time and a retry after a timeout is always safe.

CallKeyA repeat with the same key
POST /v1/direct/sessionsexternal_order_idSame session with a fresh link, while the order is still pending. 409 if the parameters differ or a payment is already on the chain.
POST /v1/direct/initexternal_order_idThe session you already have.
POST /v1/wallet/addressplayer_id + networkAlways the same address. No need to cache it.
POST /v1/wallet/sessionsnone neededA new link to the same addresses. Links are cheap, addresses never change.
POST /v1/payout/sessionsexternal_idSame session with a fresh link until the player submits a wallet, then 409.
POST /v1/payoutexternal_idThe payout you already have. Required.
POST /v1/payout/authorizepayout_idThe same signature is accepted again and the payout is relayed once. A different signature after the first answers 409.

Reads (/status calls, GET /v1/balance) change nothing and can be repeated freely. A nonce is single use: a retry is a new request with a new nonce and timestamp, and the key above is what makes it the same operation.

Webhooks are at least once

A delivery that did not get a 2xx is retried: 30s, 1m, 2m and so on up to 1h, eight attempts in all. Your endpoint can therefore see the same event more than once, and two events of one payment out of order. Deduplicate on X-Idempotency-Key, apply each change once, and let a terminal status win over an earlier one.

Limits

WhatLimitWhen you hit it
Request timestamp and nonce5 minutes from our clock; a nonce once in that window401. Keep your servers on NTP.
Hosted page loads30 per link per minute429 on the page. A player reloading by hand never gets near it.
Hosted links60 seconds to 24 hours (ttl_seconds)400 validation on create.
Networks per link32400 validation.
player_id, external_id128 characters400 validation.
Batch payouts100 items400 validation.
Abusive trafficcan be throttled per IP during an attack429. Back off and retry later.

There is no fixed request quota on the API itself. A well-behaved client retries a 5xx or 429 with exponential backoff and a cap, and never retries a 4xx other than 429 unchanged: see What a correct retry looks like.