GET
/
api
/
loyalty
/
rules
/
status
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.rules.getStatus({
    organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
    websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
  });

  console.log(response.data);
}

main();
{
  "data": [
    {
      "loyaltyRuleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "pending",
      "message": "<string>"
    }
  ]
}

Authorizations

X-API-KEY
string
header
required

Query Parameters

websiteId
string
required
organizationId
string
required
userId
string

Response

200
application/json
200
data
object[]
required