Skip to main content

getBonusBalance

Getting bonus balance of the current user. 🔐 This method requires authorization.

Description

This method retrieves the bonus balance of the currently authenticated user. It returns a Promise that resolves to an IBonusBalanceEntity object.

Discounts.getBonusBalance(

);

Examples

Minimal example

const response = await Discounts.getBonusBalance();

Example response

{
"balance": 0
}

Response schema

Schema: IBonusBalanceEntity

balance: number
The balance of bonus points.
example: 100