get https://{host}/v2/customers//points/balance
Retrieves points balance of a customer from a single program or all programs of the org. Points are aggregated for each Point Category - Main, delayed accrual, and external trigger based.
This is a light API.
Important Note
When | fetchDataForAllPrograms is true | fetchDataForAllPrograms is false |
---|---|---|
programId is passed | You will still see points balance of the customer across all programs. | You will still see points balance of the customer for that particular program. |
programId is not passed | You will still see points balance of the customer across all programs. | You will still see points balance of the customer for the default program. |
Response Parameters
Parameter | Datatype | Description |
---|---|---|
entityId | long | Unique ID of the customer. |
promisedPointsBreakup | obj | Break up details of promised points. |
mainPoints | int | The points converted from promised points to current points. Points available to redeem now. |
totalPoints | int | Total promised & current points. |