Skip to main content
POST
Claim Code

Headers

x-api-key
string
required

The API key to authenticate with.

Path Parameters

app_user_id
string
required

The app user id of the user to claim the code for. A user is created for this app user id if none exists yet.

Body

application/json
code
string
required

The code to claim. Can be affiliate, promo or referral code.

Example:

"XYZ123"

user
object | null

The properties of the user claiming the code. Applied to the user before the code is claimed, creating the user if it does not exist yet. Properties left out are kept as they are.

Response

Updated user and granted rewards.

data
object
required