Search Bet History

The API allows punters to get specific bet history by using there ids.

Endpoint

POST /bet/search/

CURL example

curl -X POST 'https://betmatic.app/api/bet/search/' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Token {token}' \
  -d '{
    "ids": [
      1,2
    ]
  }'

Parameters

Name
In
Type
Required
Description

data

body

BetHistoryIds

true

none

BetHistoryIds

Name
Type
Required
Description

ids

array[integers]

true

none

Body parameter example

{
  "ids": [1,2,3]
}

Responses

Status
Meaning
Description
Schema

200

Success

See below

200 Response example

[
  {
    "id": 4918433,
    "display_name": "testbot",
    "amount": 0,
    "current_odds": 2.25,
    "created_at": "2024-01-24T20:59:19.440549+11:00",
    "market": "Fixed Win",
    "submit_time": null,
    "result_time": null,
    "submit_result": "Error",
    "submit_error": "The minimum stake is $1.",
    "profit": 0,
    "used_boost": false,
    "used_spg": false,
    "used_bonus": false,
    "transaction_id": "",
    "bot_id": "12000000",
    "is_deleted": false,
    "notified": false,
    "reported_usage": 0,
    "sports": "RACING",
    "owner": 612,
    "bookie": 42,
    "notification": 1
  }
]

Response Schema

Status Code 200

Name
Type
Description

id

integer

Bet History Id used in this system

display_name

string

name of session which placed bet

amount

integer

actual amount that placed, this can be different from notification amount.

current_odds

string

odds that actually applied

created_at

string(date-time)

Time when History is created

market

string

finally placed market

submit_time

string or null

bet slip submit clicked time

result_time

string or null

bet slip submit result time

submit_result

string

result of bet Success or Error or In Review

submit_error

string

If success Accepted, else error string from the bookie

profit

integer

profit obtained from right bet

used_boost

boolean

if this bet is boosted one

used_spg

boolean

if spg is used

used_bonus

boolean

if bonus money is used

transaction_id

integer

to be used to update the accepted amount and odds later

bot_id

string

Id of bot notification sent to

is_deleted

boolean

if bet history is deleted

notified

boolean

if this bet is notified via socket

reported_usage

integer

reported turnover of this bet

sports

string

Type of Sport

owner

integer

users id who placed this bet

bookie

integer

bookie id on whom bet is placed

notification

integer

notification id used in system

Last updated