Returns all products for a seller.

GET /api/v2/products

Query parameters

  • createdAt string

    Date of older products (format: yyyy-mm-dd)

  • updatedAt string

    Date of older product updates (format: yyyy-mm-dd)

  • page string

    Page number

    Default value is 1.

  • pageSize string

    Items per page

    Default value is 50.

Responses

  • 200 application/json

    Returns all products for a seller

    Hide response attributes Show response attributes object
    • count integer

      Number of items

    • page integer

      Current page

    • pageSize integer

      Items per page

    • result array[object]

      Array of results

      Hide result attributes Show result attributes object
      • created_at string
      • updated_at string
      • brand string
      • category_name string
      • final_price integer
      • grouped_id integer
      • grouped_name string
      • color object
        Hide color attributes Show color attributes object
        • id integer
        • name string
        • name_en string
        • name_es string
        • name_de string
      • id integer
      • name string
      • grade string
      • tax_class string
      • packaging string
      • sku string
      • stock integer
      • attr_test string
      • moq integer
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • code integer
    • msg string
GET /api/v2/products
curl \
 --request GET 'https://bi.agora.place/api/v2/products' \
 --header "apikey: $API_KEY"
Response examples (200)
{
  "count": 42,
  "page": 42,
  "pageSize": 42,
  "result": [
    {
      "created_at": "2022-09-01",
      "updated_at": "2022-09-01",
      "brand": "Apple",
      "category_name": "Smartphone",
      "final_price": 1000,
      "grouped_id": 7123456,
      "grouped_name": "Apple iPhone 8 64",
      "color": {
        "id": 1,
        "name": "Blanc",
        "name_en": "White",
        "name_es": "Blanco",
        "name_de": "Weiß"
      },
      "id": 17123456,
      "name": "Apple iPhone 8 64",
      "grade": "Grade A",
      "tax_class": "TVA Classique",
      "packaging": "Full Pack",
      "sku": "APPLE_IPHONE_8_SKU",
      "stock": 100,
      "attr_test": "PREMIUM",
      "moq": 5
    }
  ]
}
Response examples (500)
{
  "code": 500,
  "msg": "Internal Server Error"
}