🆓Freedelity
Sections
APIs
[POST] Reward (https://docs.freedelity.be/api/POST_historyreward.html)
// POST /api/fidel/historyreward/storeid[0-9]/userid[0-9]
{
"url": "https://api.freedelity.be/api/fidel/historyreward/{{draw.source_id}}/{{draw.user_uid}}",
"api_key": "**********",
"method": "post",
"headers": { "Content-Type": "application/json" },
"datas": {
"remarks": "reward.name" // "InternalRewardName"
}
}[POST] Voucher (https://docs.freedelity.be/api/POST_voucher.html)
// POST /api/vouchers/voucher/storeid[0-9]
{
"url": "https://api.freedelity.be/api/vouchers/voucher/{{draw.source_id}}",
"api_key": "**********",
"method": "post",
"headers": { "Content-Type": "application/json" },
"datas": {
"owner": "user_uid",
"value": "value_played",
"minpurchase": "value_played",
"template": "reward.custom_data['template']", // 123
"name": "reward.custom_data['campaign']" // "OperationName"
}
}[POST] User (https://docs.freedelity.be/api/POST_customernoeid.html)
// POST /api/fidel/customernoeid/storeid[0-9]
{
"url": "https://api.freedelity.be/api/fidel/customernoeid/{{draw.source_id}}",
"api_key": "**********",
"method": "post",
"headers": { "Content-Type": "application/json" },
"datas": {
"name": "lastname",
"firstname": "firstname",
"email": "email",
"birthdate": "birthdate",
"postcode": "zip",
"sendemail": "poke_data.dig('form_data','optin1') ? 'Y' : 'N'"
}
}Make sure to use a static store_id instead of {{draw.source_id}} in case you don't have the info in your pokes!
Last updated