curl --request GET \
--url https://api.rootfi.dev/v4/ecommerce/items \
--header 'api_key: <api-key>'{
"data": [
{
"rootfi_id": 157,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "prod_789",
"name": "Wireless Headphones",
"description": "Premium wireless headphones with noise cancellation",
"sku": "WH-2024-BLK",
"status": "active",
"created_at": "2024-01-22T05:07:31.465Z",
"updated_at": "2024-01-22T05:07:31.000Z",
"variants": [
{
"rootfi_id": 3101,
"platform_id": "var_shopify_001",
"name": "Black - Medium",
"sku": "WH-2024-BLK-M",
"price": 99.99,
"compare_at_price": 129.99,
"currency_id": "USD",
"status": "active"
}
]
}
],
"prev": "eyJyb290ZmlfaWQiOjQ0MDA2MX0=",
"next": "eyJyb291ZmlfaWQiOjQ0MDA2MX0=",
"total_count": 123
}Retrieve all items (products with variants) from the database. V4 endpoint that replaces /ecommerce/products.
curl --request GET \
--url https://api.rootfi.dev/v4/ecommerce/items \
--header 'api_key: <api-key>'{
"data": [
{
"rootfi_id": 157,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "prod_789",
"name": "Wireless Headphones",
"description": "Premium wireless headphones with noise cancellation",
"sku": "WH-2024-BLK",
"status": "active",
"created_at": "2024-01-22T05:07:31.465Z",
"updated_at": "2024-01-22T05:07:31.000Z",
"variants": [
{
"rootfi_id": 3101,
"platform_id": "var_shopify_001",
"name": "Black - Medium",
"sku": "WH-2024-BLK-M",
"price": 99.99,
"compare_at_price": 129.99,
"currency_id": "USD",
"status": "active"
}
]
}
],
"prev": "eyJyb290ZmlfaWQiOjQ0MDA2MX0=",
"next": "eyJyb291ZmlfaWQiOjQ0MDA2MX0=",
"total_count": 123
}The number of items you want to retrieve
The next page of objects to retrieve
The previous page of objects to retrieve
Comma separated fields to expand. Supported values are variants
Comma separated fields to select. Supported values are raw_data, data_hash
Filter by rootfi_updated_at Greater than or Equal To.
Filter by rootfi_company_id. You can filter by any field using this syntax field_name[operator]
Filter by item status. Values: active, archived, draft, unknown
Return the count of the objects. Supported values are true and false
Sort by rootfi_created_at
ASC, DESC Sort by rootfi_updated_at
ASC, DESC