Skip to content
extensions / Commerce extension
GET/api/projects/{project_id}/extensions/2/products

List products

Lists products for a project extension, including draft products unless the request filters them out.

Authentication

Requirement
Required
Credential type
Bearer API key
Scopes
Not specified

Permissions

  • API-key requests must use a key with an active connection to the target project.

Headers

NameRequiredTypeDetails
AuthorizationYesNot specified
Description: Bearer credential used to authenticate the request.

Path Parameters

NameRequiredTypeDetails
project_idYesNot specified
Description: Target project identifier.

Query Parameters

NameRequiredTypeDetails
pageNointeger
Description: Page number. Defaults to 1.
Range: min 1
page_sizeNointeger
Description: Number of products returned per page. Product management listing clamps this value.
Range: min 1, max 200
qNostring
Description: Search text used by this operation.
sortNostring
Description: Product sort field. Unknown values fall back to position.
Allowed values: positionnameproduct_namepricebrand
Aliases: sort_byproduct_list_order
directionNostring
Description: Sort direction. Defaults to descending for position and ascending for other product fields.
Allowed values: ascascendingdescdescending
Aliases: dirsort_dirproduct_list_dir
include_draftsNoboolean
Description: When true, draft products can be included in the listing.
filtersNoobject<string,array<string>>
Description: Filter map keyed by product attribute code. Use system keys for category/price filters, or replace an attribute key with a real product attribute code such as color, size, or brand.
Object shape: category array<string>category_slug array<string>price array<number|string>price__min array<number|string>price__max array<number|string>color array<string> example attribute keysize array<string> example attribute key

Request Body

Response Body

Example 200 response

json
{
  "items": [],
  "total": 1
}

Errors

Availability

Available in
v0.1.0
Available since
v0.1.0
Implementation
Available
Deprecation
Not specified
Rate limits
Not specified