View Order detalis
Description:
The order details endpoint allows you to view a fulfillment order in the Rayo system. You need to provide the following information:
- Your Rayo JWT Token
- Rayo order id
Parameter | Description |
---|---|
Order ID (String) - Required |
Rayo Order ID |
GET /api/rest/order/{rayoOrderId}
curl \
-X GET cerebro.techrayo.com/api/rest/order/{rayoOrderId} \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
# Headers
Date: Tue, 07 Jun 2022 21:37:06 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
x-request-id: 3ba918245773122665ff0d48c8312165
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: 717c86ec7fd37c44-LAX
# Payload
{
"orden": {
"id": "b334e977-fdbd-47c1-905f-aeb73802ac2f",
"almacen": {
"nombre_almacen": "Enviatodo.com"
},
"fecha_programacion": null,
"notificaciones": true,
"tipo_servicio": "NACIONAL",
"rastreo_pdf": null,
"rastreo_url": "https://www.estafeta.com/Herramientas/Rastreo/",
"rastreo_numero": "1010000000130700890039",
"rastreo_paqueteria": "ESTAFETA",
"estados_orden": [
{
"timestamp": "2022-04-29T16:41:53.419086+00:00",
"estado_orden": "WAITING"
},
{
"timestamp": "2022-04-29T16:47:53.650661+00:00",
"estado_orden": "PICK"
},
{
"timestamp": "2022-04-29T16:48:42.651588+00:00",
"estado_orden": "PACK"
},
{
"timestamp": "2022-04-29T16:51:05.729893+00:00",
"estado_orden": "READY_TO_GO"
},
{
"timestamp": "2022-04-29T16:52:24.957818+00:00",
"estado_orden": "COLLECTED"
},
{
"timestamp": "2022-04-29T16:52:46.11689+00:00",
"estado_orden": "COMPLETED"
}
],
"consumidor": {
"nombre": "Daniel",
"telefono": "3122563881",
"email": null,
"calle": "Av. de los reporteros",
"no_exterior": "411",
"no_interior": "",
"colonia": "Lindavista",
"ciudad": "Villa de Alvarez",
"codigo_postal": "28979",
"estado": "Colima",
"lat": 19.2906952,
"lng": -103.7424127
},
"empaquetado": {
"titulo": "CAJA CHICA - EnviaTodo"
},
"detalle_orden": [
{
"cantidad": 2,
"producto": {
"nombre": "Balon de futbol",
"sku": "Balon"
},
"recogido": true
}
],
"tienda_orden_ref": null,
"precio_um": 123
}
}
Response examples (200)
# Headers
Date: Tue, 07 Jun 2022 21:37:06 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
x-request-id: 3ba918245773122665ff0d48c8312165
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: 717c86ec7fd37c44-LAX
# Payload
{}