Loyalty Cashback APIs
How to give cashback to a customer via API?
To give cashback to a customer via API, use the API endpoint /api/v1/cashback-fidelity.
You can find the documentation for this endpoint here.
The required fields to give cashback are:
value: The cashback amount in cents.taxID: TaxID (CPF/CNPJ) of the customer.
curl 'https://api.woovi.com/api/v1/cashback-fidelity' -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "user-agent: node-fetch" --data-binary '{"taxID":"cpf-cnpj","value":1500}
Note: The customer must already exist on the platform.
How to check a customer's cashback balance via API?
To check a customer's cashback balance via API, use the API endpoint /api/v1/cashback-fidelity/balance/:cpf-cnpj.
You can find the documentation for this endpoint here.
/api/v1/cashback-fidelity/balance/{taxID}
curl 'https://api.woovi.com/api/v1/cashback-fidelity/balance/${cpf-cnpj}/balance' -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "user-agent: node-fetch" --data-binary '{"taxID":"cpf-cnpj","value":1500}