Please review proper request headers here .
Parameters
Only return features for this merchant if you have access to multiple
merchants
Response
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 Describes how the loyalty reward is earned What the user should do to earn the reward
Whether the user earns progress via how much they spend or how many
times they visit. Returns ‘spend’ or ‘visit’.
How much the user needs to spend or how many visits the user needs to
make to earn the reward.
Describes what the reward is How the reward can be redeemed (manual
, automatic
)
Description of what the loyalty reward is
Where the reward can be used: (instore
, online
, all
)
Describes the configuration for the introductory campaign Describes how the introductory reward is earned What the user should do to earn the reward
Describes what the reward is How the reward can be redeemed (manual
, automatic
)
Description of what the introductory reward is
Where the reward can be used: (instore
, online
, all
)
Describes the configuration for the birthday campaign Describes how the birthday reward is earned What the user should do to earn the reward
Describes what the reward is How the reward can be redeemed (manual
, automatic
)
Description of what the birthday reward is
Where the reward can be used: (instore
, online
, all
)
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"
}
}
}
]
}