What the settlement API does
You hold a list of bets. You want to know which ones won. The settlement API answers that in two calls:
You send the event, the market, the side and the line, the same four things you already get from
/v3/odds. We send back won, lost, void, half_won or half_lost.
It covers 172 markets in 21 sports: moneyline, spreads and Asian handicaps, totals, regulation-time lines, both teams to score, double chance, draw no bet, half-time markets, tennis games and sets, volleyball sets, esports maps, football corners, bookings and goal order, and player props in basketball, baseball, ice hockey and American football.
One rule runs through all of it. We only grade a bet when the stored result proves the answer. If something is missing or does not add up, you get ungradeable with a reason, never a guess.
Quick start
1. Check what happened
p1 to pN, plus ft, ot and ap where the result has them, whatever source the result came from. ft, ot and ap are running totals after regulation, overtime and a penalty shootout, and the headline score never includes the shootout. See Period Scores.
Every id you send gets an answer. A cancelled match comes back with "status": "cancelled". An id we have never seen is listed in notFound.
If a fixture is re-issued (for example with home and away corrected), the old event is cancelled and replacedBy points to the event to use. Its settlement is cancelled and final at once, every grade on it is void with reason event_cancelled, and both carry replacedBy, so you can grade the bet again on the new event.
2. Grade your bets
basis shows you the score we used.
Grades come back in the order you sent the selections, and ref is echoed so you can match them to your own records. You can send up to 50 selections in one request, on as many events as you like.
How to describe a bet
A selection uses the same fields as an odds row from/v3/odds. If you stored the market, line, label and side when the bet was placed, send them back unchanged.
Market names are matched exactly, apart from upper and lower case.
Corners Totals is not Totals, and Spread HT is never graded on the full-time score. A name we do not recognise comes back as unsupported_market. We never pick the closest match.
The handicap is always the home team’s. If the row says
Spread with hdp: -1.5 and you backed the away team, send "side": "away" with "hdp": -1.5. We work out that your side is +1.5.Reading the answer
reason is null for won, lost, half_won and half_lost. It is always filled in for void, pending and ungradeable.
When is a result final?
Every answer carriesfinal. Read it as “you can stop checking”.
Scores are sometimes corrected in the first hours after a match. We check each result against the official one, and final turns true once that check is done, or 48 hours after the match ended.
A simple loop that works:
- Grade your open bets.
- Pay out or settle on any answer you are comfortable with. Most products wait for
final: true. - Keep the selections where
finalwasfalse, and send them again later. Once a minute is the most often you need to.
final on each grade, not on the event. An event can be final while a player prop on it is still awaiting_stats.
A cancelled event becomes final 48 hours after its scheduled kickoff. If the match is rescheduled later, the event goes back to
pending under the same event id. Whether a bet you already voided stays void is your rule to set; many bookmakers void a match that is not played within 48 hours.How bets are settled
These are the rules this API applies. They follow common bookmaker practice, but books differ on details, so check them against your own terms.Which score counts
- Football, futsal, handball, rugby. Every market settles on regulation time. In football that is 90 minutes plus stoppage time. Extra time and penalty shootouts never count.
- Basketball, American football, baseball, ice hockey.
ML,Spread,Totals, team totals,Odd/EvenandBoth Teams To Scoreinclude overtime and extra innings.3-Way Result,Double Chance,European HandicapandDraw No Betsettle on regulation time. So doTotals Regulation,Spread Regulation,Team Total Home RegulationandTeam Total Away Regulation: 60 minutes in ice hockey, four quarters in basketball and American football, nine innings in baseball. - Quarters and periods.
1Qto4Qand the hockey period markets settle on that quarter or period alone, so overtime never counts towards4Qor3rd Period. - Men’s US college basketball. It is played in two halves: regulation time is both halves, half-time markets settle on the first half, and
1Qto4Qare not graded. Women’s college basketball plays four quarters like other leagues. - Ice hockey correct score settles on the 60 minutes, like
3-Way Result. - Ice hockey shootouts. The shootout winner gets one goal added. A game that is 2-2 after overtime and won in a shootout is a 3-2 win for totals and handicaps too. The
Regulationmarkets ignore overtime and the shootout, so for them a game that is 2-2 after 60 minutes stays 2-2. - Tennis, volleyball, table tennis, badminton, padel. The match score is sets. Esports is maps. Darts and snooker use the match score. MMA and boxing use the winner. In cycling,
MLis the head-to-head between two riders: the one who finished ahead wins, and a stage with no rider ahead comes backincomplete_score. Set markets such asML 2nd SetorSpread 1st Setsettle on that set alone: games in tennis, points in volleyball. A set that was never played, like a fifth set after a 3-0 win, comes backincomplete_score.
Half lines and quarter lines
A whole-number line can land exactly, and then the bet isvoid with reason push.
A quarter line (-0.25, 2.75) is two bets at the lines either side. Home -0.75 when the home team wins by one is half on -0.5 (won) and half on -1 (pushed), so the answer is half_won.
Ties on the moneyline
3-Way Result always has a draw, so a level score means draw wins and both teams lose.
MMA and boxing are the exception to both rules. We store the winner of a fight, and a result with no winner could be a draw or a no contest. Those bets come back incomplete_score, whatever tieRule says.
ML depends on the sport:
In sports such as rugby and Aussie rules, some bookmakers offer the moneyline with a draw price and some without. We cannot know which kind your bet was. Send
"tieRule": "lose" if the draw was a separate outcome at your book, or "tieRule": "void" if stakes are returned. Without it you get ambiguous_tie, and only when the score really was level.
Cancelled and postponed matches
Every bet on a cancelled event comes backvoid with reason event_cancelled. Postponed and abandoned matches are usually reported as cancelled too. A match that never gets a result and is never marked cancelled stays pending with reason awaiting_result, and turns ungradeable with reason result_unavailable 72 hours after kickoff. That includes a market that was already decided when a match was abandoned, such as over 0.5 goals after a goal had been scored.
Tennis
We grade a tennis match when the stored set scores show that it was played to the end: the winner has the sets needed, and every set is a finished set. If a player retires or gives a walkover, the bet comes backincomplete_score and you apply your own retirement rule. A few tennis results arrive without game scores for each set. Those also come back incomplete_score.
Some bookmakers list the games handicap and the games total under plain Spread and Totals. A set score can never reach those lines, so we read them as games. The sets the winner needed show the format: in a best-of-three match a Spread handicap larger than 2 in either direction (for example -2.5) or a Totals line above 3 is graded on total games, and in a best-of-five match the same holds above 3 and 5. basis.scope then says games. Lines inside the sets range are graded on sets. In volleyball, table tennis, badminton and esports, a plain Spread or Totals line outside the sets or maps range is a points or rounds line, and it comes back incomplete_score. In esports the winner’s maps show the series length, so in a best of one a -1.5 is not a maps line. A volleyball Team Total Home or Team Total Away counts the sets that team won, so lines up to 3 are graded and higher lines (points) come back incomplete_score. Map Handicap and Total Maps are always graded on maps.
Per-map handicaps and totals, such as 1st Map Total Rounds or 2nd Map Handicap, are graded on the score inside that map. It counts rounds in Counter-Strike and kills in League of Legends and Dota 2; other games have no map score, so these markets come back unsupported_market there. A plain map handicap is the kill handicap. In Counter-Strike, a Total Kills line of 40 or less is a rounds line and is graded on rounds, and a plain Map Handicap is not graded, because bookmakers list both kill and round handicaps under that name. Overtime rounds count. Map scores land a few minutes after the match and are not stored for every match; until one is, the answer is incomplete_score, and it stays non-final until the event itself is final. basis.scope says map_1 to map_5.
Spread (Games) and Totals (Games) add up the games in every set. A match decided by a match tie-break is not graded on games markets, and the set it was played in is not graded on its set spread, total or correct score; its set winner still is.
Corners, bookings and first team to score
These are football only and are graded from post-match statistics. They are ready about 30 minutes after full time. Until then the answer ispending with reason awaiting_stats.
- Corners count each team’s corners.
- Bookings use booking points: a yellow card is 1, a red card is 2, and a second yellow that becomes a red adds 2 more.
- Totals Cards counts the cards shown to players. Bookmakers differ on whether a red card or a second yellow counts as one card or two, so it is only graded when the match had neither. Otherwise it comes back
stats_unavailable. - First Team To Score follows the scoreboard, so an own goal counts for the team whose score went up. A match that is 0-0 after 90 minutes settles as
none, which you can also send asdraw, the column it is served in. - Last Team To Score works the same way for the last goal of the 90 minutes.
- Team To Score 2nd Goal to Team To Score 5th Goal work the same way for that goal. A match with fewer goals after 90 minutes settles as
none. - Corners Race is the race to the number of corners in
hdp, for example"hdp": 7withhome,awayorneither. If neither team got there,neitherwins and both teams lose. If a team got there,neitherloses. - First Match Corner and Last Match Corner take
homeoraway, or the served label1or2.
home or away on a corner race is graded when at most one team reached the target, neither is graded whichever team got there first, and a first or last corner when one team took every corner of the match. Otherwise the bet comes back ungradeable with reason stats_unavailable.
Home Team Exact Goals and Away Team Exact Goals settle on the 90-minute score and need no statistics. Send the label as served, such as Arsenal - 2 Goals or 3+ Goals.
Labelled markets
Send the label exactly as served.- Correct score:
2-1is home-away.Correct Score,Set Bettingand the set correct scores also accept it assidewhen you leave out the label. A label with a team in brackets, such as2-0 (2), puts the winner’s score first, so it means 0-2. - Winning Margin:
2 (1)is a two-goal home win,4+ (2)an away win by four or more,10-13 (1)a home win by 10 to 13.Score Drawis a level score with goals,No Goalis 0-0. A range without a team isinvalid_label. - Goal counts:
2 Goals,3+ Goals,Under 2 goals,2 or 3 goals,Over 3 goals. - Highest scoring half:
1st Half,2nd HalforTie.
Most Shots on Target takes home, away or draw with no line, where equal counts mean draw wins. When it is served as a handicap (hdp of -0.5 or 0.5), send the line and home or away.
Football team statistics (shots on target, shots, goalkeeper saves, offsides, fouls, tackles) are graded on full-match lines only for matches with no extra time, from post-match statistics. Unlike corners, they are not graded after extra time or a penalty shootout. A match with no recorded shots, fouls or tackles at all reads as a missed collection and comes back stats_unavailable.
Player props
Send"market": "Player Props" with the label as served, such as LeBron James (Points), the line in hdp, and over or under.
Props are graded for basketball, baseball, ice hockey and American football, from the official box score. We match the player by name and refuse when the name could be two people. A player who does not appear in the box score comes back player_not_matched. We do not assume the player sat out.
American football anytime touchdown props, such as Derrick Henry (Anytime TD), need a line of 0.5, 1.5 and so on. Yes settles as soon as the box score shows enough rushing, receiving or return touchdowns for the player. No settles only when the player took part and the team’s touchdowns all add up to its scorers in the box score; otherwise it comes back stats_unavailable.
Supported markets
In basketball and American football the second half includes overtime.
Not graded yet: goalscorer markets, football player props, darts lines, cricket, and outrights. They come back
unsupported_market.
Why some bets come back ungradeable
A wrong grade costs you money and a customer’s trust. An ungradeable one costs a manual check. So we refuse whenever the stored data cannot prove the answer. For example:- A football result with no 90-minute score recorded, where we cannot rule out extra time.
- A basketball score that is lower than the sum of its quarters.
- A tennis match that stopped before the last set was finished.
- A player prop where two players in the game share the name on the bet.
- A race to 3 corners that both teams reached, because the statistics do not say who got there first.
The tennis bets we do not grade are mostly retirements, walkovers and a few results without game scores. Treat these numbers as a guide. They come from one month of one product’s bets, mostly football main markets, on events that had already been settled once.
Limits and plans
- Both endpoints are on every paid plan and each call counts as one request.
GET /v3/settlementstakes up to 50 event ids.POST /v3/settlements/gradetakes up to 50 selections and a request body of up to 64 KB.- Free plans get a
403. You can still read final scores from/v3/historical/events.
Frequently asked questions
How do I settle a bet with an API?
Store the event id, market, line and side when the bet is placed. After the match, send them toPOST /v3/settlements/grade. The response says won, lost, void, half_won or half_lost for each bet, and final tells you when the result is confirmed.
Does the score include extra time?
Not for football. Football, futsal, handball and rugby bets settle on regulation time, and we grade them on the 90-minute score even when the match went to extra time or penalties. In basketball, American football, baseball and ice hockey, the moneyline, spread and totals include overtime. UseTotals Regulation, Spread Regulation and the Regulation team totals for lines settled on regulation time only.
What happens when a match is postponed or abandoned?
In most cases the event status becomescancelled, and every bet on it grades as void with reason event_cancelled. If the match is rescheduled later, the event goes back to pending under the same id. If a match is never marked cancelled and never gets a result, its bets stay pending with reason awaiting_result, then turn ungradeable with reason result_unavailable 72 hours after kickoff.
Can I settle Asian handicap bets, including quarter lines?
Yes. Send them asSpread with the line in hdp. Quarter lines return half_won or half_lost when half the stake is returned.
Can I settle player props?
Yes, for basketball, baseball, ice hockey and American football. SendPlayer Props with the label, such as Nikola Jokic (Rebounds), and the line.
Can I settle corners and cards?
Yes, for football. UseCorners Totals, Corners Spread, Bookings Totals, Bookings Spread and their team and half-time versions, or Totals Cards for a plain card count. They are graded about 30 minutes after full time. Corners Race, First Match Corner and Last Match Corner are graded too, when the corner counts decide them.
How soon after a match can I settle?
Score markets are usually ready a few minutes after the final whistle. Statistics markets take about 30 minutes. Until then the answer ispending.
What does final: false mean?
The answer is our current result, but the score has not been confirmed against the official one yet. Corrections are rare. If you pay out on results that are not final, check them again later.
Why did my bet come back ungradeable?
Read reason. It is either something in the request, such as a market name we do not grade or a missing line, or it is the data: the score or statistic the market needs was not recorded in a way we can trust.
Do I need to tell you which bookmaker the bet was placed with?
No. Settlement uses the result of the event, not a bookmaker’s own grading. The one place bookmakers differ is a tie on the moneyline in a few sports, which is whattieRule is for.
Related
- Fetching odds: where the market, line and side for each selection come from.
- Historical odds: closing lines and results for past events.
- API reference: full request and response schemas.