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: [].
GET
/api/rest/product/{productIdentifier}
curl \
--request GET 'https://cerebro.techrayo.com/api/rest/product/{productIdentifier}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
Not found (returns empty array)
{
"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": "$"
}