Endpoint

This endpoint sends a request to resend all odds for all markets for a sport event.

Recover stateful-messages for a sport event

post

Request to resend all stateful-messages (BetSettlement, RollbackBetSettlement, BetCancel, UndoBetCancel) for a sport event.

Authorizations
Path parameters
productstring · enumRequired

Get odds for prematch, live, premium cricket, betpal or virtual sports matches.

Possible values:
urn_typestring · enumRequired

The event type you want to look up. Prefixes beginning with 'v' are for virtual sports.

Possible values:
idintegerRequired

Get stateful-messages for the event ID.

Query parameters
request_idintegerOptional

Send a snapshotcomplete message with this request ID over the feed when finished with request.

node_idintegerOptional

If specified, the node ID will be included in routing key for all recovery messages that belong to this request.

Responses
200

successful operation

No content

post
POST /v1/{product}/stateful_messages/events/{urn_type}:{id}/initiate_request HTTP/1.1
Host: global.api.betradar.com
x-access-token: YOUR_API_KEY
Accept: */*
200

successful operation

No content

Endpoint Parameters

Paramenter

Description

Possible Values

product

Required

Select the product (prematch / live / premium cricket / betpal / virtual sports etc) for which you want the odds (for the markets for a sport event) resent.

pre, liveodds, premium_cricket, betpal, vf, vbl, vto, wns, vdr, vhc, vti, codds, vci, vbi

urn_type

Required

The event type you want to look up. Prefixes beginning with 'v' are for virtual sports

sr:match, sr:simple_tournament, sr:stage, sr:season, vf:match, vbl:match, vto:match, vdr:stage, vhc:stage, vti:match, vti:tournament, vci:match, vci:tournament, vbi:match, vbi:tournament

id

Required

The ID of the event you want to get the oddschanges

request_id

Optional

If specified, the request ID with which the snapshot complete message is sent over the feed when finished with the request

node_id

Optional

If specified, the node ID will be included in routing key for all recovery messages that belong to this request.

Last updated

Was this helpful?