Returns a product by SKU.

GET /api/v2/products/{sku}

Path parameters

  • sku string Required

Responses

  • 200 application/json

    Returns the product

    Hide response attributes Show response 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
  • 404 application/json

    Product not found

    Hide response attributes Show response attributes object
    • code integer
    • msg string
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • code integer
    • msg string
GET /api/v2/products/{sku}
curl \
 --request GET 'https://bi.agora.place/api/v2/products/{sku}' \
 --header "apikey: $API_KEY"
Response examples (200)
{
  "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 (404)
{
  "code": 404,
  "msg": "Not Found"
}
Response examples (500)
{
  "code": 500,
  "msg": "Internal Server Error"
}