XOMNI: Experience Omni-Channel

Last Updated: May 05, 2016

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

Request

{
    "UniqueKey": "f3924b10-02e2-4f9a-8f7c-d6fdcb5a9b92",
    "Name": "Test ShoppingCart1",
    "LastSeenLocation":
     {
          "Longitude": -122.335197,
          "Latitude": 47.646711
     },
}
HTTP Method Resource URI
PUT https://{tenantName}.api.xomni.com/pii/shoppingcart

Request Body Description

Parameter Name Description Type Conditions
UniqueKey The unique key of the shopping cart. String
Name The name of the shopping cart. String
LastSeenLocation.Longitude Longitude value of the location. Number
LastSeenLocation.Latitude Latitude value of the location. Number

Request Headers

Header Field Name Description
Content-Type
Content type of the response entity. The value of this header is always application/json.
PIIToken
Includes the base64-encoded “Personally Identifiable Information” data.
Sample: dXNlcm5hbWU6SW5uQXBwc1VzZXI7cGFzc3dvcmQ6SW5uQXBwc1Bhc3M=
Authorization
Access or identity token taken from oauth APIs.
Sample: Bearer dc8f1dcdbe454da8a25621839a93569337522968019e4bd7becd6e01285444da
Accept
Includes minor version header.
Sample: application/vnd.xomni.api-v4-1, */*

Response

{
    "Data":
        {
            "UniqueKey": "f3924b10-02e2-4f9a-8f7c-d6fdcb5a9b92",
            "Name": "Test ShoppingCart1",
            "LastSeenLocation":
            {
                "Longitude": -122.335197,
                "Latitude": 47.646711
            },
            "IsPublic": true
        }
}

Response Body Description

Parameter Name Description Type
Data.UniqueKey The unique key of the shopping cart. String
Data.Name The name of the shopping cart. String
Data.IsPublic Indicates whether the shopping cart is publicly visible or not. Bool
Data.LastSeenLocation.Longitude Longitude value of the location. Number
Data.LastSeenLocation.Latitude Latitude value of the location. Number

Response Headers

Header Field Name Description
Content-Type
Content type of the response entity. The value of this header is always application/json.

Status Codes

A successful operation returns status code 200 (OK) for PUT operations. Possible response status codes are as listed below:

Status Code Description
404 (Not Found) Shopping cart could not be found.