Retrieves a fulfillment order in the Rayo system by its Rayo order id. Requires a valid JWT Bearer token.
GET
/api/rest/order/{rayoOrderId}
curl \
--request GET 'https://cerebro.techrayo.com/api/rest/order/{rayoOrderId}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"orden": {
"id": "b334e977-fdbd-47c1-905f-aeb73802ac2f",
"almacen": {
"nombre_almacen": "Enviatodo.com"
},
"precio_um": 123,
"consumidor": {
"lat": 19.2906952,
"lng": -103.7424127,
"calle": "Av. de los reporteros",
"email": null,
"ciudad": "Villa de Alvarez",
"estado": "Colima",
"nombre": "Daniel",
"colonia": "Lindavista",
"telefono": "3122563881",
"no_exterior": "411",
"no_interior": "",
"codigo_postal": "28979"
},
"empaquetado": {
"titulo": "CAJA CHICA - EnviaTodo"
},
"rastreo_pdf": null,
"rastreo_url": "https://www.estafeta.com/Herramientas/Rastreo/",
"detalle_orden": [
{
"cantidad": 2,
"producto": {
"sku": "Balon",
"nombre": "Balon de futbol"
},
"recogido": true
}
],
"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"
}
],
"tipo_servicio": "NACIONAL",
"notificaciones": true,
"rastreo_numero": "1010000000130700890039",
"tienda_orden_ref": null,
"fecha_programacion": null,
"rastreo_paqueteria": "ESTAFETA"
}
}
Response examples (default)
{
"error": "internal error",
"code": "unexpected",
"path": "$"
}