# Tier Rules

# Fetching all Tier Rules

# Route

Use the following route to get all tiers rules of a store.

GET https://loyalty.slrs.io/api/shopify/tiers

# Arguments

# Required Parameters

None

# Optional Parameters

None

# Returns

This route returns the following data

Key Type Definition
campaign_currency_value Integer The currency value of the tier when a campaign is active
campaign_point_value Integer The point value of the tier when a campaign is active. Returns null if the default campaign value is to be used
currency_spent_requirement Integer The amount of currency spent required for this tier
default Boolean The default status of the given tier
name String The name of the tier
point_value Integer The amount of points given per currency value
uid String The internal easyPoints ID for the given tier

# Example

Example request and result:

curl -X GET \
 'https://loyalty.slrs.io/api/shopify/tiers' \
-H 'content-type: application/json' \
-H 'authorization: Basic ${API_CREDENTIALS}'
{
  "data": [
    {
      "campaign_currency_value": 100,
      "campaign_point_value": null,
      "currency_spent_requirement": 0,
      "currency_value": 100,
      "default": true,
      "name": "Default",
      "point_value": 1,
      "uid": "cbc42e3b-6802-470b-b2d5-9f6feb829670"
    },
    {
      "campaign_currency_value": 100,
      "campaign_point_value": 3,
      "currency_spent_requirement": 10000,
      "currency_value": 100,
      "default": false,
      "name": "bronze",
      "point_value": 2,
      "uid": "e482bee2-8344-4685-b48b-297647bfe98c"
    }
  ]
}