Get a product (manager)

GET /manager/products/{id}

Path parameters

  • id integer Required

    Numeric ID of the product to retrieve

Responses

  • 200 application/json

    Returns the requested product

    Hide response attributes Show response attributes object
    • id_product integer(int32)
    • name string(nullable)
    • type string(nullable)
    • discount_percentage number(float)
    • price_catalog integer(float)
    • reference_unit_price integer(float)
    • sku string(nullable)
    • youtube_id string(nullable)
    • url string(nullable)
    • description string(nullable)
    • images array[object]
      Hide images attributes Show images attributes object
      • id_i18n_content integer
      • lang string

        Values are en_GB, fr_FR, es_ES, or de_DE.

      • content string
    • price number(float)
    • stock integer(float)
    • stock_available number(float)
    • old_image string(nullable)
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
    • message string
  • 404

    Product not found

GET /manager/products/{id}
curl \
 --request GET 'https://domain.tld/api/v2/manager/products/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id_product": 42,
  "name": "string",
  "type": "string",
  "discount_percentage": 42.0,
  "price_catalog": 42,
  "reference_unit_price": 42,
  "sku": "string",
  "youtube_id": "string",
  "url": "string",
  "description": "string",
  "images": [
    {
      "id_i18n_content": 42,
      "lang": "en_GB",
      "content": "Hello"
    }
  ],
  "price": 42.0,
  "stock": 42,
  "stock_available": 42.0,
  "old_image": "string"
}
Response examples (401)
{
  "message": "Unauthorized."
}