API Reference
Deposit into one of your bookmaker accounts with a card that is already saved on that bookmaker account.
Base URL: https://api.b337.ai
Beta. The contract below may still change. Saved card only: a card number is never accepted over the API. If the account has no saved card, add one on the bookmaker's own site first (the result comes back
no_card).
Real money moves. Once the submit returns
status: "pending", the deposit is in flight at the bookmaker. Never retry without first checking/api/bet_statusfor thatcorrelation_id, or send anidempotency_key.
POST /v3/deposit uses the same async contract as
/v3/place_bet: an HTTP 200 in ~100ms with
status: "pending" and a correlation_id, then poll /api/bet_status
(or receive a signed webhook at callback_url) for the result. It runs the
same deposit as the Deposit button on your Accounts page: your client
logs in to the account, makes ONE deposit with the saved card, reports, and
stops. Your client PC must be online.
POST /v3/deposit| Field | Type | Required | Description |
|---|---|---|---|
session_id | string | One of | A session on the account to deposit into. Must be yours |
account_id | string | One of | The account to deposit into. Must be yours. Send exactly one of session_id / account_id |
amount | number | Yes | Dollars, whole cents, from 0.01 to 100000.00 (10.005 is refused). Sent rounded to 2 decimal places |
card_id | string | No | Which saved card. Default: the account's most recently used card |
last4 | string | No | The saved card's last 4 digits |
cvc | string | No | The saved card's CVV (3-4 digits), only for bookmakers that ask for it on every deposit. Used for that one deposit; never logged or stored |
pc_id | string | No | Run on this PC (must be one of your online PCs). Default: picked for you |
callback_url | string | No | Public http(s) URL to receive the result. Beta: fires when your client reports; if the deposit fails before your client reports (PC offline, no answer before timeout_at), no webhook is sent, so also poll /api/bet_status |
idempotency_key | string | No | 1-200 characters. Resending the same key within 48h deposits nothing and returns the first correlation_id with idempotent_replay: true; while the first is still being submitted you get 409. A key is tied to its account, amount, card_id and last4: reusing it for a different deposit is 409 idempotency_conflict |
Card-entry fields (pan, card_number, expiry_month, expiry_year,
holder_name, ...) are refused with 400.
Standard v3 pending envelope (sandbox samples return 202):
session_id here is the session the deposit runs on (the account's own
deposit session), not necessarily the one you sent.
result payloadPoll POST /api/bet_status with the correlation_id. When it is
completed, result.status is one of:
| Status | Meaning |
|---|---|
completed | Deposited |
insufficient_funds | The card was declined for funds |
declined | The bank declined it |
card_rejected | The bookmaker rejected the card |
max_cards | The account has hit the bookmaker's card limit |
no_card | No saved card on the account |
requires_3ds | The bank approval was not completed. Nothing charged |
unconfirmed | The charge may have landed. Check the balance before retrying |
refused | The bookmaker refused it (bookie_message has its words) |
failed | Something else went wrong |
Every result also carries outcome_code, bookie_code and
bookie_message.
Body {"status": "fail", "code": "...", "message": "..."}:
| HTTP | code | Meaning |
|---|---|---|
409 | busy | Another tool is already running on this account. Try again shortly |
409 | client_too_old | Update your client |
409 | idempotency_conflict | This idempotency_key was already used for a different deposit. Use a new key |
503 | no_pc | No client PC online |
403 | demo | Not available on demo accounts |
429 | rate_limited | Over 10 deposits a minute on this key |
422 | other | Refused before sending (see message) |
Bodies are {"detail": "..."}. 400 - a missing or invalid field
(amount below 0.01 or above 100000, not whole cents, cvc, last4, callback_url, a card number,
not exactly one of session_id / account_id); 403 - not your session
or account; 404 - no account found for the session; 409 -
idempotency_key in flight.