XOMNI: Experience Omni-Channel

Last Updated: May 05, 2016

The API provides to update prices of an item with a single API call.

Request

[
  {
      "NormalPrice": 30.0,
      "DiscountPrice": 20.0,
      "PriceTypeId": 20
  },
  {
      "NormalPrice": 15.0,
      "DiscountPrice": 10.0,
      "PriceTypeId": 21
  }
]
HTTP Method Resource URI
PUT https://{tenantName}.api.xomni.com/private/catalog/items/{itemId}/prices

URI Parameters

Parameter Name Description Type Conditions
itemId The unique ID of an item Number

Request Body Description

Parameter Name Description Type Conditions
[0..N].ItemId Unique id of the item. Number
[0..N].NormalPrice The regular price of the item. Number
[0..N].DiscountPrice The discounted price of the item. Number
[0..N].PriceTypeId Id of the price type Number

Request Headers

Header Field Name Description
Content-Type
Content type of the response entity. The value of this header is always application/json.
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

[
    {
        "PriceId": 40,
        "ItemId": 57,
        "NormalPrice": 30.0,
        "DiscountPrice": 20.0,
        "PriceTypeSymbol": $,
        "PriceTypeId": 20
    },
    {
        "PriceId": 41,
        "ItemId": 57,
        "NormalPrice": 15.0,
        "DiscountPrice": 10.0,
        "PriceTypeSymbol": €,
        "PriceTypeId": 21
    }
]

Response Body Description

Parameter Name Description Type
[0..N].PriceId Unique id of the price. Number
[0..N].ItemId Unique id of the item. Number
[0..N].NormalPrice The regular price of the item. Number
[0..N].DiscountPrice The discounted price of the item. Number
[0..N].PriceTypeSymbol Symbol of the price type String
[0..N].PriceTypeId Id of the price type 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
400 (Bad Request) Given currency could not be found.
404 (Not Found) Given item could not be found.