Snag Docs logo

Get Loyalty Rule Edits

Retrieve configured loyalty rule edits with optional pagination and filters

GEThttps://admin.snagsolutions.io/api/loyalty/rule_edits

Retrieve configured loyalty rule edits with optional pagination and filters

Loading code example
Loading code example

Authorizations

apiKeyAuthstringheaderrequired

API key passed in the header.

Query Parameters

loyaltyRuleIdbooleanrequired

ID of the loyalty rule

organizationIdstring<uuid>

Unique identifier for the organization to filter by

websiteIdstring<uuid>

Unique identifier for the website to filter by

startingAfterstring<uuid>

Pagination cursor to start after a specific rule edit ID

limitinteger

Maximum number of edits to return

Required range: x >= 1, x <= 1000

Response

application/json

200

dataarray<object>required
data.idstring<uuid>required

Unique identifier for the rule edit

data.loyaltyRuleIdstring<uuid>required

ID of the loyalty rule

data.websiteIdstring<uuid>required

Unique identifier for the website

data.organizationIdstring<uuid>required

Unique identifier for the organization

data.editedByUserIdstring<uuid>required

User ID of the user who made the edit

data.editedAtstring<date-time>required

Timestamp of when the rule edit was made

data.action"create" | "update" | "delete" | "restore"required

Type of action that was made on the rule

Allowed values: "create" | "update" | "delete" | "restore"
data.dataobjectrequired

Data that was changed on the rule

data.previousDataobject

Previous data of the rule before the edit

data.commentstring

Comment that was made on the edit

hasNextPagebooleanrequired