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

Authorizations

Authorization
string
header
required

Headers

x-fabric-tenant-id
string
required
Required string length: 24
x-fabric-channel-id
string
Example:
x-client-id
string
x-fabric-request-id
string
Example:

Body

application/json
offers
object[]
required
Required array length: 1 - 10 elements
priceListId
integer
Example:
itemId
integer
Example:
itemSku
string
Example:

Response

priceListId
integer
required
Example:
channelId
string
required
Example:
currency
string
required
Example:
offers
object[]
required
itemId
integer
Example:
itemSku
string
Example:
isDeleted
boolean
Example:
createdAt
string<date-time>
Example:
updatedAt
string<date-time>
Example: