API ReferenceSwaggerRewards
Purchase a reward
AuthorizationBearer <token>
In: header
Header Parameters
x-idempotency-key?string
Idempotency Key
x-game-uuid?string
Game UUID
x-api-keystring
Game API Key
rewardIdstring
coinIdstring
isPrefillEnabledboolean
Response Body
curl -X POST "https://api.playsuper.club/rewards/purchase" \ -H "x-idempotency-key: string" \ -H "x-game-uuid: string" \ -H "x-api-key: string" \ -H "Content-Type: application/json" \ -d '{ "rewardId": "string", "coinId": "string", "isPrefillEnabled": true }'{
"orderId": "string",
"orderType": "string",
"status": "string",
"totalAmount": 0,
"createdAt": "2019-08-24T14:15:22Z",
"couponCode": "string",
"pin": "1234",
"campaignName": "string",
"transactionId": "string",
"rewardId": "string",
"metadata": {
"brandName": "string",
"howToRedeem": "string",
"brandCategory": [
"string"
],
"campaignTitle": "string",
"campaignDetails": "string",
"campaignSubTitle": "string",
"couponExpiryDateExists": true,
"couponExpiryDate": "2019-08-24T14:15:22Z",
"campaignCoverImage": "string",
"termsAndConditions": "string",
"brandRedirectionLink": "string",
"brandLogoImage": "string",
"discountOffPercentage": "string",
"denomination": "string"
}
}{
"message": "Code already requested for this offer, please wait some time before requesting a new code",
"statusCode": 400
}Empty