Create a free spins campaign
Body Required
-
Minimum value is
1
. -
The bet value the campaign freespins are offered to the player
-
Non blank brand ID
Format should match the following pattern:
^(?!\s*$).+
. -
Non blank campaign ID
Minimum length is
1
, maximum length is40
. Format should match the following pattern:^(?!\s*$).+
. -
Non blank campaign name
Format should match the following pattern:
^(?!\s*$).+
. -
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.
-
Non blank currency
Format should match the following pattern:
^(?!\s*$).+
. -
Non blank game ID
Format should match the following pattern:
^(?!\s*$).+
. -
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"
}