Riders

The client can GET, POST, PATCH, PUT, and DELETE rider information.

Get By Rider ID

Passing in a single rider/passenger/patient ID returns rider/passenger/patient details.

Request

GET{root_url}/v{version}/riders/getByRiderId
ParameterTypeDescriptionNotes
api_keystringREQUIRED
rider_idstringREQUIRED
versionintAPI version; currently = "1"REQUIRED
Authorizationstringbearer {access token}REQUIRED

Expected Response Codes

CodeDescription
200Request was successful.
403The api key used does not have access to this resource.

Sample 200 Response Body - Get By Rider ID Endpoint

The following sample response shows what a user would receive back.

[
  "Data": [
{
"mediroutes_rider_id": 0,
"tp_api_key": "string",
"rider_id": "string",
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"address":
{
"location_name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zip": "string",
"longitude": 0,
"latitude": 0
},
"phone": "string",
"funding_source_name": "string",
"space_type": "string",
"home_phone": "string",
"mobile_phone": "string",
"icd_10_codes": "string",
"date_of_birth": "string",
"is_male": true,
"is_Female": true,
"comments": "string",
"private_comments": "string",
"email": "string"
}
]

Get Rider By MediRoutes Rider Id

Passing in a single MediRoutes Rider ID returns rider/passenger/patient details.

Request

GET{root_url}/v{version}/riders/getByMediroutesRiderId
ParameterTypeDescriptionNotes
api_keystringREQUIRED
mediroutes_rider_idstringREQUIRED
versionintAPI version; currently = "1"REQUIRED
Authorizationstringbearer {access token}REQUIRED

Expected Response Codes

CodeDescription
200Request was successful.
403The api key used does not have access to this resource.

Sample 200 Response Body - Get By MediRoutes Rider ID Endpoint

The following sample response shows what a user would receive back.

[
  "Data": [
{
"mediroutes_rider_id": 0,
"tp_api_key": "string",
"rider_id": "string",
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"address":
{
"location_name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zip": "string",
"longitude": 0,
"latitude": 0
},
"phone": "string",
"funding_source_name": "string",
"space_type": "string",
"home_phone": "string",
"mobile_phone": "string",
"icd_10_codes": "string",
"date_of_birth": "string",
"is_male": true,
"is_Female": true,
"comments": "string",
"private_comments": "string",
"email": "string"
}
]
]

Delete Rider

Delete a single rider/passenger/patient

Request

DELETE{root_url}/v{version}/riders
ParameterTypeDescriptionNotes
api_keystringREQUIRED
rider_idstringREQUIRED
versionintAPI version; currently = "1"REQUIRED
Authorizationstringbearer {access token}REQUIRED

Expected Response Codes

CodeDescription
200Request was successful.
204No Content
403The api key used does not have access to this resource.

Get Riders

Get an array of all riders/passengers/patients for a given transportation provider

GET{root_url}/v{version}/riders
ParameterTypeDescriptionNotes
api_keystringREQUIRED
versionintAPI version; currently = "1"REQUIRED
Authorizationstringbearer {access token}REQUIRED

Expected Response Codes

CodeDescription
200Request was successful.
403The API key used does not have access to this resource.

Sample 200 Response Body - Get By MediRoutes Rider ID Endpoint

The following sample response shows what a user would receive back.

[
"Data": [
{
"mediroutes_rider_id": 0,
"tp_api_key": "string",
"rider_id": "string",
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"address":
{
"location_name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zip": "string",
"longitude": 0,
"latitude": 0
},
"phone": "string",
"funding_source_name": "string",
"space_type": "string",
"home_phone": "string",
"mobile_phone": "string",
"icd_10_codes": "string",
"date_of_birth": "string",
"is_male": true,
"is_Female": true,
"comments": "string",
"private_comments": "string",
"email": "string"
}
]
]

Updating Rider ID using the MediRoutes Rider Id

Update the rider ID by using the MediRoutes rider Id

Request

PATCH{root_url}/v{version}/riders
ParameterTypeDescriptionNotes
api_keystringREQUIRED
mediroutes_rider_idintThe rider ID used by MediRoutesREQUIRED
rider_idstringThe rider ID that you want assignedREQUIRED
versionintAPI version; currently = "1"REQUIRED
Authorizationstringbearer {access token}REQUIRED

Expected Response Codes

CodeDescription
200Request was successful.
204No Content
403The API key used does not have access to this resource.

Create Rider

Create a new rider/passenger/patient

Request

POST{root_url}/v{version}/riders
ParameterTypeDescriptionNotes
ModelstringSee model definition belowREQUIRED
versionintAPI version; currently = "1"REQUIRED
Authorizationstringbearer {access token}REQUIRED

Model Definition

ParameterTypeDescriptionNotes
tp_api_keystringREQUIRED
rider_idstringUnique Id for the riderREQUIRED
first_namestringREQUIRED
last_namestringREQUIRED
middle_namestring
address-
.location_namestringThe name of the location
.address1stringREQUIRED
.address2string
.citystringREQUIRED
.statestringREQUIRED
.zipstringREQUIRED
.longitudefloat
.latitudefloat
phonestring
funding_source_namestringREQUIRED
space_typestringREQUIRED
home_phonestring
mobile_phonestring
icd_10_codesstring
date_of_birthstring
is_malebooleanUndisclosed if both is_male and is_female are false
is_femalebooleanUndisclosed if both is_male and is_female are false
commentsstring
private_commentsstring
emailstring

Expected Response Codes

CodeDescription
200Request was successful.
403The API key used does not have access to this resource.

Sample 200 Response Body - Create Rider

The following sample response shows what a user would receive back.

[
"Data": [{
"mediroutes_rider_id": 0,
"tp_api_key": "string",
"rider_id": "string",
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"address":
{
"location_name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zip": "string",
"longitude": 0,
"latitude": 0
},
"phone": "string",
"funding_source_name": "string",
"space_type": "string",
"home_phone": "string",
"mobile_phone": "string",
"icd_10_codes": "string",
"date_of_birth": "string",
"is_male": true,
"is_Female": true,
"comments": "string",
"private_comments": "string",
"email": "string"
}]
]

Update Rider

Update an existing rider/passenger/patient

PUT{root_url}/v{version}/riders
ParameterTypeDescriptionNotes
ModelstringSee model definition belowREQUIRED
versionintAPI version; currently = "1"REQUIRED
Authorizationstringbearer {access token}REQUIRED

Model Definition

ParameterTypeDescriptionNotes
tp_api_keystringREQUIRED
rider_idstringUnique Id for the riderREQUIRED
first_namestringREQUIRED
last_namestringREQUIRED
middle_namestring
address-
.location_namestringThe name of the location
.address1stringREQUIRED
.address2string
.citystringREQUIRED
.statestringREQUIRED
.zipstringREQUIRED
.longitudefloat
.latitudefloat
phonestring
funding_source_namestringREQUIRED
space_typestringREQUIRED
home_phonestring
mobile_phonestring
icd_10_codesstring
date_of_birthstring
is_malebooleanUndisclosed if both is_male and is_female are false
is_femalebooleanUndisclosed if both is_male and is_female are false
commentsstring
private_commentsstring
emailstring

Expected Response Codes

CodeDescription
200Request was successful.
403The API key used does not have access to this resource.

Sample 200 Response Body - Update Rider

The following sample response shows what a user would receive back.

[
"Data": [{
"mediroutes_rider_id": 0,
"tp_api_key": "string",
"rider_id": "string",
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"address":
{
"location_name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zip": "string",
"longitude": 0,
"latitude": 0
},
"phone": "string",
"funding_source_name": "string",
"space_type": "string",
"home_phone": "string",
"mobile_phone": "string",
"icd_10_codes": "string",
"date_of_birth": "string",
"is_male": true,
"is_Female": true,
"comments": "string",
"private_comments": "string",
"email": "string"
}]
]