Commerce

List products

List products.

Newest first. Archived products only with status=ARCHIVED.

Query Parameters

status?string
Value in"DRAFT""ACTIVE""ARCHIVED"
q?string
limit?integer
Range1 <= value <= 100
Default25
cursor?string

The next_cursor of the previous page. Opaque; one that does not decode is 400 invalid_cursor.

Header Parameters

X-Request-Id?string

Your id for this request; it becomes the request_id of any error. Without it the server makes one.

curl -X GET 'https://v3.ghala.io/v1/commerce/shop/products'
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "description": "string",      "price": "string",      "stock": 0,      "unit": "PIECE",      "status": "DRAFT",      "is_active": true,      "product_type": "PHYSICAL",      "category": "FOOD",      "images": [        "string"      ],      "tags": [        "string"      ],      "digital_asset_url": "string",      "digital_asset_filename": "string",      "variants": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "label": "string",          "price": "1500.00",          "stock": 0,          "is_active": true        }      ]    }  ],  "next_cursor": "string",  "has_more": true}