XOMNI: Experience Omni-Channel

Last Updated: May 05, 2016

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.

Request

{
    "Name": "Test ShoppingCart",
    "LastSeenLocation": {
        "Longitude": -122.335197,
        "Latitude": 47.646711
    },
    "IsPublic": false,
}
HTTP Method Resource URI
POST https://{tenantName}.api.xomni.com/pii/shoppingcart

Request Body Description

Parameter Name Description Type Conditions
Name The name of the shopping cart. String
IsPublic A Boolean value indicating whether the shopping cart is publicly visible. Bool
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 ShoppingCart",
            "LastSeenLocation":
            {
                "Longitude": -122.335197,
                "Latitude": 47.646711
            },
            "IsPublic": false
        }
}

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.