Create free spins campaign
Headers
-
Signature
string -
Public-Key
string
Body
-
betCount
integer(int32) Required Minimum value is
1
. -
betValue
number Required The bet value the campaign freespins are offered to the player
-
brandId
string Required -
campaignId
string Required -
campaignName
string Required -
consumeBefore
integer(int32) Required 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.
-
currency
string Required -
gameIds
array[string] Can be limited to single game
-
handoverAfter
integer(int32) Required Epoch time in milliseconds. Start date.
-
handoverBefore
integer(int32) Required 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.
-
playerId
string Required
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"
}