Skip to main content
POST
/
api
/
loyalty
/
multipliers
Create Loyalty Multiplier
curl --request POST \
  --url https://admin.snagsolutions.io/api/loyalty/multipliers \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "walletAddress": "<string>",
  "multiplier": 500.005,
  "title": "<string>",
  "description": "<string>",
  "externalIdentifier": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "websiteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "multiplier": 500.005,
  "title": "<string>",
  "description": "<string>",
  "externalIdentifier": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "deletedAt": "<string>",
  "user": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "walletAddress": "<string>"
  },
  "loyaltyRuleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Body

Schema for creating a loyalty multiplier

walletAddress
string
required
multiplier
number
required
Required range: 0.01 <= x < 1000
title
string | null
description
string | null
externalIdentifier
string | null

Response

200

Schema for loyalty multiplier

id
string<uuid>
required
userId
string<uuid>
required
websiteId
string<uuid>
required
organizationId
string<uuid>
required
multiplier
number
required
Required range: 0.01 <= x < 1000
title
string | null
required
description
string | null
required
externalIdentifier
string | null
required
createdAt
string
required
updatedAt
string
required
deletedAt
string | null
required
user
Loyalty Multiplier User Schema · object
required

Schema for a loyalty multiplier user

loyaltyRuleId
string<uuid>