Personal Account

The personal account typically displays basic information about the client:
Full name, phone number, email address, and gender. Generally, the user can independently change this data.
When personal information is changed, it is necessary to pass the updated client data to Sailplay.
To do this, use the POST /users/update method (Clients section) in the Sailplay API.
The request should be sent upon clicking the "Save" button in the personal account.
Points Balance

Display the history of bonus points accruals and deductions for purchases.
This helps the client monitor their own expenses and plan further use of points.
For this, it is recommended to create a separate block in the personal account displaying:
- current points balance
- transaction history
To retrieve the data, use the GET /users/info method (Clients section) in the Sailplay API upon each page refresh.
The method returns the necessary information in the points and history parameters.
Subscription to Mailings / Unsubscription from Mailings

When registering a client in the loyalty program, automatic subscription to email and SMS mailings may be configured in Sailplay.
So that the client can independently manage subscriptions:
- add subscription checkboxes in the personal account
- handle checkbox state changes via the API
To manage subscriptions, use:
- POST
/users/subscribe— client subscription - POST
/users/unsubscribe— client unsubscription
Both methods are available in the Clients section in the Sailplay API and use a similar set of parameters.