XOMNI: Experience Omni-Channel

Shopping Cart API Set

Deleting a shopping cart

HTTP DELETE /pii/shoppingcart?shoppingCartUniqueKey={shoppingCartUniqueKey}

This API allows a client application to delete a shopping cart.

Fetching all shopping carts

HTTP GET /pii/shoppingcarts

This API allows you to retrieve specified PIIUser’s shopping carts.

Creating a shopping cart

HTTP POST /pii/shoppingcart

This API allows a client application to create new shopping cart for the PII User determined based on the PIIToken value sent through the HTTP header with each HTTP request.

Changing shopping cart name

HTTP PUT /pii/shoppingcart

This API helps a client application to change the name of a particular shopping cart.

Clearing all items in a shopping carts

HTTP DELETE /pii/shoppingcarts

This API enables a client application to clear all the shopping cart items from a shopping cart with just one API call. This operation does not delete the shopping cart; it only removes shopping cart items from a shopping cart.

Fetching a shopping cart with a shopping cart unique key

HTTP GET /pii/shoppingcart?shoppingCartUniqueKey={shoppingCartUniqueKey}&longitude={longitude}&latitude={latitude}&includeItemStaticProperties={includeItemStaticProperties}&includeItemDynamicProperties={includeItemDynamicProperties}&includeCategoryMetadata={includeCategoryMetadata}&imageAssetDetail={imageAssetDetail}&videoAssetDetail={videoAssetDetail}&documentAssetDetail={documentAssetDetail}&metadataKey={metadataKey}&metadataValue={metadataValue}

This API allows a client application to fetch all the shopping cart items based on the shopping cart unique key. Shopping cart items may be used by client applications to display shopping cart of a particular user. This is especially useful when an application needs to fetch close-by shopping carts and fetch the shopping cart of a PII whose token is not available client side.

Emailing a shopping cart

HTTP POST /pii/shoppingcart/mail

This API allows a client application to send the specified shopping cart content as an e-mail. The API provides 3 different functionality. 1- If the client app does not send a PIIToken through the request header, ‘To’ field is required. 2- If client app sends an Anonymous PIIToken through the request header, ‘To’ field is required. 3- If client app sends a Loyalty PIIToken through the request header, ‘To’ field is optional. By default, the API sends an email to the e-mail address of the loyalty user. Based on the “MailTemplateName” parameter in request body, the client app can decide which email template should be used.

Changing shopping cart access information

HTTP POST /pii/shoppingcartaccess?shoppingCartUniqueKey={shoppingCartUniqueKey}&isPublic={isPublic}

This API helps change visibility of shopping cart.