Get a list of all products or only store products depending on permissions

GET /Api/Products

Requires verified email; Requires one of the following permissions: Shop.IndexProducts, Shop.IndexStoreProducts; Requires the following features to be enabled: Shop

Query parameters

  • Filters string
  • Sorts string
  • Page integer(int32)

    Minimum value is 1, maximum value is 2147483647.

  • PageSize integer(int32)

    Minimum value is 1, maximum value is 2147483647.

Responses

  • 200 application/json

    Success

    Hide response attributes Show response attributes object
    • id integer(int32)
    • name string | null
    • description string | null
    • visible boolean
    • qrCodeActivated boolean
    • price integer(int32)
    • quantity integer(int32)
    • userLimited boolean
    • userLimit integer(int32)
    • thumbnailUrl string | null
    • createdAt string(date-time)
    • updatedAt string(date-time)
    • Additional properties are NOT allowed
  • 401

    Unauthorized

  • 403

    Forbidden

GET /Api/Products
curl \
 -X GET https://app.lovassy.hu/Api/Products \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "id": 42,
    "name": "string",
    "description": "string",
    "visible": true,
    "qrCodeActivated": true,
    "price": 42,
    "quantity": 42,
    "userLimited": true,
    "userLimit": 42,
    "thumbnailUrl": "string",
    "createdAt": "2024-05-04T09:42:00+00:00",
    "updatedAt": "2024-05-04T09:42:00+00:00"
  }
]