- Less than a minute to read
To manage customers of your online store, you must create storefront users first.
The endpoint StorefrontUsers_Create registers a user and creates private storage for this user. When registering a user, you must explicitly specify whether the user is anonymous.
Before registering a user, you may need to check if the customer already exists. To do so, call the endpoint StorefrontUsers_Get.
To access the private storage, you need a customer token. You can get it using the endpoint StorefrontUsers_GetToken. The customer token represents a classic JSON Web Token (JWT) prepared by the Customer's Canvas authorization module. You must pass this token to the personalization tool to work with the data of a specific customer.
Sometimes the user can start personalization in the anonymous mode, and to place an order, this user logs in to the permanent account. In this case, you need to move the data from the private storage to the permanent data folder. The endpoint StorefrontUsers_MergeAnonymous helps transfer the data from temporary storage to private storage linked to the customer ID in the online store. Note that data transfer is only possible from an anonymous user to a permanent user.