GET
/
features
curl https://api.thanxsandbox.com/features \
  -X GET \
  -H "Content-Type: application/json"  \
  -H "Accept-Version: v4.0" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer ${token}" \
  -H "X-ClientId: ${client_id}" 
{
  "features": [
    {
      "merchant_id": "wourhfslur",
      "loyalty": { // deprecated
        "earn": {
          "description": "spend $150",
          "threshold": 150,
          "type": "spend"
        },
        "redeem": {
          "type": "manual",
          "text": "$10 off",
          "venue": "all"
        }
      },
      "intro": {
        "earn": {
          "description": "sign up"
        },
        "redeem": {
          "type": "manual",
          "text": "free sandwich",
          "venue": "online"
        }
      },
      "birthday": {
        "earn": {
          "description": "provide your birthday"
        },
        "redeem": {
          "type": "automatic",
          "text": "10% off",
          "venue": "instore"
        }
      }
    }
  ]
}
Please review proper request headers here.

Parameters

merchant_id
string
Only return features for this merchant if you have access to multiple merchants

Response

merchant_id
string
The merchant ID
loyalty
hash
This attribute is deprecated and will be removed at the end of Q3 2023. Instead, use the points experiences endpoints.Describes the configuration for the loyalty campaign
intro
hash
Describes the configuration for the introductory campaign
birthday
hash
Describes the configuration for the birthday campaign
curl https://api.thanxsandbox.com/features \
  -X GET \
  -H "Content-Type: application/json"  \
  -H "Accept-Version: v4.0" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer ${token}" \
  -H "X-ClientId: ${client_id}" 
{
  "features": [
    {
      "merchant_id": "wourhfslur",
      "loyalty": { // deprecated
        "earn": {
          "description": "spend $150",
          "threshold": 150,
          "type": "spend"
        },
        "redeem": {
          "type": "manual",
          "text": "$10 off",
          "venue": "all"
        }
      },
      "intro": {
        "earn": {
          "description": "sign up"
        },
        "redeem": {
          "type": "manual",
          "text": "free sandwich",
          "venue": "online"
        }
      },
      "birthday": {
        "earn": {
          "description": "provide your birthday"
        },
        "redeem": {
          "type": "automatic",
          "text": "10% off",
          "venue": "instore"
        }
      }
    }
  ]
}