API reference · CashBack

Get Marketplace Total Cashback Balance

GEThttps://api.sandbox.cws.digital/v1/cashback/totalIn homologation

Description

Returns the cashback balance of your store, summed by type and by status.

It is the consolidated view: one number per status, with no detail per customer or per order.

Business rules

Balance statuses

In credit and in debit, the key is the status and the value is the total in that status, in reais. There are no fixed fields: only the statuses with a balance appear.

StatusWhere it appearsMeaning
TO_RELEASEcreditGranted, still in the grace period: the customer cannot use it.
RELEASEDcreditReleased for use.
CANCELLEDcredit · debitCancelled.
INVALID_EXPIREDcreditCredit that expired without being used.
IN_USEdebitReserved in an open cart.
USEDdebitActually consumed in a purchase.
EXPIREDdebitDebit of a balance that expired.

Responses

  • 401

    Missing, malformed or expired token.

  • 404

    The store has no cashback entry.

Try it

Sandbox

Language

Credentials

Access token: saved in this tab and used on every endpoint.

Each token only reaches the partner's own data and that of the branches with an authorized link.

Don't have sandbox credentials yet? See how to request them

Request

cURL
curl --request GET \
  --url 'https://api.sandbox.cws.digital/v1/cashback/total' \
  --header 'Authorization: Bearer <access_token>'

Response

Click Try it to see the real response here, or pick a documented example: