Pick the List Loyalty Programs action (under Loyalties).
Fill in the fields below, then reference the result from later steps as {{listLoyaltyPrograms.response.data}}.
Request
Query parameters
limitinteger
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.
pageinteger
Which page of results to return. The lowest value is `1`.
expandstring
Includes an expanded `categories` object in the response. If the [Areas and Stores](/orchestrate/areas-and-stores) Enterprise feature is enabled, add `access_settings_assignments` to return assigned areas and stores.
One ofcategoryaccess_settings_assignments
orderstring
Sorts the results using one of the filtering options, where the dash `-` preceding a sorting option means sorting in a descending order.
One ofcreated_at-created_atupdated_at-updated_at
Response
Returns 200 with an object. Read it in later steps with {{listLoyaltyPrograms.response.data.<field>}}.
objectstring
The type of the object represented by JSON. This object stores information about loyalty campaigns in a dictionary.
Default "list"
data_refstring
Identifies the name of the attribute that contains the array of loyalty campaign objects.
One ofcampaignsDefault "campaigns"
campaignsarray<object>
Contains an array of loyalty campaign objects.
idstring
Unique campaign ID, assigned by Voucherify.
namestring
Campaign name.
descriptionstring
An optional field to keep any extra textual information about the campaign such as a campaign description and details.
campaign_typestring
Type of campaign.
One ofLOYALTY_PROGRAMDefault "LOYALTY_PROGRAM"
typestring
Defines whether the campaign can be updated with new vouchers after campaign creation.
- `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria
- `STATIC`: vouchers need to be manually published
One ofAUTO_UPDATESTATIC
voucherobject10 fields
Schema model for a campaign voucher.
auto_joinboolean
Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled.
join_onceboolean
Always set to `true` for loyalty campaigns, meaning customers can join the campaign only once. It can't be changed to `false`.
use_voucher_metadata_schemaboolean
Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema.
validity_timeframeobject2 fields
Set recurrent time periods when the earning rule is valid. For example, valid for 1 hour every other day.`start_date` **required** when including the `validity_timeframe`.
validity_day_of_weekarray<integer>
Integer array corresponding to the particular days of the week in which the voucher is valid.
- `0` Sunday
- `1` Monday
- `2` Tuesday
- `3` Wednesday
- `4` Thursday
- `5` Friday
- `6` Saturday
validity_hoursobject1 fields
Determines the hours of validity, e.g. to create a happy hours scenario.
activity_duration_after_publishingstring
Defines the amount of time the campaign will be active in ISO 8601 format after publishing. For example, a campaign with a `duration` of `P24D` will be valid for a duration of 24 days.
vouchers_countinteger
Total number of unique vouchers in campaign.
start_datestring (date-time)
Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is *inactive before* this date.
expiration_datestring (date-time)
Expiration timestamp defines when the campaign expires in ISO 8601 format. Campaign is *inactive after* this date.
activeboolean
A flag to toggle the campaign on or off. You can disable a campaign even though it's within the active period defined by the `start_date` and `expiration_date`.
- `true` indicates an *active* campaign
- `false` indicates an *inactive* campaign
metadataobject
The metadata object stores all custom attributes assigned to the campaign. A set of key/value pairs that you can attach to a campaign object. It can be useful for storing additional information about the campaign in a structured format.
created_atstring (date-time)
Timestamp representing the date and time when the campaign was created. The value is shown in the ISO 8601 format.
updated_atstring (date-time)
Timestamp representing the date and time when the campaign was last updated in ISO 8601 format.
categorystring
Unique category name.
creation_statusstring
Indicates the status of the campaign creation.
One ofDONEIN_PROGRESSFAILEDDRAFTMODIFYING
vouchers_generation_statusstring
Indicates the status of the campaign's voucher generation.
One ofDONEIN_PROGRESSFAILEDDRAFTMODIFYING
readonlyboolean
Indicates whether the campaign can be only read by a restricted user in the Areas and Stores enterprise feature. It is returned only to restricted users; this field is not returned for users with other roles.
protectedboolean
Indicates whether the resource can be deleted.
category_idstring
Unique category ID that this campaign belongs to.
categoriesarray<object>6 fields
Contains details about the category.
objectstring
The type of the object represented by JSON. This object stores information about the campaign.
Default "campaign"
loyalty_tiers_expirationobject4 fields
Defines the Loyalty Tiers Expiration.
validation_rules_assignmentsobject4 fields
List of Validation Rules Assignments
access_settings_assignmentsobject4 fields
Lists all assignments of the campaign to areas and stores. For [GET List Campaigns](/api-reference/campaigns/list-campaigns), this is returned if the `expand=access_settings_assignments` query parameter is passed in the request. This object is not returned for the [GET Campaign summary endpoint](/api-reference/campaigns/get-campaign-summary).
**NOTE**: This object is returned only if the Areas and Stores enterprise feature is enabled. Contact [Voucherify Sales](https://www.voucherify.io/contact-sales) to learn more.