View Product
Description:
The product information endpoint allows you to view product details in the Rayo system. You need to provide the following information:
- Your Rayo JWT Token
- Product SKU or UPC
Parameter | Description |
---|---|
SKU or UPC (String) - Required |
Product identifier |
GET
/api/rest/product/{productIdentifier}
curl \
-X GET cerebro.techrayo.com/api/rest/product/{productIdentifier} \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
200 NO ENCONTRO
# Headers
Date: Tue, 07 Jun 2022 20:58:22 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
x-request-id: 6ccb314e11cdabdf37129089654feb0e
Content-Encoding: gzip
CF-Cache-Status: DYNAMIC
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Content-Security-Policy: upgrade-insecure-requests
Referrer-Policy: strict-origin-when-cross-origin
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
Server: cloudflare
CF-RAY: 717c4e2f185b7e88-LAX
# Payload
{
"producto": []
}
# Headers
Date: Tue, 07 Jun 2022 20:58:22 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
x-request-id: 6ccb314e11cdabdf37129089654feb0e
Content-Encoding: gzip
CF-Cache-Status: DYNAMIC
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Content-Security-Policy: upgrade-insecure-requests
Referrer-Policy: strict-origin-when-cross-origin
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
Server: cloudflare
CF-RAY: 717c4e2f185b7e88-LAX
# Payload
{
"producto": [
{
"id": "a2a7df3c-e4ac-4828-82a4-09dd2d3b850d",
"imagen_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcStGTBLghQTK_dOR1REVYE8rhCbGLpKKSKEdA&usqp=CAU",
"nombre": "Prueba 01",
"sku": "test01",
"upc": "",
"id_cliente": "36aa0932-7d68-412b-ae16-83e8aa606f6d",
"dimension": {
"altura": 1,
"ancho": 1,
"largo": 1,
"peso": 3,
"volumen": 1,
"unidad_peso": "GRAMOS",
"unidad_dimension": "CENTIMETROS",
"id_dimension": "f6bb2dc2-26c1-4017-acba-474d4bf77c2c"
}
}
]
}
Response examples (200)
# Headers
Date: Tue, 07 Jun 2022 20:58:22 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
x-request-id: 6ccb314e11cdabdf37129089654feb0e
Content-Encoding: gzip
CF-Cache-Status: DYNAMIC
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Content-Security-Policy: upgrade-insecure-requests
Referrer-Policy: strict-origin-when-cross-origin
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
Server: cloudflare
CF-RAY: 717c4e2f185b7e88-LAX
# Payload
{}