API Reference
Place multiple Same Race Multis on the same race in one betslip, in a single API call. Each SRM is priced separately and TAB returns one bet ID per SRM, but the stack is all-or-nothing up to the confirm: any failure before then aborts every bet in it. Same behaviour as stacking SRMs in TAB's web betslip and clicking "Place all".
Bookmaker support: TAB only. Other bookmakers' APIs don't currently expose a stacked-bet shape; for those, place each SRM via a normal
category: "racing"+is_same_event_multi: truerequest against/v3/place_bet.
POST /v3/stacked_srmis the new home for this endpoint. It uses the same async contract as/v3/place_bet: a200response withstatus: "pending"in ~100ms and acorrelation_id, then pollPOST /api/bet_status(or receive a signed webhook atcallback_url) for the actual stacked-result payload.
target_odds / max_odds and bet ID.If you only want one SRM, use POST /v3/place_bet with category: "racing" and is_same_event_multi: true - this stacked endpoint rejects single-bet requests with a 400.
POST /v3/stacked_srm| Field | Type | Required | Description |
|---|---|---|---|
session_id | string | yes | Active TAB session ID. A session on another book returns 400. |
track | string | yes | Track name (e.g. "Albany"). All bets in the stack must be on this track. |
race_num | int | yes | Race number on the track. |
race_type | string | no | "(R)" (default), "(G)" greyhound, or "(H)" harness. |
date | string | yes | Race date YYYY-MM-DD. |
country | string | no | Optional region code (e.g. "nz"), forwarded to the session. |
random_delay | object | no | Optional client-side delay knob, passed through. |
bets | array | yes | List of SRM specs - see below. Min length: 2. |
callback_url | string | no | If set, the result is POSTed to this URL when ready (http:// or https://). If absent, poll for the result. |
bets[] entry| Field | Type | Required | Description |
|---|---|---|---|
stake | float | yes | Stake for this SRM (positive). |
legs | array | yes | List of leg specs (min 2). |
target_odds | float | no | Floor on combined SRM odds. If this SRM's price is below it, the whole stack is aborted before placement (error_code: "ODDS_TOO_LOW"). |
max_odds | float | no | Ceiling on combined SRM odds (guards against a mis-matched runner). Above it, the whole stack is aborted (error_code: "ODDS_TOO_HIGH"). |
bet_type | string | no | "non_promo" (default) or "bonus" (uses a bonus bet token — see Bonus tokens below; the placed stake becomes the token's face value). |
use_bonus_bet | bool | no | Same as bet_type: "bonus". |
use_boost | bool | no | Apply TAB's odds multiplier if available for that SRM. |
legs[] entry (per SRM)| Field | Type | Required | Description |
|---|---|---|---|
runner | string | yes | Runner name. Matched fuzzily against TAB's race card. |
position | string | no | One of "win" (default), "top2", "top3", "top4". Aliases: "1st"/"2nd"/"3rd"/"4th", "top 2", "place" (= Top 3). Any other value is placed as a Win leg — check your spelling. |
Errors are {"detail": "…"}:
403 "Session is not active" — the session isn't running under this API key (this is also what an unowned session returns).403 "Session <id> is a copy session (copy_session): …" — that is the account's copy session, which takes bets only from a tipster's Send or your own Copy. Use its open session.404 "Session <id> not found" — the session is active but its record can't be found.400 "/v3/stacked_srm is only supported on ['tab'] sessions; …" — the session is on another book.400 "<field> is required for stacked_srm" — track, race_num, date or bets missing.bets length >= 2 → for a single SRM, hit /v3/place_bet with category: "racing" and is_same_event_multi: true instead.bets[i].legs length >= 2.bets[i].stake is positive.Standard v3 async envelope:
Retrieve the result by polling POST /api/bet_status with the
correlation_id, or via webhook if you passed callback_url. Signature
verification, retry behaviour, and status values are identical to every
other v3 endpoint - see the
Async API (v3) guide.
State-mutating - same hazard as
/v3/split_bonus_bet. Once the response lands, the bets are queued for TAB's betslip. Never re-submit on a network blip - re-poll/api/bet_statuswith thecorrelation_idinstead. Persist thecorrelation_idfrom the response immediately, and on any client-side error surface that ID to the user rather than re-firing the request.
result payload| Field | Description |
|---|---|
success | true if at least one bet placed. |
placed | Count of bets that placed successfully. |
failed | Count of bets that failed during confirm. |
results[] | One entry per submitted SRM, in order. bet_id is null on failure; error carries the reason. |
result.success: false with an error (and error_code such as ODDS_TOO_LOW / ODDS_TOO_HIGH / NO_BONUS_TOKEN where one applies), no results. Something failed pre-confirm: runner matching, the target_odds floor or max_odds ceiling on any SRM, bonus-token allocation, or TAB's enquiry/betslip. Nothing was placed.result.success: true with failed > 0. TAB accepted the betslip but rejected one or more bets at placement. Successful bets are placed; failures show in results[i].error.Bonus tokens: each bonus bet in the stack is allocated its own token, serially, before submission. TAB uses the largest token at or under the stake; if there is none, it first splits the smallest larger token and uses a piece. Either way the SRM is placed at the token's face value, which can be less than the
stakeyou sent — read the placedstakefromresults[]. If any bonus bet can't get a token, the entire stack is rejected before placement (no partial bets).
bets[] must be on the same (track, race_num, race_type, date). Different races → use multiple separate calls./v3/place_bet with category: "racing" + is_same_event_multi: true.target_odds / max_odds. If any bet's enquiry/betslip price falls outside its limits, the whole stack is aborted before placement.results[] array from the result as your record of each SRM's bet ID, odds and stake.category: "stacked_srm"POST /v2/place_bet (every category, stacked_srm included) now returns
410 Gone:
Use POST /v3/stacked_srm — same payload minus the
category field, plus optional callback_url.