import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
const multipliers = await client.loyalty.multipliers.list();
console.log(multipliers.data);
{
"data": [
{
"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"
}
],
"hasNextPage": true
}
Get Loyalty Multipliers
import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
const multipliers = await client.loyalty.multipliers.list();
console.log(multipliers.data);
{
"data": [
{
"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"
}
],
"hasNextPage": true
}
1 <= x <= 1000
200
The response is of type object
.
Was this page helpful?