Create free rounds bonus code
Attaches a bonus code to an existing campaign for one specific player.
userId must be the same accountId your Player authorization callback returns, and currencyCode must match the campaign currency.
maxRounds has to be defined either here or on the campaign — if neither sets it, the request is rejected.
Authorizations
Your operator identifier, issued by Zero-Dash during onboarding.
Hex-encoded HMAC-SHA512(apiPath|timestamp|data, secretKey). See Request signature.
Unix time in milliseconds, and the exact value signed. Requests older than 5 minutes are rejected.
Body
Campaign this bonus code belongs to.
Player account ID. Must match the accountId returned by your Player authorization callback.
"player1"
Player currency. Must equal the campaign currency.
"USD"
Unique bonus code generated by you.
"CODE1234"
Rounds granted by this code. Required when the campaign does not define maxRounds.
x >= 1Response
Created. No response body.