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"
}
}
}
]
}
This endpoint returns the configuration for a merchant’s features. If a merchant does not have a particular feature defined or enabled, the value for the associated feature key will be empty.
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"
}
}
}
]
}
Show loyalty
Show earn
Show intro
Show earn
Show birthday
Show birthday
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"
}
}
}
]
}