Register a customer transaction and award loyalty points based on company configuration and automatic modifiers
base_points = transaction_value × points_per_currency_unit, then rounding is applied according to company configuration, followed by modifier multipliers.minimum_transaction earn 0 points| Code | Description |
|---|---|
customer_not_found | Customer doesn’t exist or is inactive |
company_not_found | Invalid company_id provided |
company_mismatch | Customer not associated with this company |
transaction_below_minimum | Transaction value below minimum threshold |
invalid_currency | Currency other than BRL provided |
duplicate_transaction | Transaction with same order_id already processed |
calculation_error | Error in points calculation engine |