Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
A Voucherify customer's id
or source ID of the customer who performed the activities.
"cust_nk0N1uNQ1YnupAoJGOgvsODC"
Query Parameters
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.
1 <= x <= 100
Sorts the results using one of the filtering options, where the dash -
preceding a sorting option means sorting in a descending order.
created_at
, -created_at
, updated_at
, -updated_at
, type
, -type
, code
, -code
, campaign
, -campaign
, category
, -category
A cursor for pagination. starting_after
is a date-time value that defines your place in the list based on created_at
property from the activity object. For instance, if you make a list request and receive 100 objects, ending with an object created at 2020-05-24T13:43:09.024Z
, your subsequent call can include starting_after=2020-05-24T13:43:09.024Z
in order to fetch the next page of the list.
"2023-12-22T10:13:06.487Z"
A cursor for pagination. It retrieves the events starting after an event with the given ID.
Through this parameter you can control a type of campaign by which Voucherify will filter related customer's activity. API will return only records related to that given type. Allowed values: DISCOUNT_COUPONS, REFERRAL_PROGRAM, GIFT_VOUCHERS, PROMOTION, LOYALTY_PROGRAM
PROMOTION
, GIFT_VOUCHERS
, REFERRAL_PROGRAM
, DISCOUNT_COUPONS
, LOYALTY_PROGRAM
By applying this parameter you request only events related to specific campaign identified by its ID.
"camp_rRsfatlwN7unSeUIJDCYedal"
By applying this parameter you request only events related to specific product identified by its ID.
"prod_3ttSkdxGuAfcv3"
Timestamp representing the date and time which results must end on. Represented in ISO 8601 format.
"2023-12-22T10:13:06.487Z"
Timestamp representing the date and time which results must end on. Represented in ISO 8601 format.
"2023-12-22T10:13:06.487Z"
Response
Returns a dictionary with customer activities.
Response body schema for GET v1/customers/{customerId}/activities
.
The type of the object represented by JSON. This object stores information about customer activities in a dictionary.
Identifies the name of the attribute that contains the array of customer activity objects.
Array of customer activity objects.
Total number of customer activities.