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_providera 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
- 200
- 400
- 403
- 5XX
You reversed all transactions in the request.
You cannot process the request. Use meta.api_code to give the reason.
The signature is not correct. The X-REQUEST-SIGN header is missing, or it does not match the signature of the raw request body.
Your system has an internal error. Prediction Markets can send the request again.