Skip to main content
POST
/
api
/
loyalty
/
rules
/
{id}
/
complete
JavaScript
import SnagSolutions from '@snagsolutions/sdk';

const client = new SnagSolutions({
  apiKey: 'My API Key',
});

const response = await client.loyalty.rules.complete('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');

console.log(response.message);
{
  "message": "Completion request added to queue"
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string<uuid>
required

Body

application/json
verificationCode
string
Example:
userId
string<uuid>
Example:
walletAddress
string
Example:
contentUrl
string
Example:
loyaltyQuestionChoiceId
string
Example:
verifyOnly
string
default:false
Example:
rangeValue
number | null
Example:
amount
number | null
Example:
idempotencyKey
string
Maximum length: 70
Example:

Response

message
enum<string>
required
Available options:
Completion request added to queue,
Link click being verified, come back later to check the status