Skip to content

Shared bets

Any player, and any visitor who is not logged in, can share a slip (before betting) or a placed bet from the sportsbook. The share is a short code, for example K7M3-Q9XT, and a link, for example https://<sportsbook>/s/K7M3Q9XT. This is the “booking code” of African and Latin American sportsbooks and the “share bet” of bet365 and Betano: tipsters and affiliates post it in WhatsApp and Telegram groups.

Whoever opens the link, or types the code in the slip, sees the bet and adds its selections to their own slip in one tap, at the current odds. Odds are never locked. Selections that have closed, settled or been withdrawn are left out. Nothing personal is shared: the code holds the bet’s shape and selections, never the stake or the player.

  1. The player taps Compartilhar in the slip, or on a bet in My Bets, and gets the code, the link and buttons for WhatsApp, Telegram and copy.
  2. Chat apps fetch /s/{code} and show a preview card with the brand, the bet type, the number of selections, the odds and the events.
  3. People who open the link are sent on immediately to:
    • your page that embeds the sportsbook, when you set a share landing URL; or
    • the sportsbook’s own share page (/share/{code}), when you did not.
  4. The sportsbook opens the share, shows the bet with the current odds, and adds it to the slip on Adicionar ao cupom.

Codes last 30 days. A slip shared again by the same player gets the same code back.

In the back office, Integration › Share link, set the page of your site that embeds the sportsbook, with {code} where the code goes:

https://www.yourcasino.com/sports?ob_share={code}

The embed SDK reads ob_share from your page’s URL and opens the share. You need no code, as long as you do not pass your own path to mount():

OrbiSportbook.mount('#sportsbook', { tenant, launchToken }); // opens /share/K7M3Q9XT when ?ob_share=K7M3Q9XT

To use another parameter name, pass shareParam: 'bilhete'. To turn this off, pass shareParam: false. Without the SDK, or from your server, open the share with the deep link /share/{code}. Pass it as path when you create the session, or send it later with the navigate command.

The URL accepts one more placeholder, {affiliate}: the sharer’s affiliate id (see below), empty when there is none. Use it to send your affiliate platform’s tracking parameter, so that a visitor who signs up from a shared bet is credited to that affiliate:

https://www.yourcasino.com/sports?ob_share={code}&btag={affiliate}

When the code has no affiliate (a visitor shared it), the link can carry one: <sportsbook>/s/<code>?ref=<affiliate id> fills {affiliate} with it (1 to 64 of A-Z a-z 0-9 _ . : @ -; anything else is ignored). The sharer’s stored affiliate always wins, and the ref is not stored or counted in the reports.

Send the player’s affiliate id, your own identifier such as a btag or an affiliate code, as affiliateId when you create the session. It is stored on the player, and every code the player shares carries it. Omit the field to keep the stored value; send "" to clear it.

Bets placed from a slip loaded from a code are attributed to the code when they keep at least one of its selections. Reports › Shared bets in the back office shows, per affiliate and per code:

Column Meaning
Opens Times the share was opened in the sportsbook (link previews are not counted)
Loads Times its selections were added to a slip
Bets, Players Bets placed from it, and distinct bettors
Turnover, GGR Stake of those bets per currency, and stake minus payouts of the settled ones

The same data is in the API: GET /api/v1/admin/shares and GET /api/v1/admin/shares/affiliates, each with from and to dates.

Method and path Who Body / response
POST /api/v1/shares anyone; betId needs the player’s session {betId} or {type, systemSize?, eachWay?, selections: [{outcomeId} | {kind: "betbuilder", eventId, outcomeIds}]}. Returns {share}. 400 validation, details.reason: "no_selections" when nothing can be shared
GET /api/v1/shares/{code} anyone {share}: code, url, type, selections (names and odds when shared), totalOdds, status (placed bets), expiresAt. 404 with details.reason unknown, expired or invalid
POST /api/v1/shares/{code}/load anyone 204. The selections were added to a slip
POST /api/v1/bets player shareCode (optional): the code the slip was loaded from
GET /s/{code} public link Preview tags, then a redirect to the landing page
POST /api/v1/integration/shares your server, with X-API-Key The body of POST /api/v1/shares without betId, plus an optional affiliateId. Returns {share}. See Create codes from your server

Your server can also create a code, with no player and no browser, with POST /api/v1/integration/shares. A tips or signals app, for instance, creates the code when a match or a league changes and posts the link to its groups. The code is the same as one a player shares (same code, same /s/<code> link, current odds when opened), with two differences:

  • it needs your tenant’s integration key (X-API-Key, the one of creating the session) and has no player: the code has no sharer;
  • it takes affiliateId (optional): the affiliate the code is credited to. It fills the {affiliate} of your landing page and groups the code in the affiliates report.

This route places no bet and moves no money: it only creates the code and the link.

Example values: replace <tenant> with your tenant id and <integration key> with your integration API key (the one of creating the session).

Terminal window
curl -sS -X POST https://api.orbisportbook.com/api/v1/integration/shares \
-H 'Content-Type: application/json' \
-H 'X-Tenant-ID: <tenant>' \
-H 'X-API-Key: <integration key>' \
-d '{"type":"multiple","affiliateId":"FRAW5OAJEO","selections":[{"outcomeId":"<outcome id>"},{"outcomeId":"<id>"}]}'

The body is the one of POST /api/v1/shares (without betId), plus affiliateId:

Field Required Meaning
type yes single, multiple, system (with systemSize) or a named type
selections yes Up to 20. Each is {"outcomeId": "..."} or a Bet Builder: {"kind": "betbuilder", "eventId": "...", "outcomeIds": ["...", "..."]}
systemSize, eachWay no As in a bet
affiliateId no 1 to 64 of A-Z a-z 0-9 _ . : @ -. Omitted: the code has no affiliate

A Bet Builder selection:

{"type":"single","affiliateId":"FRAW5OAJEO","selections":[{"kind":"betbuilder","eventId":"<event id>","outcomeIds":["<id>","<id>"]}]}

The reply is the one of POST /api/v1/shares:

{"share":{
"code":"K7M3Q9XT",
"url":"https://<sportsbook>/s/K7M3Q9XT",
"type":"multiple",
"selections":[{"outcomeId":"...","eventId":"...","eventName":"Flamengo x Palmeiras","marketName":"Match result","outcomeName":"Flamengo","odds":2.1}],
"totalOdds":4.2,
"createdAt":"2026-11-24T18:00:00Z",
"expiresAt":"2026-12-24T18:00:00Z"}}

selections carries the names and prices of the snapshot the server takes at that moment. Whoever opens url (/s/<code>) is sent to your landing page, with {code} = the code and {affiliate} = the stored affiliateId.

From the catalogue: GET /api/v1/events?sport=&competition=&status=prematch lists the events with their main market, and GET /api/v1/events/{eventId} returns the event with every market; each outcome has its outcomeId. Both take X-Tenant-ID and need no key.

Status When
400 validation details.reason: "no_selections" (no selection exists or is open), an invalid affiliateId (details.field: "affiliateId"), invalid JSON or an unknown field (betId, for instance)
422 too_many_selections More than 20 selections
401 unauthorized No X-API-Key, a wrong key or another tenant’s key
403 forbidden Server to server integration is not enabled in this environment
404 Unknown tenant
429 rate_limited The tenant’s limit, or too many wrong keys from the same IP. Wait Retry-After seconds
  • Up to 20 selections a code; a code lives 30 days.
  • The price is quoted at that moment (the snapshot); whoever opens the link sees the current odds.
  • The same slip with the same affiliate returns the same code (its snapshot is refreshed); another affiliate, or none, gets its own.
  • Per tenant: 2 codes a second, bursts of 10 (on the server, SHARE_API_RPS and SHARE_API_BURST; SHARE_API_RPS=0 turns it off). Only calls with the right key count.
  • Per IP: wrong keys count as on creating the session (10, then one every 20 s). A right key is not limited per IP.
  • Every code created is audited (share.created_by_operator, with the affiliate, the number of selections and the IP; never the key).