Fidelimax icon

Fidelimax

Integration with the Fidelimax API - Loyalty Program

Score Customer

AI-generated

Summary

Score or reverse the points for a customer based on a transaction in Brazilian Reais.

Inputs

  • CPF — Customer CPF; required if phone number is not provided.
  • Phone — Customer phone number; required if CPF is not provided.
  • Transaction Amount (BRL) (required) — Gross transaction value in Brazilian Reais, used to compute points.
  • Purchase Type — Description of the purchase type.
  • Transaction ID — Unique transaction ID, required when reversing a transaction.
  • Reverse Transaction — Flag to indicate whether to reverse the full score for this transaction.

Output shape

a list of JSON objects reflecting the API response for each input item

Each output item corresponds to one input item, containing the API response JSON. Errors include error messages if continueOnFail is enabled; otherwise, execution stops on error.

Examples

Example 1: Score points for a customer after a purchase

Provide either the customer's CPF or phone number, enter the transaction amount, optionally specify the purchase type and a unique transaction ID if needed, and set Reverse Transaction to false.

Example 2: Reverse points from a previous transaction

Provide the customer's CPF or phone number, the transaction amount, the unique transaction ID for the transaction to reverse, and set Reverse Transaction to true.

Links

Discussion