- 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
Attributes Mapping
Attributes
- Developer Guide
- Product Catalog API - Overview
- Product Catalog - Attributes API
Attribute Groups
Bulk Action for Categories and Collections
Categories
Collections
- Navigation Paths
Files
Jobs
Product Operations by ID
Product Operations by SKU
General Product Operations
- Product Catalog - Files and Jobs API
Published Products by ID
Published Products by SKU
- Product Catalog - Published Products API
- Product Catalog FAQs
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
Search for inventories
Search for inventories based on filter criteria.
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Merchant's 24-character tenant ID
Sales channel ID
Unique request ID
Sample request to search inventory
Property by which data is sorted
curl --request POST \
--url https://api.fabric.inc/v3/inventories/search \
--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 '{
"sort": "-inventory.createdAt",
"filters": [
{
"field": "inventory.sku",
"value": "*V3",
"condition": "EQ"
},
{
"field": "inventory.locationNumber",
"values": [
"3173*",
"45213"
],
"condition": "IN"
}
]
}'
{
"pagination": {
"limit": 10,
"offset": 1,
"count": 1000
},
"data": [
{
"inventoryId": "723910d81723",
"sku": "SKU1",
"itemId": 12345,
"locationNumber": 12345,
"region": "North America",
"channelId": "channel_xyz",
"vendorId": "vendor1",
"createdAt": "2022-08-01T18:03:28.483Z",
"updatedAt": "2022-08-01T20:03:28.483Z",
"leadTime": "5 days",
"type": "primary",
"hasInfiniteInventory": true,
"backorderShipmentAt": "2022-08-01T20:03:28.483Z",
"preorderShipmentAt": "2022-08-01T20:03:28.483Z",
"backorderLimit": 50,
"preorderLimit": 40,
"safetyStock": 10,
"lowStock": 10,
"networkCode": "ShipToHome",
"counters": {
"onHand": 100,
"allocated": 10,
"shipped": 20
},
"customAttributes": {
"isBopis": true
}
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Merchant's 24-character tenant ID
Sales channel ID
Unique request ID
Body
Property by which data is sorted
Field name
Filter conditions. <br /> EQ (Equal to): Searches for exact match. <br /> NEQ (Not equal to): Searches by excluding the specified value. <br /> IN: Search for multiple values. <br /> NIN (Not IN): Excludes the specified values in the search. LT (Less than): Searches for values that are less than the specified value. GT (Greater than): Search for values that are greater than the specified value. LTE (Less than or equal to): Searches for values that are less than or equal to the specified value. GTE (Greater than or equal to): Searches for values that are greater than or equal to the specified value.
EQ
, NEQ
, IN
, NIN
, LT
, GT
, LTE
, GTE
A single value for field
using which data is searched
Response
Pagination response
Maximum number of records per page
Number of records to skip before returning all records. For example, offset=20, limit=10
returns records 21-30.
Total number of search results
System-generated inventory ID. This ID is generated during inventory creation.
Product SKU (Stock Keeping Unit) identifier. It serves as the primary reference key for the inventory and provides uniqueness to the item.
Merchant-defined item ID whose inventory is created or updated. If omitted, fabric Inventory service generates the itemId
. If you choose to use the itemId
in your environment, you must include it in all inventory Write requests.
Represents the warehouse or store location where the inventory is stored. It is recommended to link locationNumber
to the corresponding value in the fabric Locations service.
Region where inventory is managed
Sales channel ID; identifies business operations location.
ID of the vendor who will replenish the inventory for the retailer
Time of inventory creation
Time when inventory was last updated
Time between when an order is placed to replenish inventory and when the order is received at warehouse
Inventory type - a classifier attribute that provides flexibility to define inventory types
Infinite inventory flag.<br />true: Inventory can be used any number of times and does not have any consumption limit.<br />false: Inventory cannot be used infinitely, and has a consumption limit.
Time when backorder is shipped
Time when preorder is shipped
Maximum restock inventory quantity
Maximum first-shipping inventory quantity
Reserved inventory quantity at the location
Inventory quantity below which consumer service wants to be alerted as low stock at the location
Code of the network to which the inventory belongs
Merchant-defined inventory counter (also known as inventory position)
Placeholder for additional info
Was this page helpful?
curl --request POST \
--url https://api.fabric.inc/v3/inventories/search \
--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 '{
"sort": "-inventory.createdAt",
"filters": [
{
"field": "inventory.sku",
"value": "*V3",
"condition": "EQ"
},
{
"field": "inventory.locationNumber",
"values": [
"3173*",
"45213"
],
"condition": "IN"
}
]
}'
{
"pagination": {
"limit": 10,
"offset": 1,
"count": 1000
},
"data": [
{
"inventoryId": "723910d81723",
"sku": "SKU1",
"itemId": 12345,
"locationNumber": 12345,
"region": "North America",
"channelId": "channel_xyz",
"vendorId": "vendor1",
"createdAt": "2022-08-01T18:03:28.483Z",
"updatedAt": "2022-08-01T20:03:28.483Z",
"leadTime": "5 days",
"type": "primary",
"hasInfiniteInventory": true,
"backorderShipmentAt": "2022-08-01T20:03:28.483Z",
"preorderShipmentAt": "2022-08-01T20:03:28.483Z",
"backorderLimit": 50,
"preorderLimit": 40,
"safetyStock": 10,
"lowStock": 10,
"networkCode": "ShipToHome",
"counters": {
"onHand": 100,
"allocated": 10,
"shipped": 20
},
"customAttributes": {
"isBopis": true
}
}
]
}