Get Bet History by Notification

The API allows punters to get list of all notification, enabling them to monitor all the bets they have placed.

Endpoint

GET /bet/notification/{id}

CURL example

  curl -X GET 'https://betmatic.app/api/bet/notification/1' \
  -H 'Accept: application/json' \
  -H 'Authorization: Token {token}' 

Responses

Status
Meaning
Description
Schema

200

Success

See below

200 Response example

[
  {
    "id": 4918787,
    "display_name": "testbot",
    "amount": 5,
    "current_odds": 6.5,
    "created_at": "2024-01-24T21:27:24.761858+11:00",
    "market": "Fixed Win",
    "submit_time": "2024-01-24T20:27:24+11:00",
    "result_time": "2024-01-24T20:27:24+11:00",
    "submit_result": "Success",
    "submit_error": "Bet has been placed.",
    "profit": -5,
    "used_boost": false,
    "used_spg": false,
    "used_bonus": false,
    "transaction_id": "",
    "bot_id": "1",
    "is_deleted": false,
    "notified": false,
    "reported_usage": 5,
    "sports": "RACING",
    "owner": 612,
    "bookie": 25,
    "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