HTTP status: 409 · Title: “Confirmation token invalid”Documentation Index
Fetch the complete documentation index at: https://docs.kash.bot/llms.txt
Use this file to discover all available pages before exploring further.
When it fires
The token you sent inPOST /v1/trades/:id/confirm doesn’t match the stored hash for that trade.
Why it happens
- Wrong trade id — the token is one-time and tied to a specific trade.
- Token was truncated or modified in transit/storage.
- Replay against a different trade than the one that issued the token.
timingSafeEqual to prevent per-byte timing attacks.
How to fix
- Re-confirm that the trade id in the URL matches the trade id from the create response.
- Capture the token verbatim from
confirmation.tokenin the create response — the SDK does this automatically; raw HTTP callers must preserve case and length (43 chars, base64url). - If you’ve lost the token (only shown once in the create response), the trade can’t be confirmed — wait for it to auto-expire and re-create.