🆓Freedelity

Freedelity's API is available here: https://docs.freedelity.be/api/index.html


Sections


APIs

// 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 /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 /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'"
  }
}

Last updated