GET /v1/shop/companyproducts

List Product

Query parameters

  • page number

    Current page

  • pageSize number

    Number of items per page

  • selectAll boolean

    Determines if all items are selected

  • where object

    App\Shop\Products\Models\Product Filters: 0, 2

    Hide where attributes Show where attributes object
  • sort object

    App\Shop\Products\Models\Product Sorting by name, createdAt

    Hide sort attributes Show sort attributes object
    • name string

      Values are asc or desc.

    • createdAt string

      Values are asc or desc.

  • onlyArchived boolean

    Determines whether to return only archived records in the response.

  • includeArchived boolean

    Determines whether to return with archived records in the response.

Responses

  • 200 application/json

    Paginated response

    Hide response attributes Show response attributes object
    • data array[object] Required
      Hide data attributes Show data attributes object
      • id string Required
      • productId string Required
      • createdAt string(date-time) Required
      • category string Required
      • name string Required
      • imgUrl string Required
      • minPrice integer Required
      • maxPrice integer Required
      • variantCount integer Required
      • archivedAt string | null Required
    • pagination object Required

      Pagination schema

      Hide pagination attributes Show pagination attributes object
      • total integer Required

        Total number of items

      • count integer Required

        Number of items on this page

      • perPage integer

        Number of items per page

      • currentPage integer

        Current page number

      • totalPages integer

        Total number of pages

  • 403 application/json

    Not authorized

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

GET /v1/shop/companyproducts
curl \
 --request GET 'https://classmanager.test/v1/shop/companyproducts'
Response examples (200)
{
  "data": [
    {
      "id": "_prod_01jqezwks93avxb25hcbvsykxq",
      "productId": "prod_01jqezwks93avxb25hcbvsykxq",
      "createdAt": "2025-03-28T18:23:06Z",
      "category": "Costumes",
      "name": "Ballroom Gown",
      "imgUrl": "https://example.com/image.jpg",
      "minPrice": 1829,
      "maxPrice": 9978,
      "variantCount": 24,
      "archivedAt": "2025-03-28T18:23:06Z"
    }
  ],
  "pagination": {
    "total": 15,
    "count": 10,
    "perPage": 10,
    "currentPage": 1,
    "totalPages": 2
  }
}
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}