merchant_id (the
ID of the customer in your store or platform).
For convenience, the full program configuration, as returned by the Get
Configuration endpoint,
is also included in the response.
If you’re building your own headless web UI, you should generally call this once on each
page load, or, for a mobile app, once per “session”, e.g. when the customer opens or
resumes the app.
Compared to the read-only Get Customer endpoint, this endpoint can create and
enroll customers, and will trigger any relevant rules.
merchant_id, a new
customer will be created, potentially enrolled into the program, and returnedchannel is web and they’re viewing a relevant pagechannel is mobileAn API key linked to a Program in LoyaltyLion, with a set of permissions (scopes). API keys can be created manually, or acquired through an OAuth2 flow. The API key should be provided as a Bearer token in the Authorization header
Your LoyaltyLion Site ID. If a new customer is created from this API call, they'll be created in this Site, which is relevant for multi-site programs
The sales channel from which this request is made
web, pos, mobile Body
The customer involved in this session. If the customer does not yet exist in LoyaltyLion, they will be created with these properties
Additional information about this session, which can facilitate triggering rules, or improve program analytics
An empty cart. This can be used to quickly indicate a cart that is empty or, for platforms like Shopify, used when a cart does not yet exist because the shopper has not yet added any items to it
{ "kind": "empty" }200
The sales channel for which this response was generated
web, pos, mobile ISO 4217 code indicating the currency for any financial values in this response
"usd"
ISO 639-1 code indicating the language used for any text in this response
The customer matched by merchant_id. The customer's state property indicates if the customer is a member of the program (enrolled), not a member (guest), or has been blocked from the program (blocked)
The complete program configuration. This is the same configuration that is returned by the Get Configuration endpoint
If you included a serialized cart with the request, this may contain a list of requested actions to do with the cart, such as removing any reward items that are no longer valid