POST
/
prices
curl --request POST \
  --url https://api.fabric.inc/v3/prices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-fabric-channel-id: <x-fabric-channel-id>' \
  --header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
  --data '{
  "priceListId": 100000,
  "itemId": 10000001,
  "itemSku": "SKU0123456",
  "offers": [
    {
      "type": "Sale",
      "startAt": "2019-08-24T14:15:22Z",
      "endAt": "2019-08-25T14:15:22Z",
      "price": {
        "base": 299.99,
        "sale": 199.99,
        "cost": 148.99
      }
    }
  ]
}'
{
  "priceListId": 100000,
  "itemId": 10000001,
  "itemSku": "SKU0123456",
  "isDeleted": false,
  "channelId": "12",
  "currency": "USD",
  "offers": [
    {
      "type": "Sale",
      "startAt": "2019-08-24T14:15:22Z",
      "endAt": "2019-08-25T14:15:22Z",
      "price": {
        "base": 299.99,
        "sale": 199.99,
        "cost": 148.99
      }
    }
  ],
  "createdAt": "2019-08-20T14:15:22Z",
  "updatedAt": "2019-08-20T14:15:22Z"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-fabric-tenant-id
string
required

Merchant's 24-character tenant ID

x-fabric-channel-id
string
required

The sales channel ID.

x-client-id
string

The platform where the request is made.

x-fabric-request-id
string

A unique request ID.

Body

application/json
priceListId
integer

ID of the price list for which prices will be created or updated. If you do not mention priceListId, price will be created or updated for the default price list.

itemId
integer
required

Product item ID whose price is created or updated

itemSku
string
required

Product SKU to create or update the price for

offers
object[]
required

Response

201 - application/json
itemId
integer
required

Product item ID whose price is created or updated

itemSku
string

Item SKU

priceListId
integer
required

ID of the price list for which price details are created or updated

isDeleted
boolean

true:Record is deleted<br />false:Record is not deleted

channelId
string
required

Channel ID

currency
string
required

Price list currency type

offers
object[]
required

Item prices

createdAt
string

Record's creation time

updatedAt
string

Record's last updated time