The customer wants us to use the user's purchase information from the beginning of the store's operation on the platform, not just from the integration with edrone.
In this way, users, once they exceed a specific total purchase value, would receive a permanent code that would work for every order. This could be divided into levels, e.g. bronze, silver, gold, and each level would mean a different level of permanent discount.