Skip to main content
POST
https://s-apis.oppigames.com/
/
game
/
bonus-cancel
Bonus Cancel
curl --request POST \
  --url https://s-apis.oppigames.com/game/bonus-cancel \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-signature: <x-signature>' \
  --header 'x-timestamp: <x-timestamp>' \
  --data '
{
  "bonusId": "<string>"
}
'
{
    "status": "RS_OK",
    "message": "Bonus 271ff896-f4f3-453a-89bb-1636627e1a80 successfully cancelled."
}

Headers

x-api-key
string
required
A unique identifier associated with operator calling API.
x-signature
string
required
A SHA256 HMAC signature generated using the request body and timestamp. Format: HMAC_SHA256(JSON.stringify(data) + ’|’ + timestamp), signed using the provided secret key.
x-timestamp
string
required
An Unix timestamp (milliseconds) Used to verify the request’s freshness. Ensure the same value is used in signature generation.
The signature will remain valid for only 5 minutes from the provided timestamp.
Content-Type
string
required
Must be set to application/json.

Request Body

bonusId
string
required
Unique identifier of the bonus you want to cancel.

Response

status
string
required
Code indicates status of the request weather it is succeed or failed. We have listed error codes here
message
string
required
Description of status code / error code.
This is the expected response from a successful Launch Game request.