POST api/Transport/Get

Request Information

URI Parameters

None.

Body Parameters

TransportGetRequest
NameDescriptionTypeAdditional information
idTransport

integer

None.

intervention

string

None.

qrOrderContent

string

None.

qrTransportContent

string

None.

orderNumber

string

None.

billed

boolean

None.

docInHands

boolean

None.

lastHoursOrdered

integer

None.

lastHoursComplete

integer

None.

lastHoursAssigned

integer

None.

orderedFrom

date

None.

completeFrom

date

None.

orderedTo

date

None.

completeTo

date

None.

maxResults

integer

None.

isDestination

boolean

None.

isCreator

boolean

None.

isDispatcher

boolean

None.

isTransporter

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "idTransport": 1,
  "intervention": "sample string 1",
  "qrOrderContent": "sample string 2",
  "qrTransportContent": "sample string 3",
  "orderNumber": "sample string 4",
  "billed": true,
  "docInHands": true,
  "lastHoursOrdered": 1,
  "lastHoursComplete": 1,
  "lastHoursAssigned": 1,
  "orderedFrom": "2025-12-11T02:48:10.0162938+01:00",
  "completeFrom": "2025-12-11T02:48:10.0162938+01:00",
  "orderedTo": "2025-12-11T02:48:10.0162938+01:00",
  "completeTo": "2025-12-11T02:48:10.0162938+01:00",
  "maxResults": 1,
  "isDestination": true,
  "isCreator": true,
  "isDispatcher": true,
  "isTransporter": true
}

application/xml, text/xml

Sample:
<TransportGetRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Areas.Transport.Models">
  <Billed>true</Billed>
  <IdTransport>1</IdTransport>
  <Intervention>sample string 1</Intervention>
  <OrderNumber>sample string 4</OrderNumber>
  <QrOrderContent>sample string 2</QrOrderContent>
  <QrTransportContent>sample string 3</QrTransportContent>
</TransportGetRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TransportGetRequest'.

Response Information

Resource Description

TransportGetResponse
NameDescriptionTypeAdditional information
transports

Collection of Transport

None.

mesasge

string

None.

isSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "transports": [
    {
      "id": 1,
      "idOrder": 1,
      "orderNumber": "sample string 1",
      "workUnitCreator": "sample string 2",
      "idWorkUnitCreator": 1,
      "workUnitDispatcher": "sample string 3",
      "idWorkUnitDispatcher": 1,
      "workUnitTransporter": "sample string 4",
      "idWorkUnitTransporter": 1,
      "intervention": "sample string 5",
      "created": "2025-12-11T02:48:10.0162938+01:00",
      "changed": "2025-12-11T02:48:10.0162938+01:00",
      "statuses": {
        "drafted": "2025-12-11T02:48:10.0162938+01:00",
        "ordered": "2025-12-11T02:48:10.0162938+01:00",
        "received": "2025-12-11T02:48:10.0162938+01:00",
        "evaluated": "2025-12-11T02:48:10.0162938+01:00",
        "evaluateResult": true,
        "assigned": "2025-12-11T02:48:10.0162938+01:00",
        "accepted": "2025-12-11T02:48:10.0162938+01:00",
        "onRoute": "2025-12-11T02:48:10.0162938+01:00",
        "onScene": "2025-12-11T02:48:10.0162938+01:00",
        "atPatient": "2025-12-11T02:48:10.0162938+01:00",
        "returning": "2025-12-11T02:48:10.0162938+01:00",
        "atDestination": "2025-12-11T02:48:10.0162938+01:00",
        "patientHandedOver": "2025-12-11T02:48:10.0162938+01:00",
        "patientAccepted": "2025-12-11T02:48:10.0162938+01:00",
        "toBase": "2025-12-11T02:48:10.0162938+01:00",
        "available": "2025-12-11T02:48:10.0162938+01:00",
        "complete": "2025-12-11T02:48:10.0162938+01:00",
        "aborted": "2025-12-11T02:48:10.0162938+01:00",
        "abortReason": "sample string 1",
        "billed": "2025-12-11T02:48:10.0162938+01:00",
        "evaluateResultDescription": "sample string 2"
      },
      "from": {
        "idWorkUnit": 1,
        "institution": "sample string 1",
        "institutionDescription": "sample string 2",
        "municipality": "sample string 3",
        "town": "sample string 4",
        "street": "sample string 5",
        "houseNumber": "sample string 6",
        "description": "sample string 7",
        "latitude": 1.1,
        "longitude": 1.1,
        "time": "2025-12-11T02:48:10.0162938+01:00",
        "postcode": "sample string 8",
        "post": "sample string 9"
      },
      "to": {
        "idWorkUnit": 1,
        "institution": "sample string 1",
        "institutionDescription": "sample string 2",
        "municipality": "sample string 3",
        "town": "sample string 4",
        "street": "sample string 5",
        "houseNumber": "sample string 6",
        "description": "sample string 7",
        "latitude": 1.1,
        "longitude": 1.1,
        "time": "2025-12-11T02:48:10.0162938+01:00",
        "postcode": "sample string 8",
        "post": "sample string 9"
      },
      "patient": {
        "kZZ": "sample string 1",
        "name": "sample string 2",
        "surname": "sample string 3",
        "birthDate": "2025-12-11T02:48:10.0162938+01:00",
        "sex": "sample string 4",
        "email": "sample string 5",
        "phone": "sample string 6",
        "mobility": "sample string 7",
        "reason": "sample string 8",
        "status": {
          "eventType": "sample string 1",
          "consciousness": "sample string 2",
          "breathing": "sample string 3",
          "bleeding": "sample string 4",
          "pain": "sample string 5"
        }
      },
      "transportDescription": "sample string 8",
      "idPriority": 1,
      "creatorPhone": "sample string 9",
      "docInHands": true,
      "docInHandsDescription": "sample string 10",
      "idTransportHandover": "sample string 11"
    },
    {
      "id": 1,
      "idOrder": 1,
      "orderNumber": "sample string 1",
      "workUnitCreator": "sample string 2",
      "idWorkUnitCreator": 1,
      "workUnitDispatcher": "sample string 3",
      "idWorkUnitDispatcher": 1,
      "workUnitTransporter": "sample string 4",
      "idWorkUnitTransporter": 1,
      "intervention": "sample string 5",
      "created": "2025-12-11T02:48:10.0162938+01:00",
      "changed": "2025-12-11T02:48:10.0162938+01:00",
      "statuses": {
        "drafted": "2025-12-11T02:48:10.0162938+01:00",
        "ordered": "2025-12-11T02:48:10.0162938+01:00",
        "received": "2025-12-11T02:48:10.0162938+01:00",
        "evaluated": "2025-12-11T02:48:10.0162938+01:00",
        "evaluateResult": true,
        "assigned": "2025-12-11T02:48:10.0162938+01:00",
        "accepted": "2025-12-11T02:48:10.0162938+01:00",
        "onRoute": "2025-12-11T02:48:10.0162938+01:00",
        "onScene": "2025-12-11T02:48:10.0162938+01:00",
        "atPatient": "2025-12-11T02:48:10.0162938+01:00",
        "returning": "2025-12-11T02:48:10.0162938+01:00",
        "atDestination": "2025-12-11T02:48:10.0162938+01:00",
        "patientHandedOver": "2025-12-11T02:48:10.0162938+01:00",
        "patientAccepted": "2025-12-11T02:48:10.0162938+01:00",
        "toBase": "2025-12-11T02:48:10.0162938+01:00",
        "available": "2025-12-11T02:48:10.0162938+01:00",
        "complete": "2025-12-11T02:48:10.0162938+01:00",
        "aborted": "2025-12-11T02:48:10.0162938+01:00",
        "abortReason": "sample string 1",
        "billed": "2025-12-11T02:48:10.0162938+01:00",
        "evaluateResultDescription": "sample string 2"
      },
      "from": {
        "idWorkUnit": 1,
        "institution": "sample string 1",
        "institutionDescription": "sample string 2",
        "municipality": "sample string 3",
        "town": "sample string 4",
        "street": "sample string 5",
        "houseNumber": "sample string 6",
        "description": "sample string 7",
        "latitude": 1.1,
        "longitude": 1.1,
        "time": "2025-12-11T02:48:10.0162938+01:00",
        "postcode": "sample string 8",
        "post": "sample string 9"
      },
      "to": {
        "idWorkUnit": 1,
        "institution": "sample string 1",
        "institutionDescription": "sample string 2",
        "municipality": "sample string 3",
        "town": "sample string 4",
        "street": "sample string 5",
        "houseNumber": "sample string 6",
        "description": "sample string 7",
        "latitude": 1.1,
        "longitude": 1.1,
        "time": "2025-12-11T02:48:10.0162938+01:00",
        "postcode": "sample string 8",
        "post": "sample string 9"
      },
      "patient": {
        "kZZ": "sample string 1",
        "name": "sample string 2",
        "surname": "sample string 3",
        "birthDate": "2025-12-11T02:48:10.0162938+01:00",
        "sex": "sample string 4",
        "email": "sample string 5",
        "phone": "sample string 6",
        "mobility": "sample string 7",
        "reason": "sample string 8",
        "status": {
          "eventType": "sample string 1",
          "consciousness": "sample string 2",
          "breathing": "sample string 3",
          "bleeding": "sample string 4",
          "pain": "sample string 5"
        }
      },
      "transportDescription": "sample string 8",
      "idPriority": 1,
      "creatorPhone": "sample string 9",
      "docInHands": true,
      "docInHandsDescription": "sample string 10",
      "idTransportHandover": "sample string 11"
    }
  ],
  "mesasge": "sample string 1",
  "isSuccess": true
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.