GET
/
v2
/
activities
curl --request GET \
  --url https://api.loyaltylion.com/v2/activities
{
  "activities": [
    {
      "id": 123,
      "merchant_id": "<string>",
      "value": 123,
      "state": "pending",
      "customer": {
        "id": 123,
        "merchant_id": "<string>",
        "email": "<string>",
        "points_pending": 123,
        "points_approved": 123,
        "points_spent": 123
      },
      "created_at": "<string>",
      "rule": {
        "id": 123,
        "name": "<string>",
        "title": "<string>"
      },
      "flow": {
        "id": 123,
        "journey_id": 123,
        "name": "<string>",
        "block_id": "<string>"
      }
    }
  ],
  "cursor": {
    "prev": "<string>",
    "next": "<string>"
  }
}

Activities in LoyaltyLion represent actions that added or removed points from a customer. These are most commonly triggered by a Rule, such as giving points for placing an order or enrolling in the program, but can also be created in other situations such as manual point adjustments or point expirations.

Query Parameters

since_id
integer

Return only resources whose id is after the specified id

Required range: x >= 0
limit
integer
default:100

Max number of resources to return per request

Required range: 1 <= x <= 500
page
integer
deprecated

Fetch another page of results. This field is deprecated and will be removed in a future version of the API. Use cursors for pagination instead

Required range: x >= 1
cursor
string

Fetch another page of results using a cursor returned in a previous response

created_at_min
string

Return only activities created on or after the specified ISO 8601 datetime string

created_at_max
string

Return only activities created before the specified ISO 8601 datetime string

Response

200
application/json
200
activities
object[]
required
cursor
object
required