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

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.

Path Parameters

itemId
number
required

Item ID for which prices are retrieved

Query Parameters

size
integer
default: 10

The maximum number of records per page.

startCursor
string

Specifies the record from which the search will start, effectively skipping all records before this point.

priceListId
integer

Price list ID to which the item belongs. If not sent, the default price list is considered.

status
enum<string>
default: ALL

Status to filter prices <br />ACTIVE displays current prices or regular prices. These are the prices that are actively displayed and are applied to products on an ongoing basis. <br />SCHEDULED displays prices that will be applied to products in future. Retailers often use scheduled prices as part of their marketing campaigns to attract customers, generate sales, clear inventory, or create a sense of urgency. <br />ALL displays both ACTIVE and SCHEDULED prices.

Available options:
ACTIVE,
SCHEDULED,
ALL

Response

200 - application/json
query
object

The pagination details.

priceMetadata
object
data
object[]