Create a new promocode
curl -X POST 'http://localhost:8765/api/promocode' -H "Content-Type: application/json" -d '{"name":"WeatherCode","avantage":{"percent":20},"restrictions":{"or":[{"age":40},{"age":{"lt":35,"gt":15}}],"meteo":{"is":"clear","temp":{"gt":15}}}}'
Get authorization for a promocode
curl -X POST 'http://localhost:8765/api/reduction' -H "Content-Type: application/json" -d '{"promocode_name":"WeatherCode","arguments":{"age":"24"}}'