Skip to main content

Reverse a bet or a win transaction

POST 

/v2/provider_a8r.Round/Rollback

Prediction Markets calls this endpoint to reverse a transaction. Prediction Markets sends this request after an earlier Round/BetWin request failed or stopped after a timeout.

Requirements​

  • You must process every rollback transaction, even if it arrives before the matching Round/BetWin transaction.
  • You must process the transactions in the order in which they appear in the request.
  • This request is idempotent. If you receive the same id_provider a second time, do not process it a second time. Return the original response.
  • A rollback reverses the original transaction.
  • If the original transaction does not exist, return a valid response. Do not return an error.
  • After you reverse a transaction, do not process a late copy of the original Round/BetWin request.
  • The number of transactions in this request is equal to the number in the original Round/BetWin request.

Required headers:

  • X-REQUEST-SIGN — HMAC-SHA256 hex signature of the raw request body

Request​

Responses​

You reversed all transactions in the request.