Before you start
- Authentication must be working — see API Authentication.
- The endpoints serve web and app channels (
/web/v1/…) and returnapplication/json.
Read the savings
1
Fetch the statements
GET /web/v1/statementsRetrieve the customer’s savings statements for the period. The list is paginated — see below.2
Fetch the statistics
GET /web/v1/statisticsRetrieve the aggregated totals to headline the savings view.Pagination
List endpoints use cursor-based pagination:- Include the
limitparameter to set the page size. - Read the
NextCursorfield from the response. - Pass that value as the
cursorparameter on the next request. - Stop when
NextCursoris null or empty.
Localization
Use theAccept-Language header (for example en, dk) to control the language of the localized display names in the response. It defaults to en.
Failure and edge cases
Because this is an aggregation over several services, a benefit appears here once its source service has recorded it — a just-completed purchase may take a moment to show up in the savings view.Related
- Savings History API reference
- Bonus and Promotion Platform — the underlying data