Skip to content

State Update

Use this endpoint to report trip progress to VectorCare.

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

Note: URLs must include the trailing slash.

{
"name": "en_route",
"timestamp": "2025-01-15T14:30:00Z"
}
FieldTypeDescription
namestringState value (see table below)
timestampstringISO 8601 UTC timestamp
State NameValueDescription
En Routeen_routeEn route to pickup location
ArrivedarrivedArrived at pickup location
On Boardon_boardPatient on board
Arrived at Destinationarrived_at_destinationArrived at destination
CompletedcompletedTrip complete
CanceledcanceledTrip canceled
Dry Rundry_runTrip canceled at pickup
{
"name": "en_route",
"timestamp": "2025-01-15T14:30:00Z"
}
{
"name": [{"message": "\"invalid_state\" is not a valid choice.", "code": "common:choice_invalid"}]
}

Timestamp must be within 7 days of current time and not in the future.

  • ISO 8601 format with UTC timezone
  • Cannot be in the future
  • Must be within 7 days of current time