- Support
- Product Releases
- Blog
- Overview
- API References
- API Authentication
- Getting Started with fabric APIs
- Making your first API request
- Example
- Using Developer Portal
- Security and Compliance
- Product Catalog API - Overview
- Developer Guide
Attributes & Attribute Mapping
Categories
Products
Collections
Background Jobs
Bulk Import & Export
Published Products
Allocations
- Orders (3.0.0)
Backorders Preorders
Exports
Developer Guide
Invoices
Shopping Lists
Shopping List Items
Notifications
Orders
Returns
Cancellations
Tracking
Frauds
Payments
Appeasements
Credits
Shipments
Shipping Methods
Shipping Method Items
Webhooks
- Orders FAQ(s)
- Overview
- Algolia standard integration
- Avalara standard integration
- Constructor.io standard integration
- Stripe standard integration
- Offers (3.0.0)
Real-time Pricing Engine
Promotions
Webhook Events
Redemptions
Priced Products
Product Exclusion Lists
Price Types
Coupons
Coupon Codes
Segments
Prices
Price Methods
Price Controls
Price Lists
Add-ons
Exports
Imports
Attributes
Customer Profile
Customer Address
Customer Self
Getting Started
Product Catalog
Orders
Integrations
Offers
Customers
Create batch prices
Create one or more prices for items based on itemId
and itemSku
.
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Merchant's 24-character tenant ID
The sales channel ID.
The platform where the request is made.
A unique request ID.
The sample request to create batch prices.
curl --request POST \
--url https://api.fabric.inc/v3/prices/batch \
--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 '{
"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
}
}
]
}
]
}'
{
"data": [
{
"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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Merchant's 24-character tenant ID
The sales channel ID.
The platform where the request is made.
A unique request ID.
Body
The sample request to create batch prices.
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.
Product item ID whose price is created or updated
Product SKU to create or update the price for
Price start time
Price end time
Price details
Item base price. It is the minimum fixed price of the item before any taxes or other charges added.
Item sale price. It is the discounted price at which the item is sold to clear inventory.
Cost of the item set by the manufacturer. It is the amount that costs the manufacturer to produce or acquire the product.
Optional field used by merchants who wants to manage the prices of items with quantity-range prices
Price method name
QUANTITY_PRICING
, SQUARE_AREA_PRICING
, TABLE_PRICING_LENGTH_WIDTH
Item add-ons
Add-on ID
Pricing range based on SKU quantity
Minimum SKU quantity to get certain price
Maximum SKU quantity to get certain price
Price for the specific quantity range
Response
The sample response of price creation.
Product item ID whose price is created or updated
Item SKU
ID of the price list for which price details are created or updated
true:Record is deleted<br />false:Record is not deleted
Channel ID
Price list currency type
Item prices
Price start time
Price end time
Price details
Item base price. It is the minimum fixed price of the item before any taxes or other charges added.
Item sale price. It is the discounted price at which the item is sold to clear inventory.
Cost of the item set by the manufacturer. It is the amount that costs the manufacturer to produce or acquire the product.
Optional field used by merchants who wants to manage the prices of items with quantity-range prices
Price method name
QUANTITY_PRICING
, SQUARE_AREA_PRICING
, TABLE_PRICING_LENGTH_WIDTH
Item add-ons
Add-on ID
Pricing range based on SKU quantity
Minimum SKU quantity to get certain price
Maximum SKU quantity to get certain price
Price for the specific quantity range
Record's creation time
Record's last updated time
Was this page helpful?
curl --request POST \
--url https://api.fabric.inc/v3/prices/batch \
--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 '{
"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
}
}
]
}
]
}'
{
"data": [
{
"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"
}
]
}