GET /api/rest/pickup-order

Returns all product pickup orders completed within Rayo fulfillment network warehouses. Requires a valid JWT Bearer token.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • ordenes_salida array[object] Required
      Hide ordenes_salida attributes Show ordenes_salida attributes object
      • id string(uuid) Required
      • fecha_creacion string(date-time) Required
      • detalle_orden_salidas array[object] Required
        Hide detalle_orden_salidas attributes Show detalle_orden_salidas attributes object
        • producto object Required

          Additional properties are allowed.

          Hide producto attributes Show producto attributes object
          • sku string Required
          • nombre string Required
        • recogido boolean Required
      • estados array[object] Required
        Hide estados attributes Show estados attributes object
        • estado string Required

          Pickup workflow state.

        • timestamp string(date-time) Required
      • almacen object Required

        Additional properties are allowed.

        Hide almacen attributes Show almacen attributes object
        • nombre_almacen string Required
        • telefono string Required
      • razon string | null

        Reason for the pickup (may be empty string).

      • comentarios string | null

        Additional comments (may be empty string).

      • fecha_recoleccion string(date-time) Required
      • recolector string Required

        Person who collects the pickup order.

  • default application/json

    Unexpected error

    Hide response attributes Show response attributes object
    • error string Required
    • code string Required
    • path string
GET /api/rest/pickup-order
curl \
 --request GET 'https://cerebro.techrayo.com/api/rest/pickup-order' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "ordenes_salida": [
    {
      "id": "80cbfa61-cdc4-432a-80e3-d887390781df",
      "razon": "Por que ya no tiene en la tienda",
      "almacen": {
        "telefono": "8118791968",
        "nombre_almacen": "Enviatodo.com"
      },
      "estados": [
        {
          "estado": "WAITING",
          "timestamp": "2022-04-27T18:01:46.909045+00:00"
        },
        {
          "estado": "PICK",
          "timestamp": "2022-04-29T17:18:40.387813+00:00"
        },
        {
          "estado": "READY_TO_GO",
          "timestamp": "2022-04-29T17:19:27.366837+00:00"
        },
        {
          "estado": "COMPLETED",
          "timestamp": "2022-04-29T17:19:44.465248+00:00"
        }
      ],
      "recolector": "Raul Jimenez",
      "comentarios": "Tener cuidado",
      "fecha_creacion": "2022-04-27T18:01:46.909045+00:00",
      "fecha_recoleccion": "2022-04-27T19:04:00+00:00",
      "detalle_orden_salidas": [
        {
          "producto": {
            "sku": "Balon",
            "nombre": "Balon de futbol"
          },
          "recogido": true
        }
      ]
    }
  ]
}
Response examples (default)
{
  "error": "internal error",
  "code": "unexpected",
  "path": "$"
}