Skip to main content

Cashback APIs

How to give cashback to a customer via API?​

To give cashback to a customer via API, use the API's /api/v1/cashback-fidelity endpoint.

You can find the documentation for this endpoint here.

The required fields to give cashback are the following:

  • value: The cashback amount in cents.
  • taxID: The customer's TaxID (CPF/CNPJ).
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 have been created 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's /api/v1/cashback-fidelity/balance/:cpf-cnpj endpoint.

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}