Session management
Was this helpful?
Was this helpful?
Retrieves a specified session context. Recommended for performing calls on the management side.
Required scopes
session_context.context_manage
Your Emporix tenant's name.
Note: The tenant name should always be provided in lowercase.
^[a-z][a-z0-9]+$
Customer's session ID.
{"Session context":{"sessionId":"62528895-b561-4518-bfdc-2cbf52a07845","customerId":"C87362407845","siteCode":"main","currency":"EUR","targetLocation":"DE","cartId":"61079711ce0eb90861357045","context":{"property1":{"property3":"propertyValue"},"property2":{"property3":"propertyValue"}},"metadata":{"version":1,"createdAt":"2022-09-20T12:33:52.456Z","modifiedAt":"2022-09-20T12:33:52.456Z"}}}
Updates a specified session context. Recommended for performing calls on the management side.
Note: To update a session context, you need to provide its current metadata.version
value in the request body.
Required scopes
session_context.context_manage
Your Emporix tenant's name.
Note: The tenant name should always be provided in lowercase.
^[a-z][a-z0-9]+$
Customer's session ID.
true
and the session with the specified id does not exist, the session will be created.false
or not specified, a standard update will be performed.Customer access token.
Note: This header is only required if the session context belongs to a logged-in customer. In that case, the value of the token and the customerId
in the request body must belong to the same customer.
{"Update of a session context":{"sessionId":"62528895-b561-4518-bfdc-2cbf52a07845","customerId":"C87362407845","siteCode":"main","currency":"EUR","cartId":"512950192-b561-4518-bfdc-2cbf52a07845","targetLocation":"DE","metadata":{"version":1}}}
No content