Skip to content

Request Detail

Returns all details for a specific service request.

GET https://api.vectorcare.com/openapi/v1.0/requests/{request_id}/

Note: URLs must include the trailing slash.

ParameterTypeDescription
exclude_facilitiesbooleanIf true, omit account.facilities from response. Default: false
{
"request_id": "EE5A6YZL",
"patient_first_name": "Angela",
"patient_last_name": "Graves",
"patient_dob": "1931-03-31",
"pickup_location": {
"id": "address.2900060502936820",
"lat": 37.8623,
"lng": -122.4911,
"zip": "94965",
"city": "Sausalito",
"name": "28 Liberty Ship Way",
"state": "CA",
"street": "28 Liberty Ship Way",
"address": "28 Liberty Ship Way, Sausalito, California 94965, United States",
"country": "United States"
},
"destination_location": {
"id": "address.6571326868700452",
"lat": 37.80119,
"lng": -122.43935,
"zip": "94123",
"city": "San Francisco",
"name": "96 Toledo Way",
"state": "CA",
"street": "96 Toledo Way",
"address": "96 Toledo Way, San Francisco, California 94123, United States",
"country": "United States"
},
"transport_pickup_time": "2022-04-28T14:00:00Z",
"transport_agreed_for_time": "2022-04-28T14:00:00Z",
"service_level_type": "BLS",
"service_type": "standing_order_dispatcher",
"account": {
"id": "2UVAGY7O",
"name": "Cool Company",
"service_levels": ["ALS", "Ambulatory Van", "BLS", "CCT", "WC"],
"facilities": null
},
"facility": {
"id": "2UVAGY7O",
"name": "Helpful Hospital #0"
},
"user": {
"first_name": "Nicole",
"last_name": "Montoya",
"email": "requester@example.com"
},
"enabled_patient_fields": {
"gender": "m"
},
"enabled_request_fields": {},
"request_current_state": "accepted",
"is_round_trip_first_trip": false,
"is_round_trip_return_trip": false,
"collection_id": "2UVAGY7O"
}

These fields are standard for all requests:

FieldTypeDescription
request_idstringUnique request identifier
patient_first_namestringPatient’s first name
patient_last_namestringPatient’s last name
patient_dobstringPatient’s date of birth
pickup_locationobjectPickup address (see Location Object)
destination_locationobjectDestination address (see Location Object)
transport_pickup_timestringOriginally requested pickup time. Use transport_agreed_for_time as the authoritative pickup time when it is present.
transport_agreed_for_timestringConfirmed pickup time. When present, this is the authoritative pickup time and may differ from transport_pickup_time. null until both parties have agreed on the pickup time.
service_level_typestringService level (ALS, BLS, CCT, etc.)
service_typestringService type name
accountobjectAccount that created the request
facilityobjectOrigin facility
userobjectUser who accepted the request
request_current_statestringInternal VectorCare state
is_round_trip_first_tripbooleanIs this the first leg of a round trip?
is_round_trip_return_tripbooleanIs this the return leg?
collection_idstringID for grouped requests (standing orders, round trips)
FieldTypeDescription
idstringLocation identifier. Nullable
latnumberLatitude. Nullable
lngnumberLongitude. Nullable
zipstringZIP code. Nullable
citystringCity. Nullable
namestringRaw address string. Nullable
statestringState. Nullable
streetstringStreet address. Nullable
addressstringFull formatted address. Nullable
countrystringCountry. Nullable
FieldTypeDescription
idstringAccount ID
namestringAccount name
service_levelsarrayList of configured service levels
facilitiesarrayList of facilities (null if exclude_facilities=true). Nullable

The enabled_patient_fields and enabled_request_fields objects contain configurable fields that vary by service. Treat all fields in these objects as nullable.

{
"message": "You do not have permission to perform this action.",
"code": "members:permission_denied"
}
{
"message": "Authentication credentials were not provided.",
"code": "members:not_authenticated"
}