What is an achievement definition?
Much like point definitions, achievement definitions are a configurable ‘template’ used when adding a profile achievement. Use Add Achievement Definition to specify your new type of achievement. After this, you can then Add a Profile Achievement to a profile, using your newly created definition.See Achievements for a full explanation of how achievement definitions, levels, and profile achievement instances work.
Achievement definition properties
What the dates do and do not do
starts_at and ends_at are a presentation contract. They describe the window in which the achievement is offered to customers. They are not enforced anywhere in the earning path.
This bites hardest with batched or replayed transactions. A POS batch delivered tonight can carry sales transacted days ago; the reaction fires when the batch lands, not when the sale happened. Gate on the transaction’s own transacted_at, never on when Omneo received it.