API Reference
POST /v3/place_betAsynchronous bet placement. Returns 200 with {"status": "pending"} and a correlation_id in ~100 ms; the actual bet result is delivered via polling or a webhook.
correlation_id contract, and has the copy-paste CLAUDE.md snippet for AI assistants. All /v3/* endpoints follow the same model.Important. Use
POST /v3/place_bet(async). The synchronous/v2/place_betis deprecated — it holds the HTTP connection open up to 30s and 504s frequently. Hitting it now returns410 Gonewith a pointer to v3:
X-API-Key: <your-api-key>
Content-Type: application/json
Every request must also include a session_id belonging to the account that
owns the API key.
Response (200 — the bet is queued, not yet placed):
The bookie's own Each Way bet, the same as the Each Way box on its betslip.
market stays "win"; stake is per part, so this $10 each way is
one $20 ticket ($10 win + $10 place). target_odds is the minimum win
price. Leave each_way_type out (or send "pair") for two separate bets
instead, on any bookie. Full rules: each_way / each_way_type below.
It answers 200 pending like any bet. The ticket records as two bets, a
win row and a place row (the place row's bookie_bet_id is the ticket id +
-EWP).
timeout_at is submitted_at + at least 5 minutes (5 min, or
random_delay.max + 2 min if that is longer, capped at 29 min). Keep polling
until then — a bet can legitimately take minutes when the bookie is slow or a
random_delay is set. Poll POST /api/bet_status with
{"correlation_ids": ["…"]}; each entry's status is pending,
completed (result holds the outcome), timeout (no answer by
timeout_at — stop polling and reconcile, don't blindly resend) or
unknown (id never seen, or expired). Each entry also echoes bet_type,
the funding the bet was SENT with (bonus, non_promo, …), so a
replayed idempotency_key reports the original bet's funding, not the
re-send's, and idempotency_released (see Safe retries).
Every entry names what was bet — requested. Each bet_status entry
(and every webhook body, below) carries requested: the bet exactly as we
dispatched it — category, stake, bet_type, your
idempotency_key, the selection (event, market, selection,
line, player, direction, period, epk,
proposition_id, …) and, for a multi / SGM / SRM, a legs list with the
same fields per leg. It is what we sent; result.resolved /
result.legs are what the bookie took, where the bookie reports them.
requested is null for non-bet commands and once the entry expires.
Per-leg prices — board_odds. On a multi / SGM, each
requested.legs entry also carries board_odds (our own latest
cached price for that bookie's selection, read right after the bet was sent)
and board_odds_at (when we scraped that price, so it is normally a
little before the bet was sent, sometimes minutes before; it is not the
time of the read). It is our price, not the bookie's confirmed one: the
bookie can re-price a leg as it accepts the bet. The prices a bookie actually
took per leg are in result.legs where the session reports them (TAB and
bet365 multis); a refused bet365 multi names each leg's price in its error
instead (see Reading a bet365 selections_changed refusal).
board_odds is null where we have no price for that selection; we never
guess. The combined price the bookie took is result.odds.
Pin the race by pk (preferred). Instead of track / race_num /
race_type / date you can send the race's canonical pk
({track}/{num}/{type}/{country}/{date}, as shown on the race spine). The
server resolves it to this bookie's own track spelling and the date-correct
race. Unknown pks fall back to the track fields, so it's safe to send both.
idempotency_keySend a unique idempotency_key (string, 1–200 chars) on every bet. A
re-send with the same key within 48 hours places nothing: it returns the
original correlation_id with "idempotent_replay": true. A duplicate that
arrives while the first is still dispatching gets 409 "idempotency_key in
flight; poll bet_status". The key is scoped to your API key and claimed for the
full 48h — don't reuse one for a different bet.
To be able to retry a bet the bookie turned down under the SAME key, send
"idempotency_release_on_refusal": true with it. When the bookie definitely
refuses the bet (an explicit decline, and nothing that says a bet may be on),
the key is freed and bet_status reports "idempotency_released": true
for that correlation_id; the next send with the key places a new bet.
Anything less certain (a timeout, a success: false with no decline code,
placement_uncertain) keeps the key: a re-send only replays. So does any
Betfair order, and a bet your bot was sent twice after a reconnect. So only
re-send after you have seen idempotency_released: true. With the flag the
key is your only de-dupe, so it is held until idempotency_event_start + 24h
(48 hours to 8 days; send the event's start), and if we cannot check it at
that moment the answer is a 503 with nothing sent: send the same key again.
The hold follows the event: a re-send that finds the key held extends it to
that re-send's idempotency_event_start + 24h, so send the CURRENT start
(a postponed event keeps its key). Once the hold is over, a key that one of
your placed bets is on record under is still refused, with 409
"idempotency_key already placed" and nothing sent. A Betfair order never
appears among your bets, so its key is kept on record for 30 days after it
was sent instead.
tagsSend tags (up to 10 strings, each ≤50 chars) to label a bet with your own
strategy or signal source, e.g. "tags": ["model-a", "late-mail"]. The tags
are stored on the bet — rejected bets included — and echoed on the response and
bet_status. On the dashboard's API page, a Bet Tag filter appears
once you have tagged bets, so the P/L graph, calendar, stats and bet list can
be split per tag.
tipster + bet_typeTwo shortcuts over tags for the common splits:
tipster (1–42 chars) is stored as a tipster:<name> tag; bet_type
additionally accepts the tracking labels "standard", "hedge",
"middle" and "arb" (the plurals "middles"/"arbs" are accepted
and normalised to the singular), stored as a bet_type:<label> tag. All
count toward the 10-tag cap. A tracking bet_type never changes how the bet
is placed or charged — it is a cash bet
exactly as if the field were omitted (send use_bonus_bet as usual for a
bonus-funded bet). On the dashboard's API Sports page, a Tipster
dropdown and a Standard / Hedge / Middle / Arb Bets filter appear once
matching bets exist — Standard Bets excludes every special kind (bets
without the field count as standard), so hedge, middle or arb legs can be
split out when reviewing EV performance — and
the CSV export gains Tipster + Bet Kind columns.
callback_urlWith a public http(s) callback_url we POST the result once it lands:
Headers: Bet-Correlation-Id, Bet-Trace-Id (only if you sent
trace_id) and Bet-Signature: sha256=<hex> — HMAC-SHA256 of the raw
body keyed with your API key; verify it before trusting the body. We try 3
times (waiting 1s, then 4s), 10s per attempt, and never follow redirects. No
webhook is sent on a timeout — if timeout_at passes with no POST, poll
bet_status to reconcile.
Back a runner to WIN on bet365's in-play market: "market": "in_play"
on a racing single. Once the race is off this is bet365's in-running Win Only
market; before the off it is the pre-race in-play market. Send it the moment
you want the bet.
target_odds is your go / no-go price. The bot reads bet365's live
in-play price for the runner and places only if it is at or above
target_odds; otherwise nothing is placed (odds_moved).event_suspended): send
again once it reopens.market_not_carried).auto_lay).422 and nothing is placed.POST /api/bet_status (or use callback_url) exactly as for a
single bet above.Set is_same_event_multi: true and pass a legs array. runner /
market move into each leg.
For stacked SRMs (TAB only) see the dedicated
POST /v3/stacked_srm endpoint.
A multi across different races or matches (double, treble, …). Use
category: "multi" and put every selection in legs[]; there is no
top-level track / event / selection. Same async contract as a
single: 200 with status: "pending" + a correlation_id.
Always send
leg_kindon every leg —"sport"or"racing". A leg with noleg_kindis treated as racing unless it carries bothsportandeventand notrack. A sports leg read as racing is refused withfeature_not_supportedand a racing-only message (e.g. "multi legs are win/place only", "racing multi legs are fixed-price WIN only").
| Leg field | Applies to | Notes |
|---|---|---|
leg_kind | every leg | "sport" or "racing". Send it — see the note above. |
selection / runner | every leg | Required. selection on a sports leg, runner on a racing leg. A leg identified by proposition_id alone is rejected (400). |
sport, competition, event | sports | Same meaning as a sports single (v1 fields). |
market, direction, line, player | sports | Same meaning as a sports single. |
track, race_num, race_type, country, date | racing | Same meaning as a racing single. |
market | racing | "win" or "place". Some bookies take win only on a multi leg; tote and each-way legs are refused, never placed as something else. |
odds | sports, optional (recommended on bet365) | The leg's current price as a decimal number, e.g. "odds": 1.91 (not a fraction). It is a seed only: the price offered to the bookie as the leg goes onto its slip, never a per-leg floor or tolerance. The book quotes the price it will actually take, and the check is target_odds / max_odds on the combined price. On bet365 send bet365's own current price for the leg: a sports leg with no odds is offered at evens (2.00) and bet365 re-quotes it. bet365 racing legs are priced from our own data. |
target_odds / max_odds apply to the combined price. Multi savers
(promo_name: "multi_saver") are available on Sportsbet and TAB, and on
Unibet (sports legs, its Multi Insurance) once enabled for the latest client;
elsewhere they're refused rather than placed as an unprotected cash multi.
For a multi inside one game use the sports SGM
(is_same_event_multi: true) instead.
Which bookies? Most connected bookmakers take category: "multi" —
bet365 included. Not every one: the BetEngine brands (GRSBet, Laserbet)
have no multi rail and refuse a multi by name. bet365 has extra limits because its rail only places
ticket shapes that have been verified against real captures (anything else is
refused up front, never guessed):
Betfair is the one exception: the exchange has no multi product.
Common shape mistakes — both are refused, nothing is placed:
market: "multi" is not a multi — market names a market on one
event, so the bookie reports "'multi' not offered". The multi lives in
category, not market.legs[] on a category: "racing" / "sports" request without
is_same_event_multi: true is refused with a 400 naming the three
valid shapes. (Previously the legs were silently ignored and the top-level
selection was placed — or priced, on /v3/price and /v3/price_check —
as a single with the full stake.)Reading an odds_below_target refusal. "Multi odds too low: live X <
floor Y" means every leg was found and accepted onto the bookie's slip — X
is the bookie's own current prices multiplied together (your per-leg
odds are seeds only; the book quotes what it will actually take) and Y is
the target_odds you sent. It almost always means your prices were
stale and the market moved. Nothing is placed. On bet365 the message also
lists each leg's live price, e.g. (legs: Team A @ 1.60, Team B @ 2.50), so
you can see which leg shortened; other books give the combined price only.
bet365 re-pricing a leg at confirm is already accepted — no flag needed.
When bet365 changes a leg's price as the multi is confirmed, the bot re-checks
bet365's new combined price: if it is still ≥ target_odds (and ≤
max_odds, if sent) the multi is re-confirmed once at the new prices and
placed; if not, it is refused as odds_moved "Multi odds moved at
confirm: X < floor Y (re-quoted legs: …)". A changed price is only taken
when you sent a target_odds.
Reading a bet365 selections_changed refusal. "HTTP 14:
mi=selections_changed — multi confirmation refused: …" is therefore not
a price move that cleared your floor. From the client build after 1.8.91 the
text right after the colon says why, then "legs at confirm: Leg A @ 2.55,
Leg B @ 1.74 (was 1.71), …" — each leg's price as bet365 showed it at
confirm, in your legs order, with (was X) on any leg whose price
changed (suspended / not in bet365's answer where that applies).
The reasons you will see: no leg's price moved (bet365 refused at the
same prices), refused again at bet365's new prices (the one re-confirm
was refused too), 2nd try, sent without the line (a threshold player
prop such as 1+ Assists was re-sent once without its line), or no target_odds sent, so a new price is never taken. Nothing is placed. The
[confirm p1|p2 … L1 od=… go=… …] tail is a per-leg fingerprint for
support; keep it when you report one.
bet365: send each sports leg's current price as odds. bet365 checks
every leg's price as the leg goes onto its slip. A sports leg sent with no
odds is offered to bet365 at evens (2.00), and when bet365's price differs
it answers by re-quoting that leg. Up to and including client 1.8.91 a
re-quoted sports leg can be refused before anything is placed with
"[schema_changed] multi leg <leg>: addbet answer did not carry this leg
(fi/pi/sa), so the slip cannot be named". From the client build after 1.8.91
the bot re-adds that leg once at bet365's own price and carries on; your
target_odds floor still applies to the combined price, and a leg bet365
still will not take is refused exactly as before. Sending each leg's current
bet365 price as odds usually avoids the re-quote altogether. Racing legs
are priced from our own data and are unaffected. Nothing in the payload
changes for quarter-line Asian handicaps (e.g. line: -1.25): they are
normal multi legs.
Quoting a multi before placing. POST /v3/price accepts
category: "multi" + legs[] (same submit-then-poll flow), but only
sessions that can quote a multi answer: TAB and Sportsbet today. Other
bookies — bet365 included — reply that the session does not support it;
on those, target_odds on the bet itself is your pre-place protection.
/v3/price_check has no multi mode — it will point you back to
/v3/price.
A same-game multi can itself be one leg of a category: "multi"
ticket ("SGM+") — e.g. two SGMs from two different games combined as a
double. An SGM block is a leg carrying leg_kind: "sgm", the game's
event (or an epk), and its own inner legs[] — the same leg
objects a sports SGM takes (each needs market + selection; at least
2 per block; a block cannot contain another multi). The block's top-level
selection is just a label for the receipt and is never resolved. Works
with any sport/league the book's own SGM builder sells — NBA included.
Which bookies, and in what shape. Each book's rail only places ticket shapes verified against a real accepted bet; anything else is refused up front, never guessed:
| Bookie | Accepted SGM+ shapes |
|---|---|
| Sportsbet | SGM blocks (across different games) and racing win legs beside them. A plain sports leg beside a block, a place racing leg: refused. Lined legs inside a block are fine (sent as the SGM single does). |
| TAB | SGM blocks and plain legs mixed on one slip. |
| bet365 | A double of exactly two SGM blocks and nothing else — no plain leg beside them, no treble, no lined/handicap leg inside a block, cash only. |
| TABtouch, Unibet, Picklebet | SGM blocks only (any count) — no plain or racing leg beside a block. |
| BetRight, Neds, Ladbrokes, Betr, PointsBet | plain sports legs + one SGM block; racing legs beside a block refused. |
| BetNation / BetDeluxe and the other Blackstream brands | plain legs (racing or sports) + one SGM block. |
| The BetMakers and PuntersTech brands | SGM blocks only (any count). |
| Everyone else | 400: "multi leg N is a same-game multi; no bookie rail can place an SGM inside a multi yet — place it as its own bet". |
Rules that hold everywhere:
400 on every book: the multi
Money-Back terms cover non-Same-Game-Multi bets only, so the ticket would
place and simply not be covered. Treat SGM+ as cash only — a bonus /
boost intent on the ticket, a block or an inner leg is refused rather than
silently placed as cash.POST /v3/price cannot quote an SGM+ ticket (the multi
quote rail prices racing legs only), so target_odds on the combined
price is your pre-place protection; the book's own quoted SGM prices are
multiplied with the plain legs' prices and checked against it before
anything is staked.Add combo to a category: "multi" request with exactly 3 legs to
place every line of the combo instead of one accumulator. Leave
combo out for the plain multi (unchanged).
combo | Lines (bets) | What it is |
|---|---|---|
"doubles" | 3 | every pair of legs as a double |
"trixie" | 4 | the 3 doubles + the treble |
"patent" | 7 | the 3 singles + the 3 doubles + the treble |
stake is PER COMBO (per line). The bookie charges stake × lines,
so "stake": 1.00 on a Trixie costs $4.00.target_odds is still checked against the product of all three legs (the
treble price).bet_type, a
promo_name, use_boost / betboost, or a same-game-multi leg is
refused (400).400 whose detail starts with
combo_not_supported:. Nothing is placed.combo on
anything other than exactly 3 legs is refused up front and nothing is
placed.stake is the total outlay (stake × lines), alongside
combo, combo_lines and stake_per_combo.Dabble's Pick'em is 2 to 12 player over/under picks that must all
win, paid at Dabble's own fixed multiplier for that many picks (not the
legs' odds multiplied together). It is sent like a multi, on a Dabble
session, with bet_type: "dfs-all-in". That bet_type is what makes it
a Pick'em; without it the same legs go to Dabble's ordinary multi.
Each leg is placed by Dabble's own ids, never by name:
| Leg field | Notes |
|---|---|
fixtureId | Dabble's fixture id: the site_event_id of the game on a GET /v3/markets answer for bookie=dabble. |
marketId, selectionId | Dabble's proposition_id on that answer is "<marketId>:<selectionId>". Split it on the :. Pick a row Dabble sells in Pick'em (its Pick'em rows are priced 2.00 both sides). Where Dabble sells the same pick as an ordinary bet at the same line, /v3/markets lists only the ordinary row, and Dabble can refuse that row as a Pick'em leg. |
selection | Required, a label for your receipt only (the server needs one on every multi leg). It is never used to find the pick. |
leg_kind | "sport". |
Rules:
sport +
event, epk, site_event_id and proposition_id off the
legs. With those on, the server resolves the leg as an ordinary multi leg,
and two picks from the same game are then refused as "a plain multi
cannot combine two selections from one game". Pick'em takes picks from one
game or several.target_odds out. On a Pick'em it is not a floor: it is
sent to Dabble as the exact multiplier. Without it, the bot works out the
multiplier itself from the number of picks, and from client 1.9.02 it also
adjusts for picks that are not priced at 2.00 (Dabble's "adjusted picks").
Dabble checks the multiplier before the bet is placed and refuses the
ticket if it disagrees (for example on correlated picks). Nothing is placed
then.400 starting
bonus_not_supported:. Do not send skip_if_no_promo./v3/price and /v3/price_check cannot price a Pick'em.stake is capped to Dabble's own max for the ticket if you ask for more.
The result's odds is the multiplier Dabble booked.category: "racing_futures"Melbourne Cup, Golden Slipper and other races BEFORE the day are a separate
category — not "racing" (a future has no pk, track or race number)
and not "sports":
Copy every id from GET /v3/races/futures/{futures_id}. Win and Place
singles only, cash only; a book not yet switched on answers 403 racing futures betting is not enabled for <book>. Discovery, the eight markets and
their terms, and every refusal:
Racing Futures.
category: "multi" with bet_type: "pickem"Dabble's all-in player-prop coupons (2 to 12 legs, fixed multiplier, every leg
must win) are placed as a multi with bet_type: "pickem", from a Dabble
session. Each leg carries a selection label plus the fixtureId,
marketId and selectionId copied from GET /v3/sports/pickem. See
Dabble Pick'em.
Exacta, Quinella, Duet, Trifecta, First 4 and the multi-race pools (Quaddie,
Treble, Big 6, …) are a separate category — category: "exotic", with
legs that are RACES rather than selections, and no price at all. See the
Exotics tab above.
| Field | Type | Required | Notes |
|---|---|---|---|
session_id | string | ✅ | Must belong to caller's API key and be active. |
category | "racing" | ✅ | Constant. |
pk | string | preferred | Canonical race id {track}/{num}/{type}/{country}/{date}. When sent, track / race_num / date become optional. |
track | string | ✅ (unless pk) | e.g. "Flemington", "Randwick". |
race_num | int | ✅ (unless pk) | Race number. |
race_type | string | optional | "(R)" thoroughbred (default), "(G)" greyhound, "(H)" harness. |
country | string | recommended | Region code — "au", "nz", "gb", "us", … Send it together with date and we resolve the exact race against our race spine and match the bookmaker's exact track naming — this disambiguates same-named tracks across regions and days. Omit it and we fall back to looser name matching. |
date | string | ✅ (unless pk) | YYYY-MM-DD — the Australian (AEST) racing day the race jumps, which for overseas night meetings (HK, UK, US) differs from the meeting's local date after midnight Sydney time. Supply it (with country) so we never match the wrong day. If the date you send names no race, we also try the next day, so sending the meeting's local date for a race jumping after midnight still resolves. |
runner | string | single only | Runner name as the bookie lists it. |
market | string | single only | "win" or "place". On bet365 also "top2", "top3" or "top4": the runner to finish in the first 2, 3 or 4, on bet365's own Top Finish markets (target_odds is checked against that Top N price; cash only). Any other bookie, or a bot older than 1.8.84, is refused with 422 and nothing is placed. Also on bet365, "in_play": a win bet on bet365's in-play market, the in-running Win Only market once the race is off (AU gallops reopen it about 15 seconds after the jump; harness and greyhounds stay suspended), else the pre-race in-play market. target_odds is checked against the live in-play price before anything is placed; cash only, win only. Refused, nothing placed, when the race or runner is not in bet365's in-play list (market_not_carried) or the market is suspended (event_suspended). Any other bookie, or a bot older than 1.8.85, is refused with 422. "each_way" is not a market and will 400 — send "win" with each_way: true (add each_way_type: "native" for the bookie's own one-ticket Each Way on Sportsbet / bet365). |
is_same_event_multi | bool | for SRM | If true, supply legs[] instead of runner/market. |
legs | array | for SRM | [{ runner, market }, …]. On bet365 each leg's market is "top2", "top3" or "top4" (no win leg), any number of legs bet365 accepts for the race; target_odds floors the combined price bet365 quotes, checked before anything is placed. |
stake | number | ✅ | Dollars. |
target_odds | number | optional (recommended) | Floor — bet rejected below this. |
max_odds | number | optional | Ceiling — bet auto-rejected if the live matched price is above this. Guards against wrong-line / wrong-runner matching. Omit / null = no ceiling. Must be ≥ target_odds. |
on_max_stake | string | optional | bet365 only (every other bookmaker already refuses an over-max stake in full). "cap" (default): when bet365 names a maximum below your stake, the bet is placed once at that maximum (stake_capped_to_max: true). "reject": nothing is placed and the refusal carries bet365's maximum in max_stake, so you can resend a round stake. |
cap_round_down | number | optional | bet365 only. When the stake is capped, round the capped stake down to a multiple of this (e.g. 5: a $133.33 maximum places $130.00). Never places more than bet365's maximum; if rounding leaves less than $0.10 nothing is placed (stake_above_max). The success result carries max_stake (bet365's maximum) beside the stake booked. Ignored when on_max_stake is "reject". |
auto_lay | bool / object | optional | Racing singles only. Once the bookie confirms, hedge the bet with a Betfair LAY. true uses defaults, or an object: target_conversion (bonus bets, 1–100), max_acceptable_loss (cash, 0–99 % of stake), commission_pct, take_bsp, keep_in_play, round_to_nearest_tick. Needs a Betfair session on the same PC. |
use_boost | bool | optional | Apply an odds boost if available. |
betboost | bool | optional | Apply a boost opportunistically: attach one if the bookie offers it, otherwise place the bet unboosted. use_boost is strict and refuses a bet it cannot boost. |
prebuilt_boost | bool | optional | bet365 racing Win singles only. Place bet365's pre-built race-card Bet Boost banner price (a fixed boosted Win price on one runner, e.g. 3.00 boosted to 3.50). Strict: placed at the banner price or not at all; if the banner is no longer on bet365's card for that runner the bet is refused with odds_moved and nothing is placed, never at the ordinary price. Only the JSON true turns it on. Refused with HTTP 400 (nothing placed) on any other bookie, on place / top-N / in-play / extra markets, each-way, multis and legs, use_bonus_bet, use_boost, betboost, promo_name, or a bet_type other than non_promo (bet365 allows one offer per bet, cash only). Needs a bot on a release that forwards the flag, or it is refused (400). target_odds and max_odds are judged against the banner price. A racing Price Check on a bet365 session shows the banner price as boost_price (absent when there is no banner). |
use_bonus_bet | bool | optional | Use bonus-bet balance. |
promo_name | string | optional | Specific promo to attach. |
skip_if_no_promo | bool | optional | If true, reject the bet when the promo isn't applicable instead of placing without it. |
callback_url | string | optional | Public http(s) URL for a signed result webhook (see Webhooks above). A private / loopback host is refused with 400. |
idempotency_key | string | recommended | 1–200 chars. A re-send with the same key within 48h places nothing and returns the original correlation_id with idempotent_replay: true; an in-flight duplicate gets 409. |
idempotency_release_on_refusal | boolean | optional | With an idempotency_key: true frees the key when the bookie DEFINITELY refuses the bet (an explicit decline such as insufficient funds, a price move or a closed market, with nothing that says a bet may be on), so the same key can be sent again. bet_status then says idempotency_released: true. Any other answer keeps the key, and so does a Betfair order (never freed) and a bet your bot was sent twice after a reconnect. Such a key is held until idempotency_event_start + 24h (at least 48h, at most 8 days; 8 days without a start), a re-send that finds it held extends it to its own start + 24h (a postponed event), a key a placed bet of yours is on record under is refused with a 409 even once the hold is over, and a moment where we cannot check it is a 503 with nothing sent. Only the JSON boolean true turns it on. |
idempotency_event_start | string | optional | ISO-8601 start of the event the bet is on. Read only with idempotency_release_on_refusal: how long the key is held. |
trace_id | string | optional | Your own id (≤200 chars), echoed on the response, bet_status, the webhook body + Bet-Trace-Id header, and stored on the bet. |
source | string | optional | Free-form label (≤200 chars) for where the bet came from; stored on the bet. |
tags | string[] | optional | Up to 10 labels (each ≤50 chars) for splitting performance by your own strategies/sources. Echoed on the response and bet_status, stored on the bet (rejected bets included), and filterable on the dashboard's API page (Bet Tag filter). |
tipster | string | optional | Tipster name (1–42 chars). Stored as a tipster:<name> tag (counts toward the 10-tag cap) and surfaced on the dashboard's API Sports page as the Tipster filter + CSV column. |
bet_type | string | optional | Besides the promo values (non_promo / bonus), the tracking labels standard, hedge, middle and arb are accepted (middles/arbs normalise to the singular): stored as a bet_type:<label> tag while the bet itself is placed and charged as a normal cash bet. The dashboard's API Sports page gains a Standard / Hedge / Middle / Arb Bets filter + CSV column, so those legs can be split out when reviewing EV performance. Combine with use_bonus_bet for a bonus-funded leg. |
execute_at | ISO 8601 | optional | Schedule the bet: the session holds it and places it at this time (10 s – 24 h ahead). The correlation_id completes straight away with {"success": true, "scheduled": true, "execute_at": …}; cancel with POST /v3/cancel_scheduled_bet. |
random_delay | object | optional | { min, max } — seconds the client waits before placing, drawn as random.uniform(min, max). Floats allowed (e.g. 0.5). min defaults to 0; the delay is only applied when max > 0 (omit / max: 0 = no delay). Also stretches timeout_at. |
cap_stake_to_balance | boolean | optional | New. Default false; only the JSON boolean true turns it on (the strings "true" / "false" do not). When on and the account's last confirmed cash balance is below stake, the bet is placed at that balance rounded down to whole dollars (stake 400 on an account with $300.40 is placed at $300). A stake the cash already covers is never changed. Use it when one bet is fanned out across several accounts and some cannot fund the full stake; without the flag the bookmaker refuses those legs as insufficient funds. Bonus balance is never counted, and the flag is ignored for bonus / token-funded bets, exotics and Betfair exchange orders. An each-way bet is capped at half the balance (both parts are staked), and a Doubles / Trixie-style combo at the balance divided by its number of lines. If the balance is unknown (no recent confirmed reading) the bet is sent at the full stake, as without the flag. If the capped stake would be under $1 the request is refused with HTTP 422, detail.outcome_code insufficient_funds, and nothing is sent to the bookmaker. The result then carries requested_stake (what you sent) and stake_capped (boolean); stake is the amount actually placed. TAB fixed-odds stakes are also placed on a $0.50 step, which whole dollars always satisfy. |
Every error body is {"detail": "…"}.
| Status | detail | Meaning |
|---|---|---|
| 400 | "each_way is not a market - send market='win' with each_way=true" | Racing: each-way is not a market value. Send market: "win" with each_way: true (two bets, win + place). For the bookie's own one-ticket Each Way (the betslip's Each Way box on bet365 and Sportsbet), add each_way_type: "native" (see each_way / each_way_type below). |
| 400 | "<field> is required for racing single" (or … for sports single, … for sports SGM) | A required field is missing. |
| 400 | "callback_url must be a public http(s) URL" | The webhook URL is not a public host. |
| 400 | "combo_not_supported: …" | A combo multi sent to a session that can't place one (Sportsbet on client 1.8.72+ only). Nothing was placed. |
| 403 | "Betting is not enabled on this account." | This API key can't place bets. |
| 403 | "Session does not belong to user" | The session_id isn't under this API key's account. |
| 403 | "Session is not active" | The session isn't running / registered (or is outside its scheduled hours — the message then says so). |
| 403 | "Session <id> is a copy session (copy_session): …" | The session_id is the account's COPY session. Copy sessions take bets only from a tipster's Send or your own Copy on the Tipping pages. Place the bet on the account's open session (GET /v3/sessions lists open sessions only). Nothing was placed. Also returned by /v3/place_promo, /v3/stacked_srm, /v3/split_bonus_bet and a named session_ids entry on /v3/place_bet_strategy. |
| 503 | "We can't check session <id> right now. Try again in a minute." | Whether the session is a copy session couldn't be read, so nothing was placed. Retry. |
| 404 | "Session not found" | Unknown session_id. |
| 409 | "idempotency_key in flight; poll bet_status" | A bet with this key is still dispatching. |
| 409 | "idempotency_key already placed: a bet under this key is on record, so nothing was sent. Check My Bets." | Only with idempotency_release_on_refusal: the key's hold is over but a bet of yours under it is on record (placed or settled, not refused; a Betfair order for 30 days after it was sent). Nothing was sent. |
| 409 | "bonus_already_sent: …" | Only from the Terminal's own Bonus screen and slips: a bonus bet on a selection (or the same bet re-listed by the bookie under another id) that the Bonus screen already sent. Nothing was sent; a cash bet still goes. |
| 410 | "POST /v2/place_bet is deprecated — use POST /v3/place_bet instead." | You hit /v2/place_bet. Migrate. |
| 422 | "market 'in_play' (In-play) is bet365 only; nothing was placed" / "In-play needs bot version 1.8.85 or newer, …" | Racing market: "in_play" sent to a non-bet365 session, or to a bot older than 1.8.85. Nothing was placed. |
| 422 | "epk did not resolve to a known event; supply event/sport/competition or a valid epk" | Sports: the epk isn't on the tree. |
| 422 | "<bookie> is a racing-only bookie and has no sports betting surface; …" | Sports bet sent to a racing-only session. |
| 422 | "period_id_not_verified: …" | bet365 sports: you sent a period (a half, quarter or period) and the proposition_id is not that period's row for your selection, so it is refused rather than matched by name. Send the id of the row for that period, or the correct period (no period means full game). Nothing was sent. |
| 429 | "Back-off: the bookie refused this account's recent bets on this selection … Retry in Ns. …" | The bookie refused this account on this selection (or SGM event) repeatedly; honour the Retry-After header. Other accounts / selections are unaffected. |
| 429 | "bet365 moved this selection to <line> … Retry in Ns or send the current line." | A bet365 sports single: bet365 refused this exact site_event_id + selection id + line as line_moved within the last 5 minutes, for any account. The detail names the line bet365 now states: send that line, or honour Retry-After. A different line on the same id goes out. Nothing was sent. |
| 503 | "Client … is in a restart hold window — command not dispatched" / "Client not connected (no subscribers to SSE channel)" | Your bot is restarting or offline. Nothing was sent; retry when it's back. |
| 503 | "Not dispatched: the idempotency store is unavailable. Send the same key again." / "Not dispatched: the bet record could not be checked. Send the same key again." | Only with idempotency_release_on_refusal: we could not check the key for a duplicate, so nothing was sent. Send the same key again. |