Download OpenAPI specification:Download
Manage the customers' browser session context.
Key Features:
Key Benefits:
Retrieves a specified session context. Recommended for performing calls on the management side.
Required scopes
session_context.context_manage
The request was successful. Session context details are returned.
A session context with the provided ID was not found.
A server-side error occurred.
{- "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
The request was successful. The session context has been updated.
A session context with the provided ID was not found.
A server-side error occurred.
{- "sessionId": "62528895-b561-4518-bfdc-2cbf52a07845",
- "customerId": "C87362407845",
- "siteCode": "main",
- "currency": "EUR",
- "cartId": "512950192-b561-4518-bfdc-2cbf52a07845",
- "targetLocation": "DE",
- "metadata": {
- "version": 1
}
}
{- "sessionId": "62528895-b561-4518-bfdc-2cbf52a07845",
- "code": 404,
- "message": "Session not found"
}
Removes a particular attribute from a specified session context. Recommended for performing calls on the management side.
Note: Optimistic locking is not taken into account here.
Required scopes
session_context.context_manage
The request was successful. The attribute has been deleted from the session context.
A session context with the provided ID was not found.
A server-side error occurred.
{- "sessionId": "62528895-b561-4518-bfdc-2cbf52a07845",
- "code": 404,
- "message": "Session not found"
}
Adds an attribute to a session context file for a session with a given sessionId. Recommended for performing calls on the management side.
Note: Optimistic locking is not taken into account here.
Required scopes
session_context.context_manage
The request was successful. The attribute was added to the session context.
A session context with the provided ID was not found.
A server-side error occurred.
{- "key": "additional attribute name",
- "value": "61079711ce0eb90861357045"
}
{- "sessionId": "62528895-b561-4518-bfdc-2cbf52a07845",
- "code": 404,
- "message": "Session not found"
}
Retrieves a session context associated with the sessionId
derived from the Authorization token used in the call.
Recommended for performing calls on the storefront.
The request was successful. Session context details are returned.
A session context with the provided ID was not found.
A server-side error occurred.
{- "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"
}
}
Partially updates a session context associated with the sessionId
derived from the Authorization token used in the call.
Recommended for performing calls on the storefront.
Note: To update a session context, you need to provide its current metadata.version
value in the request body.
Note: Only specific fields can be updated this way, and the rest is ignored. The fields allowed to be updated: siteCode
, currency
, targetLocation
, context
.
The request was successful. The session context has been updated.
A session context with the provided ID was not found.
A server-side error occurred.
{- "siteCode": "main",
- "currency": "EUR",
- "targetLocation": "DE",
- "metadata": {
- "version": 1
}
}
{- "sessionId": "62528895-b561-4518-bfdc-2cbf52a07845",
- "code": 404,
- "message": "Session not found"
}
Removes a specified attribute from a session context associated with the sessionId
derived from the Authorization token used in the call.
Recommended for performing calls from the storefront.
Note: Optimistic locking is not taken into account here.
The request was successful. The attribute has been deleted from the session context.
A session context with the provided ID was not found.
A server-side error occurred.
{- "sessionId": "62528895-b561-4518-bfdc-2cbf52a07845",
- "code": 404,
- "message": "Session not found"
}
Adds an attribute to a session context associated with the session-id derived from the Authorization token used in the call. Recommended for performing calls from the storefront.
Note: Optimistic locking is not taken into account here.
The request was successful. The attribute was added to the session context.
A session context with the provided ID was not found.
A server-side error occurred.
{- "key": "additional attribute name",
- "value": "61079711ce0eb90861357045"
}
"attr1"