Products of a workspace, in title order
GET
/api/v1/workspaces/{workspaceId}/products
const url = 'https://api.crossmart.io/api/v1/workspaces/example/products?status=DRAFT&gap=images&storeFilter=in_store&sort=title&direction=asc&limit=25';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.crossmart.io/api/v1/workspaces/example/products?status=DRAFT&gap=images&storeFilter=in_store&sort=title&direction=asc&limit=25'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string
Query Parameters
Section titled “Query Parameters”search
string
Matches title, handle or SKU
status
string
gap
string
Only products that lack this value
tags
Array<string>
Only products with any of these tags. Repeat the parameter for several.
vendor
string
Only products of this vendor, ignoring case
storeFilter
string
By the stores products are in; in_store and not_in_store need storeId
storeId
string format: uuid
The store storeFilter is about
sort
string
direction
string
cursor
string format: uuid
nextCursor from the previous page
page
number
1-based page number, for tables with page numbers. It wins over cursor.
limit
number
Responses
Section titled “Responses”Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
handle
required
string
title
required
string
status
required
string
vendor
required
string
productType
required
string
variantCount
required
number
totalAvailable
required
Stock across variants that track it; null when none do
number
priceRange
required
object
min
required
Decimal string in the workspace currency
string
max
required
string
imageUrl
required
string
stores
required
The stores it is in, in the order it joined them
Array<object>
object
connectionId
required
string format: uuid
channel
required
string
storeName
required
string
status
required
string
source
required
string
updatedAt
required
string format: date-time
nextCursor
required
Null on the last page
string
total
required
How many match in all, for page numbers
number
Example
{ "items": [ { "status": "DRAFT", "priceRange": { "min": "22.00", "max": "89.00" }, "stores": [ { "channel": "shopify", "storeName": "Demo Store", "status": "PENDING", "source": "MANUAL" } ] } ]}