DELETE
/
api
/
loyalty
/
multipliers
import SnagSolutions from '@snagsolutions/sdk';

const client = new SnagSolutions({
  apiKey: process.env['X_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const response = await client.loyalty.multipliers.deleteByExternalId({
    externalIdentifier: 'externalIdentifier',
  });

  console.log(response.id);
}

main();
{
  "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>"
  }
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
Body

Schema for deleting a loyalty multiplier

externalIdentifier
string
required

Response

200
application/json
200

Schema for loyalty multiplier

id
string
required
userId
string
required
websiteId
string
required
organizationId
string
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
object
required

Schema for a loyalty multiplier user