GET
/
products
curl --request GET \
  --url https://api.sulu.sh/v0/products \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "object": "product",
      "name": "<string>",
      "description": "<string>",
      "merchantId": "<string>",
      "metadata": {},
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "pagination": {
    "limit": 123,
    "offset": 123,
    "total": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

merchantId
string

Filter products by merchant organization ID

limit
integer
default:10

Number of products to return

Required range: 1 <= x <= 100
offset
integer
default:0

Number of products to skip

Required range: x >= 0

Response

200
application/json
List of products
data
object[]
pagination
object

Offset-based pagination response.