List products
GET
/v4/commerce/products
const url = 'https://console.orangepill.cloud/v4/commerce/products?limit=50&offset=0&status=draft&type=physical';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://console.orangepill.cloud/v4/commerce/products?limit=50&offset=0&status=draft&type=physical' \ --header 'Authorization: Bearer <token>'List products for the authenticated tenant with optional filtering.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer
Page size
offset
integer
Pagination offset
status
string
Filter by status
type
string
Filter by product type
q
string
Full-text search on product name
Responses
Section titled “Responses”Product list
Media typeapplication/json
object
data
required
Array<object>
object
created_at
required
string format: date-time
description
string
id
required
string format: uuid
image_url
string format: uri
metadata
object
key
additional properties
name
required
string
status
required
string
tags
required
Array<string>
tenant_id
required
string format: uuid
type
required
string
updated_at
required
string format: date-time
pagination
required
object
limit
required
integer
offset
required
integer
total
required
integer
success
required
boolean
Example
{ "data": [ { "status": "draft", "type": "physical" } ], "success": true}