API Reference
Every bet_type code you can send on /v3/place_bet
to place a bet with a bookie promotion, what we call it, which bookies take it
and what it costs in credits.
Base URL: https://api.b337.ai
bet_type defaults to "non_promo" (a plain cash bet). Send one of the codes
below to use a promotion the account already holds. Use
/v3/promo_tokens to see which
tokens an account holds for a race, and
Account Promos to see everything it holds.
Looking for the free hit?
- Racing, Sportsbet:
"bet_type": "lose_100pc_bonus"- Racing, bet365:
"bet_type": "stake_back"(the account must have opted in to the campaign on bet365 first). On a single, racing only.- Sports, Sportsbet and bet365: the SGM free hit (Sportsbet Second Chance, bet365 "IF YOUR SGM LOSES") is an SGM saver. Send
"is_same_event_multi": true,"bet_type": "saver"and"promo_name": "sgm_saver".The grid below shows each one.
What each bookie calls a promo, and the exact JSON to send for it. Find the
bookie and the promo, then copy the fragment into your
/v3/place_bet body.
Neds2nd/3rd cash back
“Bet Back”
"bet_type": "2/3"Free hit, racing
—
“Win or Stake Back”, not bettable yet
SGM saver
“SGM Cover”
Payload in the last card, below
Switch
"bet_type": "2/3"Send the 2/3 half only
Odds / price boost
“Price Boost”
"use_boost": true
Ladbrokes2nd/3rd cash back
“Bet Back”
"bet_type": "2/3"Free hit, racing
—
“Win or Stake Back”, not bettable yet
SGM saver
“SGM Bonus Back”
Payload in the last card, below
Switch
“SWITCH, 2/3 half”
"bet_type": "2/3"“SWITCH, boost half”
"bet_type": "winnings_boost_100pc"Send the half you chose
Odds / price boost
“Price Boost”
"use_boost": true“Odds Surge”
"bet_type": "odds_surge"
Unibet2nd cash back
“Bonus Back”
"bet_type": "2"Placed only if the account holds a MoneyBack token; otherwise refused
2nd/3rd cash back
“Bonus Back”
"bet_type": "2/3"Placed only if the account holds a MoneyBack token; otherwise refused
SGM saver
Saver
Payload in the last card, below
Multi saver
Saver
Once enabled
Payload in the last card, below
bet365Free hit, racing
“Stake back / IF YOUR BET LOSES”
"bet_type": "stake_back"Account must opt in first
Free hit, sports (SGM)
“IF YOUR SGM LOSES”
"is_same_event_multi": true,
"bet_type": "saver",
"promo_name": "sgm_saver"SGM only. A free hit on a sports single is not placeable.
SGM saver
“IF YOUR SGM LOSES”
Payload in the last card, below
Odds / price boost
“Bet Boost / Winnings Boost”
"use_boost": true“Boost card”
POST /v3/place_promo
{"session_id": "...", "promo_id": 123, "stake": 10}
TAB2nd cash back
“Greyhound/Harness Saver”
"bet_type": "2"2nd/3rd cash back
“Race Saver”
"bet_type": "2/3"SGM saver
“SGM Saver”
Payload in the last card, below
Multi saver
“Multi Saver”
Payload in the last card, below
Odds / price boost
“Race Pump”
"bet_type": "boost", "promo_name": "pump"“Bonus Bet Boost”
"bet_type": "boost", "promo_name": "bonus_betboost_25pc"
Sportsbet2nd cash back
“Bet Return”
"bet_type": "2"2nd/3rd cash back
“Bet Return”
"bet_type": "2/3"Run 2nd = win
“2nd = 200% bonus”
"bet_type": "2_200pc_bonus"Free hit, racing
“Second Chance”
"bet_type": "lose_100pc_bonus"Free hit, sports (SGM)
“SGM Second Chance”
"is_same_event_multi": true,
"bet_type": "saver",
"promo_name": "sgm_saver"Sportsbet attaches whichever SGM voucher fits best. If the account holds both, you can't pick the Second Chance one.
SGM saver
“SGM Bet Return”
Sportsbet attaches whichever SGM voucher fits best. If the account holds both, you can't pick the Second Chance one.
Payload in the last card, below
Multi saver
“Multi”
Payload in the last card, below
Odds / price boost
“PowerPlay”
"use_boost": true“PowerPlay, multis”
"bet_type": "sports_multi_boost"
PointsBet2nd cash back
“Run 2nd”
"bet_type": "2"2nd/3rd cash back
“To 3rd”
"bet_type": "2/3"Run 2nd = win
“Run 2nd, You Win”
"bet_type": "2nd_win"SGM saver
Saver
Payload in the last card, below
SGM saver
"is_same_event_multi": true,
"bet_type": "saver",
"promo_name": "sgm_saver"Multi saver
"category": "multi",
"bet_type": "saver",
"promo_name": "multi_saver"Reading the grid
"bet_type": "boost", "promo_name": "bonus_betboost_<N>pc" (for example bonus_betboost_25pc), and TAB's Race Pump as "bet_type": "boost", "promo_name": "pump". Both are refused if the account holds no matching token. A bet_type that itself starts bonus_betboost is refused (see Sends we refuse).| Code | What it is | Racing / sports | Bookies that accept it | What we charge |
|---|---|---|---|---|
non_promo | A plain cash bet. The default when bet_type is omitted. | Both | Every bookie | Cash rate |
bonus | Spend a bonus bet. Send "use_bonus_bet": true and we set this for you. | Both | Bookies where the account holds a bonus bet | Cash rate |
2 | Saver: stake back as a bonus bet if the runner finishes 2nd. | Racing | EV share | |
2/3 | Saver: stake back as a bonus bet if the runner finishes 2nd or 3rd. | Racing | EV share | |
2/3/4 | Saver: stake back as a bonus bet if the runner finishes 2nd, 3rd or 4th. | Racing | Not placeable via the API (see note 1) | n/a |
<2|2/3|2/3/4>_<N>pc and ..._<N>pc_bonus | Percentage savers, for example 2/3_50pc or 2_25pc_bonus: N% of the stake back (as cash, or as a bonus bet with _bonus) on those places. Not placeable via the API: do not send. | Racing | Not placeable via the API (see note 1) | n/a |
2_200pc_bonus | Double saver: 200% of the stake back as a bonus bet if the runner finishes 2nd. | Racing | EV share | |
2nd_win | Paid as a winner if 2nd: the bet is paid out as a win if the runner is beaten into 2nd. | Racing | 10% of stake | |
lose_100pc_bonus | Free hit: if the runner doesn't win, at any finishing position, the stake comes back as a bonus bet. Sportsbet's Second Chance / Bet Return. | Racing | 10% of stake | |
stake_back | Free hit (bet365): bet365's "get your stake back per race if your bet loses". | Racing | 10% of stake | |
switch | Switch: Entain's choice made at bet time. Not a code you send: send the half you chose, 2/3 or winnings_boost_100pc (Neds takes the 2/3 half only). | Racing | Charged as the half you send | |
odds_surge | Odds Surge: bets the better cash price Ladbrokes puts on a named race. Up to $100 a race. | Racing | 10% of stake | |
pump | Odds pump: TAB's Race Pump. Your odds are boosted and the uplift is paid in cash, not as a bonus bet. Needs the account's own pump token. Send "bet_type": "boost", "promo_name": "pump" ("bet_type": "pump" also works). | Racing (TAB also on same-game multis) | 10% of stake | |
bonus_betboost_<N>pc | Bonus Bet Boost: TAB's boost token: win and get N% of your winnings (25, 50, 100) as a bonus bet. Send "bet_type": "boost", "promo_name": "bonus_betboost_<N>pc", never the code as bet_type. Refused if the account holds no matching token. | Racing | 10% of stake | |
price_boost | Price Boost / Odds Boost: a boosted price on the selection. Send "use_boost": true; it is recorded and charged as a normal bet (cash rate). The bet is refused if the runner can't be boosted. | Racing singles | Cash rate | |
boost | Boost: the bookie's boost token, such as Sportsbet's PowerPlay. Send "use_boost": true; it is recorded and charged as a normal bet (cash rate). Sportsbet also accepts "bet_type": "boost", which is recorded as boost and charged 10% of stake. At TAB, "bet_type": "boost" only works with a promo_name (see the pump and bonus_betboost_<N>pc rows). | Racing | Cash rate | |
sports_multi_boost | PowerPlay Multi: Sportsbet's boost on a multi. | Sports multis | 10% of stake | |
winnings_boost_<N>pc | Winnings boost: N% extra on your winnings, for example winnings_boost_25pc. bet365 only: send "use_boost": true and N is read off the account's token; it is charged the cash rate. At bet365 it is also a Same Game Multi boost (for example "NBA +25%"): send the SGM with "use_boost": true; the bet is refused if bet365 offers no boost on that SGM, it has too few legs or its odds are under the offer's minimum. Ladbrokes' only winnings boost is the half of a switch, "bet_type": "winnings_boost_100pc" (see switch). Neds has none. | Racing, Sports SGM | Cash rate | |
promo | bet365 boost cards (Bet Boost / Mega Boost): a pre-built bet at a boosted price. You don't send this as a bet_type. Place the card by id with /v3/place_promo and we record it as promo. | Both | 5% of stake | |
sgm_saver | Same-game multi saver. Not a bet_type: send "promo_name": "sgm_saver" together with "bet_type": "saver" on a same-game multi (is_same_event_multi: true). | Sports | 10% of stake (note 3) | |
multi_saver | Multi saver (Multi Money Back) on a cross-game multi. Not a bet_type: send "promo_name": "multi_saver" together with "bet_type": "saver" and category: "multi". Refused, never placed as cash, on any other bookie. | Sports multis | 10% of stake (note 3) |
Notes
2/3/4 and the percentage savers are not placeable via the API. Do not send them. TAB does not check a token for them and would place a plain cash bet recorded as a promo. Sportsbet takes them only if the account holds the matching voucher and refuses otherwise.stake_back is racing only, and only once the account has opted in to the
campaign on bet365. The cap is the account's own, so it can be lower than
you expect."bet_type": "saver" together with the promo_name: the bet is then
charged 10% of the stake. With promo_name alone it is recorded as a
cash bet (non_promo) and charged the cash rate (see Charges).A bookie not listed for a code doesn't take it. The bet is refused, or the
promotion isn't applied: check the result on /api/bet_status.
Don't assume it was placed as a cash bet.
standard, hedge, middle and arb are accepted in
bet_type but are not promos: the bet is placed and charged as cash.These used to go through as a plain cash bet. They are now refused with
HTTP 400 {"detail": "..."} and nothing is placed, so you can resend the
right code.
| You send | Bookie | Send instead |
|---|---|---|
"bet_type": "switch" | Ladbrokes, Neds | The half you priced: "2/3", or "winnings_boost_100pc" (Ladbrokes only) |
"freecrack" as bet_type, or as promo_name without "bet_type": "saver" | Sportsbet | "is_same_event_multi": true, "bet_type": "saver", "promo_name": "sgm_saver" |
srm_saver in bet_type or promo_name | Any | Not placeable via the API |
"bet_type": "boost" without "promo_name": "pump" or bonus_betboost_*, or any "bet_type": "bonus_betboost_*" | TAB | "bet_type": "boost" with "promo_name": "pump" or "bonus_betboost_<N>pc" |
The sandbox (X-Bet337-Sandbox: 1) returns canned samples and does not run
these checks.
Charges are in credits, taken when the bet is recorded. What a credit costs
in dollars depends on your plan: see
How credits work. The charge follows the bet_type the bet
is recorded with.
| Charge | Applies to | How it's worked out |
|---|---|---|
| Cash rate | non_promo, bonus | A percentage of the stake, set by your rolling 30-day API turnover: 1% under $300k, 0.66% from $300k to $1M, 0.45% at $1M or more. |
| EV share | 2, 2/3 and 2_200pc_bonus, on a racing single | A share of the bet's expected value (EV), priced off Betfair's prices at the moment the bet is sent: 25% on Core, 20% on Plus, 18% on Max and pay as you go. At least 0.03 credits (0.05 on legacy Lite accounts when there is no edge) and at most 10 credits a bet. If the EV can't be worked out (for example the race has jumped) it is 10% of the stake instead. |
| 10% of stake | Every other saver or boost code: 2nd_win, lose_100pc_bonus, stake_back, odds_surge, pump, sports_multi_boost, and TAB's "bet_type": "boost" with "promo_name": "pump" or "bonus_betboost_<N>pc" | A flat 10% of the stake. |
| 5% of stake | promo (bet365 boost cards) | A flat 5% of the stake. |
A boost sent as "use_boost": true carries no bet_type, so it is charged the cash rate.
A switch is charged as the half you send: 2/3 at the EV share, winnings_boost_100pc at 10% of the stake.
Nothing is charged for a bet that never places. See Credits and rates for the current plan figures.