OfficeGest
Workshop/Appointments/Receptions deliveries

List reception and delivery events

Returns reception and delivery events derived from service orders and workshop appointments within the given date range, ordered chronologically. Pairs (appointment with associated service order) collapse to a single event using the service order as canonical source, falling back to the appointment when the service order has no value for the relevant timestamp. Appointments marked as no-show are excluded, both as standalone events and as fallback source for service order timestamps. Receptions and deliveries are filtered apart by the workshop agenda parameters: the service order statuses each one shows and whether it shows appointments without a service order. A side with neither set shows everything.

GET
/workshop/appointments/receptions-deliveries
AuthorizationBearer <token>

In: header

Query Parameters

start?string

Inclusive lower bound of the range (ISO 8601).

Formatdate-time
end?string

Inclusive upper bound of the range (ISO 8601).

Formatdate-time
warehouse_id?integer

Keeps only the events of this warehouse, read from the service order, or from the appointment when it has no service order. Omitted or 0 lists every warehouse.

Response Body

curl -X GET "https://og-tenant1.test:8003/api/v2/workshop/appointments/receptions-deliveries?start=2019-08-24T14%3A15%3A22Z&end=2019-08-24T14%3A15%3A22Z&warehouse_id=0"
{
  "data": [
    {
      "id": "string",
      "pair_id": "string",
      "type": "reception",
      "title": "string",
      "start": "2019-08-24T14:15:22Z",
      "end": "2019-08-24T14:15:22Z",
      "reception_at": "2019-08-24T14:15:22Z",
      "delivery_at": "2019-08-24T14:15:22Z",
      "service_order": {
        "number": 0,
        "document_number": "string"
      },
      "vehicle": {
        "plate": "string",
        "brand_name": "string",
        "model_name": "string",
        "version_name": "string",
        "manufacturing_year": 0,
        "image_url": "string",
        "image_raster_url": "string",
        "color": "string"
      },
      "customer": {
        "id": 0,
        "name": "string"
      },
      "interventions": {
        "pending_count": 0,
        "remaining_minutes": 0,
        "pending": [
          {
            "id": 0,
            "description": "string",
            "extra_description": "string",
            "estimated_minutes": 0
          }
        ],
        "executed_count": 0,
        "executed_minutes": 0,
        "executed": [
          {
            "id": 0,
            "description": "string",
            "extra_description": "string",
            "estimated_minutes": 0
          }
        ]
      }
    }
  ]
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}