GET /api/rest/product/{productIdentifier}

Retrieves product details by SKU or UPC. Requires a valid JWT Bearer token. Note: If the product is not found, the API returns 200 with producto: [].

Path parameters

  • productIdentifier string Required

    Product SKU or UPC

Responses

  • 200 application/json

    Product query executed successfully

    Hide response attribute Show response attribute object
    • producto array[object] Required
      Hide producto attributes Show producto attributes object
      • id string(uuid) Required
      • imagen_url string
      • nombre string Required
      • sku string Required
      • upc string | null

        Can be empty string.

      • id_cliente string(uuid) | null
      • dimension object

        Additional properties are allowed.

        Hide dimension attributes Show dimension attributes object
        • altura number | null
        • ancho number | null
        • largo number | null
        • peso number | null
        • volumen number | null
        • unidad_peso string | null

          Weight unit (currently GRAMOS).

        • unidad_dimension string | null

          Dimension unit (currently CENTIMETROS).

        • id_dimension string(uuid) | null
  • default application/json

    Unexpected error

    Hide response attributes Show response attributes object
    • error string Required
    • code string Required
    • path string
GET /api/rest/product/{productIdentifier}
curl \
 --request GET 'https://cerebro.techrayo.com/api/rest/product/{productIdentifier}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "producto": []
}
{
  "producto": [
    {
      "id": "a2a7df3c-e4ac-4828-82a4-09dd2d3b850d",
      "sku": "test01",
      "upc": "",
      "nombre": "Prueba 01",
      "dimension": {
        "peso": 3,
        "ancho": 1,
        "largo": 1,
        "altura": 1,
        "volumen": 1,
        "unidad_peso": "GRAMOS",
        "id_dimension": "f6bb2dc2-26c1-4017-acba-474d4bf77c2c",
        "unidad_dimension": "CENTIMETROS"
      },
      "id_cliente": "36aa0932-7d68-412b-ae16-83e8aa606f6d",
      "imagen_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcStGTBLghQTK_dOR1REVYE8rhCbGLpKKSKEdA&usqp=CAU"
    }
  ]
}
Response examples (default)
{
  "error": "internal error",
  "code": "unexpected",
  "path": "$"
}