Create a free spins campaign
Headers
-
Signature
string Required -
Public-Key
string Required
Body
Required
-
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 Non blank brand ID
Format should match the following pattern:
^(?!\s*$).+
. -
campaignId
string Required Non blank campaign ID
Minimum length is
1
, maximum length is40
. Format should match the following pattern:^(?!\s*$).+
. -
campaignName
string Required Non blank campaign name
Format should match the following pattern:
^(?!\s*$).+
. -
consumeBefore
integer(int64) Required Unix 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 Non blank currency
Format should match the following pattern:
^(?!\s*$).+
. -
gameId
string Required Non blank game ID
Format should match the following pattern:
^(?!\s*$).+
. -
handoverAfter
integer(int64) Required Unix epoch time in milliseconds. Start date of the campaign. Must be in the future.
-
playerIds
array[string] Non blank player ID
Minimum length of each is
1
, maximum length of each is45
. Format of each should match the following pattern:^(?!\s*$).+
.
curl \
--request POST 'BASE_URL/free-spins-campaigns/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":641779201000,"currency":"string","gameId":"string","handoverAfter":641779201000,"playerIds":["string"]}'
# Headers
Signature: string
Public-Key: string
# Payload
{
"betCount": 42,
"betValue": 42.0,
"brandId": "string",
"campaignId": "string",
"campaignName": "string",
"consumeBefore": 641779201000,
"currency": "string",
"gameId": "string",
"handoverAfter": 641779201000,
"playerIds": [
"string"
]
}
{
"id": "string"
}
{
"code": "ERROR_UNKNOWN_ERROR",
"description": "string",
"traceId": "string"
}
{
"code": "ERROR_INVALID_SIGNATURE",
"description": "string",
"traceId": "string"
}
{
"code": "ERROR_UNKNOWN_ERROR",
"description": "string",
"traceId": "string"
}