Skip to main content
GET
/
v1
/
loyalties
/
members
/
{memberId}
/
activity
List Member Activity
curl --request GET \
  --url https://{cluster}.voucherify.io/v1/loyalties/members/{memberId}/activity \
  --header 'Authorization: Bearer <token>' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>'
{
  "object": "list",
  "data_ref": "data",
  "data": [
    {
      "id": "evcus_0c150c51730c6b60b1",
      "type": "customer.loyalty.tier.upgraded",
      "data": {
        "data": {
          "customer": {
            "id": "<any>",
            "name": "<any>",
            "email": "<any>",
            "source_id": "<any>",
            "metadata": "<any>",
            "object": "<any>"
          },
          "campaign": {
            "id": "<string>",
            "name": "<string>",
            "campaign_type": "<string>",
            "type": "AUTO_UPDATE",
            "is_referral_code": true,
            "voucher": {
              "type": "<any>",
              "discount": "<any>",
              "gift": "<any>",
              "loyalty_card": "<any>",
              "redemption": "<any>",
              "code_config": "<any>"
            },
            "referral_program": {
              "conversion_event_type": "<any>",
              "custom_event": "<any>",
              "referee_reward": "<any>"
            },
            "auto_join": true,
            "join_once": true,
            "active": true,
            "category_id": "<string>",
            "category": "<string>",
            "categories": [
              "<any>"
            ],
            "metadata": {},
            "start_date": "2022-09-20T00:00:00.000Z",
            "expiration_date": "2022-09-30T00:00:00.000Z",
            "description": "<string>",
            "created_at": "2024-01-01T11:11:11.111Z",
            "updated_at": "2024-01-01T11:11:11.111Z",
            "object": "campaign"
          },
          "loyalty_tier_from": {
            "name": "<string>",
            "earning_rules": {},
            "rewards": {},
            "points": {
              "from": "<any>",
              "to": "<any>"
            },
            "id": "<string>",
            "campaign_id": "<string>",
            "metadata": {},
            "created_at": "2023-11-07T05:31:56Z",
            "updated_at": "2023-11-07T05:31:56Z",
            "config": {
              "points": "<any>"
            },
            "expiration": {
              "customer_id": "<any>",
              "campaign_id": "<any>",
              "tier_id": "<any>",
              "start_date": "<any>",
              "expiration_date": "<any>",
              "created_at": "<any>",
              "updated_at": "<any>"
            },
            "object": "loyalty_tier"
          },
          "loyalty_tier_to": {
            "name": "<string>",
            "earning_rules": {},
            "rewards": {},
            "points": {
              "from": "<any>",
              "to": "<any>"
            },
            "id": "<string>",
            "campaign_id": "<string>",
            "metadata": {},
            "created_at": "2023-11-07T05:31:56Z",
            "updated_at": "2023-11-07T05:31:56Z",
            "config": {
              "points": "<any>"
            },
            "expiration": {
              "customer_id": "<any>",
              "campaign_id": "<any>",
              "tier_id": "<any>",
              "start_date": "<any>",
              "expiration_date": "<any>",
              "created_at": "<any>",
              "updated_at": "<any>"
            },
            "object": "loyalty_tier"
          },
          "created_at": "2022-02-25T13:32:08.734Z"
        },
        "event_source": {
          "channel": "API",
          "user": {
            "id": "user_xyzfghSTprSTUVWXYlk6tuvXYst7FGH7"
          },
          "api_key": {
            "name": "<string>",
            "app_id": "1XXXX5XX-0XXX-XXXb-X7XX-XX2XXaXXX6XX"
          }
        }
      },
      "created_at": "2022-08-30T09:14:07.660Z",
      "group_id": "w-0e30613abc1f044513"
    }
  ],
  "has_more": true,
  "more_starting_after": "<string>"
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

memberId
string
required

Unique loyalty card assigned to a particular customer.

Example:

"MmFAzfDe"

Query Parameters

limit
integer

Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.

Required range: 1 <= x <= 100
order
enum<string>

Apply this filter to order the events according the date and time when it was created. The dash - preceding a sorting option means sorting in a descending order.

Available options:
created_at,
-created_at
starting_after_id
string

A cursor for pagination. It retrieves the events starting after an event with the given ID.

Response

Returns a list of event objects related to the loyalty card.

Response body schema for retrieving member activity.

object
enum<string>
default:list
required

The type of the object represented by JSON. This object stores information about member activities in a dictionary.

Available options:
list
data_ref
string
default:data
required

Identifies the name of the attribute that contains the array of member activity objects.

data
Member Activity · object[]
required

Array of member activity objects.

has_more
boolean
required

As query results are always limited (by the limit parameter), the has_more flag indicates if there are more records for given filter parameters. This lets you know if you can run another request with a starting_after_id query or a different limit to get more records returned in the results.

more_starting_after
string

Returns an ID that can be used to return another page of results. Use the event ID in the starting_after_id query parameter to display another page of the results starting after the event with that ID.

I