Body
-
Minimum value is
1
. -
The bet value the campaign freespins are offered to the player
-
Epoch time in milliseconds. Must be in the future. Consume before is considered to be hard end date, after which the campaign should be expired.
-
Can be limited to single game
-
Epoch time in milliseconds. Start date.
-
Epoch time in milliseconds. Must be in the future. Handover before is considered to be soft end date, after which the campaign should be expired if the player has not already started playing freespins.
POST
/free-spins-campaign/create
curl \
--request POST 'BASE_URL/free-spins-campaign/create' \
--header "Content-Type: application/json" \
--header "Signature: string" \
--header "Public-Key: string" \
--data '{"betCount":42,"betValue":42.0,"brandId":"string","campaignId":"string","campaignName":"string","consumeBefore":42,"currency":"string","gameIds":["string"],"handoverAfter":42,"handoverBefore":42,"playerId":"string"}'
Request examples
# Headers
Signature: string
Public-Key: string
# Payload
{
"betCount": 42,
"betValue": 42.0,
"brandId": "string",
"campaignId": "string",
"campaignName": "string",
"consumeBefore": 42,
"currency": "string",
"gameIds": [
"string"
],
"handoverAfter": 42,
"handoverBefore": 42,
"playerId": "string"
}
Response examples (200)
{
"providerCampaignId": "string"
}
Response examples (400)
{
"code": "ERROR_UNKNOWN_ERROR",
"message": "string"
}
Response examples (401)
{
"code": "ERROR_INVALID_SIGNATURE",
"message": "string"
}
Response examples (500)
{
"code": "ERROR_UNKNOWN_ERROR",
"message": "string"
}