Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Message structure

.message
id

Unique identifier for the message

type

outcome_result

sourceInternal attribute, please dont use this attribute
utInformation about the date and time of when the message was created. Format UNIX_TIMESTAMP
..data
...outcome_result
id

Identifier of the outcome

betting_offer_idIdentifier of the betting_offer related with this outcome. The complete list of possible betting_offer can be retrieved using the API resource: betting-offers.index
action

Describes type of operation for the event. Possible values:

  • insert - when result of outcome is known
  • update - when a previously sent result of outcome contains error and need to be updated
resultDescribe result of the outcome. Possible values:
  • won - user won his bet, user should receive winnings (odds*stake)
  • lost - user lost his bet, user lost his stake
  • void - user should receive his stake back
  • partial win - user won part of his bet, user should receive winnings (odds*stake/2 + stake/2)
  • partial loss -  user lost part of his bet, user should receive half of his stake back

Possible empty value for outcomes yet to be settled.