API reference · CashBack
Get Marketplace Total Cashback Balance
GET
https://api.sandbox.cws.digital/v1/cashback/totalIn homologationDescription
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.
| Status | Where it appears | Meaning |
|---|---|---|
TO_RELEASE | credit | Granted, still in the grace period: the customer cannot use it. |
RELEASED | credit | Released for use. |
CANCELLED | credit · debit | Cancelled. |
INVALID_EXPIRED | credit | Credit that expired without being used. |
IN_USE | debit | Reserved in an open cart. |
USED | debit | Actually consumed in a purchase. |
EXPIRED | debit | Debit of a balance that expired. |
Responses
- 401
Missing, malformed or expired token.
- 404
The store has no cashback entry.