API Documentation v5.6 Updated 20230926
API Documentation v5.6 Updated 20230926
Medicaid Transporta�on
API Endpoint Documentation v5.6 2
Transportation Provider Profile 4
UpdateProviderInfo 5
MyTransportationProviderInfo 14
TransportationProviderProfile 17
Vehicle 35
ListVehicles 36
VehicleUpdate 39
FindVehicleByVIN 44
Driver 47
ListDrivers 48
GetDriver 55
NewDriver 61
UpdateDriver 64
DisableDriver 67
EnableDriver 69
Session Management 71
Trip Management 72
GPS 73
Attestation 74
Corrections 75
Informational 76
Appendix 77
Response Status 78
Token Description 83
Vehicle Type 84
String Variables 85
Correction Id Types 86
Correction Status Values 87
Mileage Upgrade Correction Values 88
Trip Status and Leg Status 89
Driver and Vehicle Reassign Status Values 90
Trip Reassign/Refusal Id Types 91
API Endpoint Documentation v5.6
Overview
The following documentation outlines endpoints which have been updated to accommodate additional elements in respect to Transportation
Provider Profile, Vehicles, and Drivers.
Address https://www.medanswering.com/Provider_API.taf
Requirements An Authentication key will need to be obtained from Medical Answering Services before using API.
Timestamps Timestamps are in local time – further details in section “Token Description” {timestamp}
EXCEPTION – “Update Vehicle Location Request” uses a unique timestamp, formatted as a Unix Epoch
2
3
Transportation Provider Profile
For example, address, contact information, and roles, driver, vehicles, and more.
API List
UpdateProviderInfo
MyTransportationProviderInfo
TransportationProviderProfile
4
UpdateProviderInfo
UpdateProviderInfo | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
UpdateProviderInfo v1
Setter endpoint where company information like address and contact details are submitted to the company profile.
5
operationsManagerContact Required {element} TP Operations Manager
container element
Request Examples
XML
1 <TPRequest>
2 <updateProviderInfo version="1">
3 <sessionIdentifier>21ed3b1e-b479-456b-9db4-b29da7b062f3</sessionIdentifier>
6
4 <profileID>54066</profileID>
5 <physicalAddress>
6 <placeId>ChIJq8nSMdJQmoARkKra0q5qDIQ</placeId>
7 <address2>suite#138</address2>
8 </physicalAddress>
9 <mailingAddress>
10 <address>123 nowhere rd</address>
11 <address2>pobox 123</address2>
12 <city>placerville</city>
13 <state>ca</state>
14 <zip>95667</zip>
15 </mailingAddress>
16 <ownerContact>
17 <firstName>ownerFirst</firstName>
18 <lastName>ownerLast</lastName>
19 <email>[email protected]</email>
20 <phone>650-279-1234</phone>
21 </ownerContact>
22 <operationsManagerContact>
23 <firstName>operationsManagerFirst</firstName>
24 <lastName>operationsManagerLast</lastName>
25 <email>[email protected]</email>
26 <phone>650-279-5679</phone>
27 </operationsManagerContact >
28 <contact1>
29 <firstName>contact1First</firstName>
30 <lastName>contact1Last</lastName>
31 <email>[email protected]</email>
32 <phone>650-279-9012</phone>
33 </contact1>
34 <contact2>
35 <firstName>contact2First</firstName>
36 <lastName>contact2Last</lastName>
37 <email>[email protected]</email>
38 <phone>650-279-9013</phone>
39 </contact2>
40 <routingCompanyId>1</routingCompanyId>
41 <billingCompanyId>2</billingCompanyId>
42 <IsTLCActive>true</IsTLCActive>
43 <IsGPSCapabilitiesActive>true</IsGPSCapabilitiesActive>
44 <IsMASContractAgreementsCompleted>true</IsMASContractAgreementsCompleted>
45 <IsDrugFreeWorkplace>true</IsDrugFreeWorkplace>
46 <IsMASOrientationComplete>true</IsMASOrientationComplete>
47 </updateProviderInfo>
48 </TPRequest>
JSON
1 {
2 "TPRequest": {
3 "sessionIdentifier": "{{sessionIdentifier}}",
4 "call": "updateProviderInfo",
5 "version": 1,
6 "profileID": 54066,
7 "physicalAddress": {
8 "placeId": "ChIJOyshvNk0wYkRydaqDAIJRNw",
9 "address2": "suite#138"
10 },
7
11 "mailingAddress": {
12 "address": "1942 ford rd",
13 "address2": null,
14 "city": "Bristol",
15 "state": "PA",
16 "zip": "19007"
17 },
18 "ownerContact": {
19 "firstName": "Mike",
20 "lastName": "Collins",
21 "email": "[email protected]",
22 "phone": "650-279-1266"
23 },
24 "operationsManagerContact": {
25 "firstName": "operationsTest",
26 "lastName": "managerTest",
27 "email": "[email protected]",
28 "phone": "650-279-1288"
29 },
30 "contact1": {
31 "firstName": "testContact1",
32 "lastName": "testersonContact1",
33 "email": "[email protected]",
34 "phone": "650-279-6577"
35 },
36 "contact2": {
37 "firstName": "testContact2",
38 "lastName": "testersonContact2",
39 "email": "[email protected]",
40 "phone": "650-279-6588"
41 },
42 "routingCompanyId": 1,
43 "billingCompanyId": 2,
44 "IsTLCActive": true,
45 "IsGPSCapabilitiesActive" : true,
46 "IsMASContractAgreementsCompleted": true,
47 "IsDrugFreeWorkplace": true,
48 "IsMASOrientationComplete": true
49 }
50 }
8
transportationProvider State Required {shortstring} TP State
9
transportationProvider Required {int} TP billing company id
Billing_Company_ID
10
routingCompany Required {shortstring} Routing Company company
Company_Name name
Response Examples
XML
11
41 </physicalAddress>
42 <mailingAddress>
43 <address_detail_id>24440363</address_detail_id>
44 <address>1942 Ford Rd</address>
45 <secondary></secondary>
46 <city>Bristol</city>
47 <state>PA</state>
48 <zip>19007</zip>
49 </mailingAddress>
50 <billingCompany>
51 <ID>2</ID>
52 <Company_type>Billing</Company_type>
53 <Company_Name>Transit Partners</Company_Name>
54 <Contact_First_Name>Ronald</Contact_First_Name>
55 <Contact_Last_Name>Molloy</Contact_Last_Name>
56 <Email_Address>[email protected]</Email_Address>
57 <Phone_Number>914-506-4170</Phone_Number>
58 <Website_URL>www.CompanyWebsite.com</Website_URL>
59 </billingCompany>
60 <routingCompany>
61 <ID>1</ID>
62 <Company_type>Routing</Company_type>
63 <Company_Name>Transit Partners</Company_Name>
64 <Contact_First_Name>Ronald</Contact_First_Name>
65 <Contact_Last_Name>Molloy</Contact_Last_Name>
66 <Email_Address>[email protected]</Email_Address>
67 <Phone_Number>914-506-4170</Phone_Number>
68 <Website_URL>www.CompanyWebsite.com</Website_URL>
69 </routingCompany>
70 </updateProviderInfo>
71 </TPResponse>
JSON
1 {
2 "TPResponse": {
3 "mode": "Testing",
4 "callStatus": "1000",
5 "callMessage": "Success.",
6 "updateProviderInfo": {
7 "version": "1",
8 "responseStatus": "1000",
9 "responseMessage": "Success.",
10 "transportationProvider": {
11 "Street": "1111 NJ-73",
12 "Street2": "suite#138",
13 "City": "Mount Laurel Townshi",
14 "State": "NJ",
15 "Zip": "08054",
16 "Owner_First_Name": "Mike",
17 "Owner_Last_Name": "Collins",
18 "Owner_Phone": "650-279-1266",
19 "Owner_Email": "[email protected]",
20 "Operations_Manager_First_Name": "operationsTest",
21 "Operations_Manager_Last_Name": "managerTest",
22 "Operations_Manager_Phone": "650-279-1288",
23 "Operations_Manager_Email": "[email protected]",
24 "Contact_1_First_Name": "testContact1",
12
25 "Contact_1_Last_Name": "testersonContact1",
26 "Contact_1_Phone": "650-279-6577",
27 "Contact_1_Email": "[email protected]",
28 "Contact_2_First_Name": "testContact2",
29 "Contact_2_Last_Name": "testersonContact2",
30 "Contact_2_Phone": "650-279-6588",
31 "Contact_2_Email": "[email protected]",
32 "mailing_address_detail_id": "24440359",
33 "Routing_Company_ID": "1",
34 "Billing_Company_ID": "2"
35 },
36 "physicalAddress": {
37 "address_detail_id": "24440358",
38 "address": "1111 NJ-73",
39 "secondary": "suite#138",
40 "city": "Mount Laurel Township",
41 "state": "NJ",
42 "zip": "08054"
43 },
44 "mailingAddress": {
45 "address_detail_id": "24440359",
46 "address": "1942 Ford Rd",
47 "secondary": "",
48 "city": "Bristol",
49 "state": "PA",
50 "zip": "19007"
51 },
52 "billingCompany": {
53 "ID": "2",
54 "Company_type": "Billing",
55 "Company_Name": "Transit Partners",
56 "Contact_First_Name": "Ronald",
57 "Contact_Last_Name": "Molloy",
58 "Email_Address": "[email protected]",
59 "Phone_Number": "914-506-4170",
60 "Website_URL": "www.CompanyWebsite.com"
61 },
62 "routingCompany": {
63 "ID": "1",
64 "Company_type": "Routing",
65 "Company_Name": "Transit Partners",
66 "Contact_First_Name": "Ronald",
67 "Contact_Last_Name": "Molloy",
68 "Email_Address": "[email protected]",
69 "Phone_Number": "914-506-4170",
70 "Website_URL": "www.CompanyWebsite.com"
71 }
72 }
73 }
74 }
UpdateProviderInfo | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
13
MyTransportationProviderInfo
MyTransportationProviderInfo | Request Elements | Request Examples | JSON | Response Elements | Response Examples | JSON
MyTransportationProviderInfo v1
Returns details for each Transportation Provider’s profiles in the various counties they do business.
This includes county 99 which is a “unified” profile and the primary profile now.
Earlier versions of the system used individual county profiles, but now the unified county 99 profile is used for all transactions and
tracking.
Every company has a county 99 profile and companies which have been added more recently do not have any other counties listed.
Request Examples
XML
6015 = Invalid Request
JSON 1 {
2 "sessionIdentifier": "{{sessionIdentifier}}",
3 "call": "myTransportationProviderInfo",
4 "version": 1
5 }
14
companyName Required {string} Company name
Response Examples
XML
6014 = Invalid Accept
JSON 1 {
2 "MTMResponse": {
3 "mode": "Testing",
4 "callStatus": 1000,
5 "callMessage": "Success.",
6 "myTransportationProviderInfo": {
7 "version": 1,
8 "responseStatus": 1000,
9 "responseMessage": "Success.",
10 "myTransportationProviderInfoResults": [
15
11 {
12 "id": 52034,
13 "providerID": "54648",
14 "medicaidCountyNumber": "99",
15 "medicaidCounty": "",
16 "primary": false,
17 "companyName": "Sunshine Cab Company",
18 "contactFirstName": "Jim",
19 "contactLastName": "Smith",
20 "email": "[email protected]",
21 "tripTypes": "Medicaid| Title XX",
22 "addressDetailId": "123456",
23 "address": "13030 Main St",
24 "secondary": "Ste 801",
25 "detail": "",
26 "city": "Flushing",
27 "state": "NY",
28 "zip": "11354",
29 "county": "Queens",
30 "canAccessDriverApp": false,
31 "Trans_Provider_Service_Areas_Id": "34",
32 "Label": "Default",
33 "Dispatch_Contact_First_Name": "Louie",
34 "Dispatch_Contact_Last_Name": "Smith",
35 "Dispatch_Contact_Phone": "3151231234",
36 "Dispatch_Contact_Phone_Ext": "",
37 "Dispatch_Contact_Email": "[email protected]"
38 },
39 …
40 ]
41 }
42 }
43 }
MyTransportationProviderInfo | Request Elements | Request Examples | JSON | Response Elements | Response Examples | JSON
16
TransportationProviderProfile
TransportationProviderProfile | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML |
JSON
TransportationProviderProfile v1
profileId is linked to a specific county or county 99 which would be the “unified” profile.
Returns contact and address information similar to MyTransportationProviderInfo, but also returns much more.
For example: schedule info, selected billing/routing company, various credentialing fields, services, zip codes serviced, drivers, vehicles,
and more.
Request Examples
JSON 1 {
2 "TPRequest": {
3 "sessionIdentifier": "{{sessionIdentifier}}",
4 "call": "transportationProviderProfile",
5 "version": "1",
6 "profileID": "{{profileID}}"
7 }
8 }
17
status Required {bool} Status
18
Tuesday_End_Time Required {timestamp} End time in local time
19
Friday_Daily_Ride_Capacity Required {int} Daily ride capacity
20
Service_Codes Trans_Type_ID Required {int} Transportation type id
21
Capacity_BLS Required {int} Vehicle BLS capacity
serviceCapacities days capacity Required {int} Service capacity for this day
serviceAreas availability open Required {time} 24 hour time open for this
service area day (e.g.: 0600 =
6:00 AM)
22
serviceAreas availability closed Required {time} 24 hour time open for this
service area day (e.g.: 0600 =
6:00 AM)
Response Examples
23
XML 1 <?xml version="1.0" encoding="utf-8" ?>
2 <TPResponse mode="Production">
3 <callStatus>1000</callStatus>
4 <callMessage>Success.</callMessage>
5 <transportationProviderProfile version="1">
6 <responseStatus>1000</responseStatus>
7 <responseMessage>Success.</responseMessage>
8 <Status>
9 <![CDATA[1]]>
10 </Status>
11 <Company_Name>
12 <![CDATA[Training Vendor]]>
13 </Company_Name>
14 <FAX></FAX>
15 <Owner_First_Name>
16 <![CDATA[Mike]]>
17 </Owner_First_Name>
18 <Owner_Last_Name>
19 <![CDATA[Collins]]>
20 </Owner_Last_Name>
21 <Owner_Phone>
22 <![CDATA[6502791266]]>
23 </Owner_Phone>
24 <Owner_Email>
25 <![CDATA[[email protected]]]>
26 </Owner_Email>
27 <Operations_Manager_First_Name>
28 <![CDATA[operationsTest]]>
29 </Operations_Manager_First_Name>
30 <Operations_Manager_Last_Name>
31 <![CDATA[managerTest]]>
32 </Operations_Manager_Last_Name>
33 <Operations_Manager_Phone>
34 <![CDATA[6502791288]]>
35 </Operations_Manager_Phone>
36 <Operations_Manager_Email>
37 <![CDATA[[email protected]]]>
38 </Operations_Manager_Email>
39 <Dispatch_First_Name>
40 <![CDATA[Terri]]>
41 </Dispatch_First_Name>
42 <Dispatch_Last_Name>
43 <![CDATA[Collins]]>
44 </Dispatch_Last_Name>
45 <Dispatch_Phone>
46 <![CDATA[6502791277]]>
47 </Dispatch_Phone>
48 <Dispatch_Email>
49 <![CDATA[[email protected]]]>
50 </Dispatch_Email>
51 <Contact_1_First_Name>
52 <![CDATA[testContact1]]>
53 </Contact_1_First_Name>
54 <Contact_1_Last_Name>
55 <![CDATA[testersonContact1]]>
56 </Contact_1_Last_Name>
57 <Contact_1_Phone>
58 <![CDATA[6502796577]]>
59 </Contact_1_Phone>
24
60 <Contact_1_Email>
61 <![CDATA[[email protected]]]>
62 </Contact_1_Email>
63 <Contact_2_First_Name>
64 <![CDATA[testContact2]]>
65 </Contact_2_First_Name>
66 <Contact_2_Last_Name>
67 <![CDATA[testersonContact2]]>
68 </Contact_2_Last_Name>
69 <Contact_2_Phone>
70 <![CDATA[6502796588]]>
71 </Contact_2_Phone>
72 <Contact_2_Email>
73 <![CDATA[[email protected]]]>
74 </Contact_2_Email>
75 <Provider_ID>
76 <![CDATA[TRAINING]]>
77 </Provider_ID>
78 <Contact_Method></Contact_Method>
79 <Business_Hours></Business_Hours>
80 <Tax_ID></Tax_ID>
81 <Use_Schedule>true</Use_Schedule>
82 <Monday_Start_Time>00:00</Monday_Start_Time>
83 <Monday_End_Time>24:00</Monday_End_Time>
84 <Tuesday_Start_Time>00:00</Tuesday_Start_Time>
85 <Tuesday_End_Time>24:00</Tuesday_End_Time>
86 <Wednesday_Start_Time>00:00</Wednesday_Start_Time>
87 <Wednesday_End_Time>24:00</Wednesday_End_Time>
88 <Thursday_Start_Time>00:00</Thursday_Start_Time>
89 <Thursday_End_Time>24:00</Thursday_End_Time>
90 <Friday_Start_Time>00:00</Friday_Start_Time>
91 <Friday_End_Time>24:00</Friday_End_Time>
92 <Saturday_Start_Time>00:00</Saturday_Start_Time>
93 <Saturday_End_Time>24:00</Saturday_End_Time>
94 <Sunday_Start_Time>00:00</Sunday_Start_Time>
95 <Sunday_End_Time>24:00</Sunday_End_Time>
96 <Monday_Set_Hours_Available></Monday_Set_Hours_Available>
97 <Tuesday_Set_Hours_Available></Tuesday_Set_Hours_Available>
98 <Wednesday_Set_Hours_Available></Wednesday_Set_Hours_Available>
99 <Thursday_Set_Hours_Available></Thursday_Set_Hours_Available>
100 <Friday_Set_Hours_Available></Friday_Set_Hours_Available>
101 <Saturday_Set_Hours_Available></Saturday_Set_Hours_Available>
102 <Sunday_Set_Hours_Available></Sunday_Set_Hours_Available>
103 <Display_on_Public_Site>true</Display_on_Public_Site>
104 <Local_Payment>false</Local_Payment>
105 <Include_In_Rotation>false</Include_In_Rotation>
106 <address_detail_id>24440368</address_detail_id>
107 <SameDayCall>true</SameDayCall>
108 <NextDayCall>true</NextDayCall>
109 <mailing_address_detail_id>24440369</mailing_address_detail_id>
110 <Is_RideHail>false</Is_RideHail>
111 <Use_Daily_Ride_Capacity>true</Use_Daily_Ride_Capacity>
112 <Monday_Daily_Ride_Capacity>1000</Monday_Daily_Ride_Capacity>
113 <Tuesday_Daily_Ride_Capacity>1000</Tuesday_Daily_Ride_Capacity>
114 <Wednesday_Daily_Ride_Capacity>50</Wednesday_Daily_Ride_Capacity>
115 <Thursday_Daily_Ride_Capacity>50</Thursday_Daily_Ride_Capacity>
116 <Friday_Daily_Ride_Capacity>50</Friday_Daily_Ride_Capacity>
117 <Saturday_Daily_Ride_Capacity>40</Saturday_Daily_Ride_Capacity>
118 <Sunday_Daily_Ride_Capacity>1000</Sunday_Daily_Ride_Capacity>
119 <Routing_Company_ID>1</Routing_Company_ID>
25
120 <Billing_Company_ID>2</Billing_Company_ID>
121 <Comments></Comments>
122 <IsDOHApprovalLetterActive>false</IsDOHApprovalLetterActive>
123 <IsEMedNyRegistrationActive>false</IsEMedNyRegistrationActive>
124 <IsTLCActive>true</IsTLCActive>
125 <IsGPSCapabilitiesActive>true</IsGPSCapabilitiesActive>
126 <IsMASContractAgreementsCompleted>true</IsMASContractAgreementsCompleted>
127 <IsDrugFreeWorkplace>true</IsDrugFreeWorkplace>
128 <IsMASOrientationComplete>true</IsMASOrientationComplete>
129 <IsCompanyExclusionCheckStatusActive>false</IsCompanyExclusionCheckStatusActive>
130 <CompanyExclusionDate></CompanyExclusionDate>
131 <IsOwnerExclusionCheckStatusActive>false></IsOwnerExclusionCheckStatusActive>
132 <OwnerExclusionCheckDate></OwnerExclusionCheckDate>
133 <IsOperationsManagerExclusionCheckStatusActive>false</IsOperationsManagerExclusionCheckStatusAct
134 <OperationsManagerExclusionCheckDate></OperationsManagerExclusionCheckDate>
135 <IsContact1ExclusionCheckStatusActive>false</IsContact1ExclusionCheckStatusActive>
136 <Contact1ExclusionCheckDate></Contact1ExclusionCheckDate>
137 <IsContact2ExclusionCheckStatusActive>false</IsContact2ExclusionCheckStatusActive>
138 <Contact2ExclusionCheckDate></Contact2ExclusionCheckDate>
139 <NPINumber>1234567891</NPINumber>
140 <Unavailable_Dates>
141 <value>06/10/2019</value>
142 <value>09/09/2021</value>
143 <value>01/01/2022</value>
144 ...
145 </Unavailable_Dates>
146 <Service_Codes>
147 <service>
148 <ID>836255</ID>
149 <Status>1</Status>
150 <Trans_Type_ID></Trans_Type_ID>
151 <Service>Mileage-Ambulette Cattaraugus</Service>
152 <Procedure_Code>S0209</Procedure_Code>
153 <Procedure_Code_Mod></Procedure_Code_Mod>
154 <Rate>2.06</Rate>
155 </service>
156 ...
157 </Service_Codes>
158 <Drivers>
159 <driver>
160 <ID>1648973</ID>
161 <Status>1</Status>
162 <First_Name>chuck</First_Name>
163 <Last_Name>blue</Last_Name>
164 <License>123455677</License>
165 <Expiration>11/10/2021</Expiration>
166 <Email_Address>
167 <![CDATA[[email protected]]]>
168 </Email_Address>
169 <Birth_Date>10/20/1962</Birth_Date>
170 <CTAA_Email_Address>
171 <![CDATA[[email protected]]]>
172 </CTAA_Email_Address>
173 <MVR_Check_Date></MVR_Check_Date>
174 <MVR_Check_Status>0</MVR_Check_Status>
175 </driver>
176 ...
177 </Drivers>
178 <Vehicles>
179 <vehicle>
26
180 <ID>1418507</ID>
181 <Status>0</Status>
182 <Vehicle_Type>betsy</Vehicle_Type>
183 <Vehicle_Name>Livery</Vehicle_Name>
184 <License>abc123</License>
185 <Expiration>10/31/2022</Expiration>
186 <Vin>1WXYZ31L58DB07T87</Vin>
187 <Vehicle_Year>2008</Vehicle_Year>
188 <Vehicle_Make>FORD</Vehicle_Make>
189 <Vehicle_Model>E-350</Vehicle_Model>
190 <Vehicle_Color>gray</Vehicle_Color>
191 <Capacity_Taxi_Livery>12</Capacity_Taxi_Livery>
192 <Capacity_Ambulatory>0</Capacity_Ambulatory>
193 <Capacity_Wheelchair>0</Capacity_Wheelchair>
194 <Capacity_Stretcher>0</Capacity_Stretcher>
195 <Capacity_BLS>0</Capacity_BLS>
196 <Capacity_ALS>0</Capacity_ALS>
197 <DMV_Registration_Status>1</DMV_Registration_Status>
198 </vehicle>
199 ...
200 </Vehicles>
201 <serviceZipcodes>
202 <zipCounty>
203 <zipcode>10001</zipcode>
204 <county>New York</county>
205 <address_county_id>31</address_county_id>
206 </zipCounty>
207 ...
208 </serviceZipcodes>
209 <availableServiceTypes size="6">
210 <availableServiceType index="1">
211 <serviceTypeId>114606</serviceTypeId>
212 <serviceTypeShortName>Bus-Roster</serviceTypeShortName>
213 </availableServiceType>
214 <availableServiceType index="2">
215 <serviceTypeId>108666</serviceTypeId>
216 <serviceTypeShortName>Taxi/Livery</serviceTypeShortName>
217 </availableServiceType>
218 <availableServiceType index="3">
219 <serviceTypeId>108662</serviceTypeId>
220 <serviceTypeShortName>Ambulatory</serviceTypeShortName>
221 </availableServiceType>
222 <availableServiceType index="4">
223 <serviceTypeId>108667</serviceTypeId>
224 <serviceTypeShortName>Stretcher</serviceTypeShortName>
225 </availableServiceType>
226 <availableServiceType index="5">
227 <serviceTypeId>108661</serviceTypeId>
228 <serviceTypeShortName>Ambulance-BLS</serviceTypeShortName>
229 </availableServiceType>
230 <availableServiceType index="6">
231 <serviceTypeId>108660</serviceTypeId>
232 <serviceTypeShortName>Ambulance-ALS</serviceTypeShortName>
233 </availableServiceType>
234 </availableServiceTypes>
235 <serviceCapacities>
236 <serviceType id="108660">
237 <capacity maximumCapacity="99999" day="0">1</capacity>
238 <capacity maximumCapacity="99999" day="1">2</capacity>
239 <capacity maximumCapacity="99999" day="2">3</capacity>
27
240 <capacity maximumCapacity="99999" day="3">4</capacity>
241 <capacity maximumCapacity="99999" day="4">5</capacity>
242 <capacity maximumCapacity="99999" day="5">6</capacity>
243 <capacity maximumCapacity="99999" day="6">7</capacity>
244 </serviceType>
245 ...
246 </serviceCapacities>
247 <serviceAreas count="1">
248 <serviceAreaId>1932</serviceAreaId>
249 <label>Test South</label>
250 <serviceTypeIds count="1">
251 <id>108667</id>
252 </serviceTypeIds>
253 <zipcodes count="120">
254 <zip>12041</zip>
255 <zip>12045</zip>
256 <zip>12046</zip>
257 <zip>12047</zip>
258 ...
259 </zipcodes>
260 <availability count="7">
261 <day>0</day>
262 <open>0000</open>
263 <closed>2400</closed>
264 <day>1</day>
265 <open>0000</open>
266 <closed>2400</closed>
267 <day>2</day>
268 <open>0000</open>
269 <closed>2400</closed>
270 <day>3</day>
271 <open>0000</open>
272 <closed>2400</closed>
273 <day>4</day>
274 <open>0000</open>
275 <closed>2400</closed>
276 <day>5</day>
277 <open>0000</open>
278 <closed>2400</closed>
279 <day>6</day>
280 <open>0000</open>
281 <closed>2400</closed>
282 </availability>
283 </serviceAreas>
284 <can_toggle_schedule>true</can_toggle_schedule>
285 <ambulanceService>true</ambulanceService>
286 <isUnifiedInUse>true</isUnifiedInUse>
287 </transportationProviderProfile>
288 </TPResponse>
JSON 1 {
2 "TPResponse": {
3 "mode": "Production",
4 "callStatus": "1000",
5 "callMessage": "Success.",
6 "transportationProviderProfile": {
7 "version": "1",
8 "responseStatus": "1000",
9 "responseMessage": "Success.",
28
10 "Status": "1",
11 "Company_Name": "Training Vendor",
12 "FAX": "",
13 "Owner_First_Name": "Mike",
14 "Owner_Last_Name": "Collins",
15 "Owner_Phone": "6502791266",
16 "Owner_Email": "[email protected]",
17 "Operations_Manager_First_Name": "operationsTest",
18 "Operations_Manager_Last_Name": "managerTest",
19 "Operations_Manager_Phone": "6502791288",
20 "Operations_Manager_Email": "[email protected]",
21 "Dispatch_First_Name": "Terri",
22 "Dispatch_Last_Name": "Collins",
23 "Dispatch_Phone": "6502791277",
24 "Dispatch_Email": "[email protected]",
25 "Contact_1_First_Name": "testContact1",
26 "Contact_1_Last_Name": "testersonContact1",
27 "Contact_1_Phone": "6502796577",
28 "Contact_1_Email": "[email protected]",
29 "Contact_2_First_Name": "testContact2",
30 "Contact_2_Last_Name": "testersonContact2",
31 "Contact_2_Phone": "6502796588",
32 "Contact_2_Email": "[email protected]",
33 "Provider_ID": "TRAINING",
34 "Contact_Method": "",
35 "Business_Hours": "",
36 "Tax_ID": "",
37 "Use_Schedule": true,
38 "Monday_Start_Time": "00:00",
39 "Monday_End_Time": "24:00",
40 "Tuesday_Start_Time": "00:00",
41 "Tuesday_End_Time": "24:00",
42 "Wednesday_Start_Time": "00:00",
43 "Wednesday_End_Time": "24:00",
44 "Thursday_Start_Time": "00:00",
45 "Thursday_End_Time": "24:00",
46 "Friday_Start_Time": "00:00",
47 "Friday_End_Time": "24:00",
48 "Saturday_Start_Time": "00:00",
49 "Saturday_End_Time": "24:00",
50 "Sunday_Start_Time": "00:00",
51 "Sunday_End_Time": "24:00",
52 "Monday_Set_Hours_Available": "",
53 "Tuesday_Set_Hours_Available": "",
54 "Wednesday_Set_Hours_Available": "",
55 "Thursday_Set_Hours_Available": "",
56 "Friday_Set_Hours_Available": "",
57 "Saturday_Set_Hours_Available": "",
58 "Sunday_Set_Hours_Available": "",
59 "Display_on_Public_Site": true,
60 "Local_Payment": false,
61 "Include_In_Rotation": false,
62 "address_detail_id": "24440368",
63 "SameDayCall": true,
64 "NextDayCall": true,
65 "mailing_address_detail_id": "24440369",
66 "Is_RideHail": false,
67 "Use_Daily_Ride_Capacity": true,
68 "Monday_Daily_Ride_Capacity": "1000",
69 "Tuesday_Daily_Ride_Capacity": "1000",
29
70 "Wednesday_Daily_Ride_Capacity": "50",
71 "Thursday_Daily_Ride_Capacity": "50",
72 "Friday_Daily_Ride_Capacity": "50",
73 "Saturday_Daily_Ride_Capacity": "40",
74 "Sunday_Daily_Ride_Capacity": "1000",
75 "Routing_Company_ID": "1",
76 "Billing_Company_ID": "2",
77 "Comments": "",
78 "IsDOHApprovalLetterActive": false,
79 "IsEMedNyRegistrationActive": false,
80 "IsTLCActive": true,
81 "IsGPSCapabilitiesActive": true,
82 "IsMASContractAgreementsCompleted": true,
83 "IsDrugFreeWorkplace": true,
84 "IsMASOrientationComplete": true,
85 "IsCompanyExclusionCheckStatusActive": false,
86 "CompanyExclusionDate": "",
87 "IsOwnerExclusionCheckStatusActive": false,
88 "OwnerExclusionCheckDate": "",
89 "IsOperationsManagerExclusionCheckStatusActive": false,
90 "OperationsManagerExclusionCheckDate": "",
91 "IsContact1ExclusionCheckStatusActive": false,
92 "Contact1ExclusionCheckDate": "",
93 "IsContact2ExclusionCheckStatusActive": false,
94 "Contact2ExclusionCheckDate": "",
95 "NPINumber": "1234567891",
96 "Unavailable_Dates": [
97 "06/10/2019",
98 "06/11/2019",
99 "06/12/2019",
100 "06/14/2019",
101 "06/24/2021",
102 "07/11/2021",
103 "08/20/2021",
104 "08/21/2021",
105 "12/08/2021",
106 "01/01/2022"
107 ],
108 "Service_Codes": [
109 {
110 "ID": "839079",
111 "Status": "1",
112 "Trans_Type_ID": "108666",
113 "Service": "Taxi-Essex",
114 "Procedure_Code": "A0100",
115 "Procedure_Code_Mod": "",
116 "Rate": "8.82"
117 },
118 ...
119 {
120 "ID": "841748",
121 "Status": "1",
122 "Trans_Type_ID": "108663",
123 "Service": "Wheelchair/MN-Hospital Discharge IB",
124 "Procedure_Code": "A0130",
125 "Procedure_Code_Mod": "TG",
126 "Rate": "45.00"
127 }
128 ],
129 "Drivers": [
30
130 {
131 "ID": "1648973",
132 "Status": "1",
133 "First_Name": "chuck",
134 "Last_Name": "blue",
135 "License": "123455677",
136 "Expiration": "11/10/2021",
137 "Email_Address": "[email protected]",
138 "Birth_Date": "10/20/1962",
139 "CTAA_Email_Address": "[email protected]",
140 "MVR_Check_Date": "",
141 "MVR_Check_Status": "0"
142 },
143 ...
144 {
145 "ID": "1785166",
146 "Status": "1",
147 "First_Name": "Fred",
148 "Last_Name": "Burghardt",
149 "License": "580082674",
150 "Expiration": "10/16/2025",
151 "Email_Address": "[email protected]",
152 "Birth_Date": "10/20/1962",
153 "CTAA_Email_Address": "[email protected]",
154 "MVR_Check_Date": "",
155 "MVR_Check_Status": "0"
156 }
157 ],
158 "Vehicles": [
159 {
160 "ID": "1418507",
161 "Status": "0",
162 "Vehicle_Type": "betsy",
163 "Vehicle_Name": "Livery",
164 "License": "abc123",
165 "Expiration": "10/31/2022",
166 "Vin": "1ABCD23E58DB07T56",
167 "Vehicle_Year": "2008",
168 "Vehicle_Make": "FORD",
169 "Vehicle_Model": "E-350",
170 "Vehicle_Color": "blue",
171 "Capacity_Taxi_Livery": "12",
172 "Capacity_Ambulatory": "0",
173 "Capacity_Wheelchair": "0",
174 "Capacity_Stretcher": "0",
175 "Capacity_BLS": "0",
176 "Capacity_ALS": "0",
177 "DMV_Registration_Status": "1"
178 },
179 ...
180 {
181 "ID": "1420507",
182 "Status": "1",
183 "Vehicle_Type": "Trainer Van",
184 "Vehicle_Name": "Livery",
185 "License": "TestVeh",
186 "Expiration": "10/17/2021",
187 "Vin": "1WXYZ31L58DB07T97",
188 "Vehicle_Year": "2018",
189 "Vehicle_Make": "FORD",
31
190 "Vehicle_Model": "E-350",
191 "Vehicle_Color": "Gray",
192 "Capacity_Taxi_Livery": "12",
193 "Capacity_Ambulatory": "0",
194 "Capacity_Wheelchair": "0",
195 "Capacity_Stretcher": "0",
196 "Capacity_BLS": "0",
197 "Capacity_ALS": "0",
198 "DMV_Registration_Status": "1"
199 }
200 ],
201 "serviceZipcodes": [
202 {
203 "zipcode": "10001",
204 "county": "New York",
205 "address_county_id": "31"
206 },
207 ...
208 {
209 "zipcode": "14905",
210 "county": "Chemung",
211 "address_county_id": "8"
212 }
213 ],
214 "availableServiceTypes": [
215 {
216 "serviceTypeId": "114606",
217 "serviceTypeShortName": "Bus-Roster"
218 },
219 {
220 "serviceTypeId": "108666",
221 "serviceTypeShortName": "Taxi/Livery"
222 },
223 {
224 "serviceTypeId": "108662",
225 "serviceTypeShortName": "Ambulatory"
226 },
227 {
228 "serviceTypeId": "108667",
229 "serviceTypeShortName": "Stretcher"
230 },
231 {
232 "serviceTypeId": "108661",
233 "serviceTypeShortName": "Ambulance-BLS"
234 },
235 {
236 "serviceTypeId": "108660",
237 "serviceTypeShortName": "Ambulance-ALS"
238 }
239 ],
240 "serviceCapacities": [
241 {
242 "serviceTypeId": "108660",
243 "days": [
244 {
245 "day": "0",
246 "capacity": "1",
247 "maximumCapacity": "99999"
248 },
249 {
32
250 "day": "1",
251 "capacity": "2",
252 "maximumCapacity": "99999"
253 },
254 {
255 "day": "2",
256 "capacity": "3",
257 "maximumCapacity": "99999"
258 },
259 {
260 "day": "3",
261 "capacity": "4",
262 "maximumCapacity": "99999"
263 },
264 {
265 "day": "4",
266 "capacity": "5",
267 "maximumCapacity": "99999"
268 },
269 {
270 "day": "5",
271 "capacity": "6",
272 "maximumCapacity": "99999"
273 },
274 {
275 "day": "6",
276 "capacity": "7",
277 "maximumCapacity": "99999"
278 }
279 ]
280 },
281 ...
282 ],
283 "serviceAreas": [
284 {
285 "serviceAreaId": "1932",
286 "label": "Test South",
287 "SA_ID": "3138",
288 "SA_Dispatch_First_Name": "Louie",
289 "SA_Dispatch_Last_Name": "De Palma",
290 "SA_Dispatch_Phone": "1231231234",
291 "SA_Dispatch_Phone_Ext": "4321",
292 "SA_Dispatch_Email": "[email protected]",
293 "serviceTypeIds": [
294 "108667"
295 ],
296 "zipcodes": [
297 "12041",
298 "12045",
299 "12046",
300 "14895",
301 "14897"
302 ],
TransportationProviderProfile
303 | Request Elements
"availability": [ | Request Examples | XML | JSON | Response Elements | Response Examples | XML |
JSON 304 {
305 "day": "0",
306 "open": "0000",
307 "closed": "2400"
308 },
309 {
33
310 "day": "1",
311 "open": "0000",
312 "closed": "2400"
313 },
314 {
315 "day": "2",
316 "open": "0000",
317 "closed": "2400"
318 },
319 {
320 "day": "3",
321 "open": "0000",
322 "closed": "2400"
323 },
324 {
325 "day": "4",
326 "open": "0000",
327 "closed": "2400"
328 },
329 {
330 "day": "5",
331 "open": "0000",
332 "closed": "2400"
333 },
334 {
335 "day": "6",
336 "open": "0000",
337 "closed": "2400"
338 }
339 ]
340 },
341 ...
342 ],
343 "can_toggle_schedule": true,
344 "ambulanceService": true,
345 "isUnifiedInUse": true,
346 "canAccessDriverApp": true
347 }
348 }
349 }
34
Vehicle
Vehicle APIs
The collection of Vehicle APIs, includes getter and setter endpoints for managing company vehicles.
API List
ListVehicles
VehicleUpdate
FindVehicleByVIN
35
ListVehicles
ListVehicles | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
ListVehicles v1
Request Examples
XML 1 <TPRequest>
2 <listVehicles>
3 <sessionIdentifier>{{sessionIdentifier}}</sessionIdentifier>
4 </listVehicles>
5 </TPRequest>
JSON 1 {
2 "TPRequest": {
3 "sessionIdentifier": "{{sessionIdentifier}}",
4 "call": "listVehicles",
5 "version":1
6 }
7 }
36
MedicaidCountyNumber Required {int} Medicaid county number
Response Examples
JSON 1 {
2 "TPResponse": {
3 "mode": "Production",
4 "callStatus": "1000",
5 "callMessage": "Success.",
6 "listVehicles": {
7 "version": "1",
8 "responseStatus": "1000",
9 "responseMessage": "Success.",
10 "vehicles": [
11 {
12 "ID": 1688169,
13 "Vehicle_Name": "PerfectoTestCar2",
14 "Vehicle_Type": "Taxi",
15 "Status": 1,
16 "License": "PERF 2234",
17 "Expiration": "01/01/2033 00:00:00",
18 "MedicaidCountyNumber": "99"
19 },
20 ...
21 {
22 "ID": 1472407,
23 "Vehicle_Name": "run",
24 "Vehicle_Type": "Ambulance",
25 "Status": 1,
37
26 "License": "0993824",
27 "Expiration": "06/04/2021 00:00:00",
28 "MedicaidCountyNumber": "99"
29 }
30 ]
31 }
32 }
33 }
ListVehicles | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
38
VehicleUpdate
VehicleUpdate | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
VehicleUpdate v4
Updates existing vehicle records OR creates a new vehicle record if it does not already exist.
Will match existing Transportation Provider vehicles by vehicleRegistration and update all instances across various county configurations.
Prior to unification (county 99), vehicles were configured in each Medicaid county that the Transportation Provider services.
Helps to keep vehicle updates synced across multiple counties.
The response contains an array of records because it is possible for the same “vehicle” to be matched in multiple counties.
The ‘registrationId’ is the ‘listVehicles’ response element ‘License’.
39
NOTE: if “ADD” request is
flagged to specifically
insert
Request Examples
XML
JSON
1 {
2 "sessionIdentifier": "{{sessionIdentifier}}",
3 "call": "VehicleUpdate",
4 "version": 4,
5 "status": "0",
6 "vehicleName": "ford650",
7 "vehicleType": "Livery",
8 "registrationId": "AZ12347",
9 "expirationDate": "09/30/2023",
10 "vin": "3FRNF65W38V652458",
11 "vehicleYear": "2008",
12 "vehicleMake": "FORD",
13 "vehicleModel": "F-650",
14 "vehicleColor": "White",
15 "capacityTaxiLivery": "10",
16 "capacityAmbulatory": "0",
17 "capacityWheelchair": "0",
18 "capacityStretcher": "0",
19 "capacityBLS": "0",
20 "capacityALS": "0",
21 "newVehicleName": "ADD",
22 "newRegistrationId": "ADD"
23 }
40
Response Elements Required or Optional Type Definition
Response Examples
XML
41
10 <![CDATA[Success.]]>
11 </responseMessage>
12 <record>
13 <vehicleId>1690227</vehicleId>
14 <updateStatus>Added</updateStatus>
15 <vehicleName>ford650-3</vehicleName>
16 <vehicleType>Livery</vehicleType>
17 <vehicleStatus>0</vehicleStatus>
18 <vehicleRegistration>AZ12350</vehicleRegistration>
19 <vin>3FRNF65294V607743</vin>
20 <color>Red White</color>
21 <year>2004</year>
22 <make>Ford</make>
23 <model>F-650</model>
24 <capacityTaxiLivery>10</capacityTaxiLivery>
25 <capacityAmbulatory></capacityAmbulatory>
26 <capacityWheelchair></capacityWheelchair>
27 <capacityStretcher></capacityStretcher>
28 <capacityBLS></capacityBLS>
29 <capacityALS></capacityALS>
30 <vehicleRegistrationExpiration>03/31/2024 00:00:00</vehicleRegistrationExpiration>
31 <dateModified>08/31/2023 15:07:54</dateModified>
32 </record>
33 </VehicleUpdate>
34 </TPResponse>
JSON
1 {
2 "TPResponse": {
3 "mode": "Production",
4 "callStatus": "1000",
5 "callMessage": "Success.",
6 "VehicleUpdate": {
7 "version": "4",
8 "responseStatus": "1000",
9 "responseMessage": "Success.",
10 "records": [
11 {
12 "vehicleId": "1690226",
13 "updateStatus": "Added",
14 "vehicleName": "ford650",
15 "vehicleType": "Livery",
16 "vehicleStatus": "1",
17 "vehicleRegistration": "AZ12347",
18 "vin": "3FRNF65W38V652458",
19 "color": "White",
20 "year": 2008,
21 "make": "",
22 "model": "2008",
23 "capacityTaxiLivery": 10,
24 "capacityAmbulatory": null,
25 "capacityWheelchair": 0,
26 "capacityStretcher": 0,
27 "capacityBLS": 0,
28 "capacityALS": 0,
29 "vehicleRegistrationExpiration": "09/30/2023 00:00:00",
30 "dateModified": "08/30/2023 13:22:11"
42
31 }
32 ]
33 }
34 }
35 }
VehicleUpdate | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
43
FindVehicleByVIN
FindVehicleByVIN | Request Elements | Request Examples | JSON | Response Elements | Response Examples | JSON
FindVehicleByVIN v#
Returns the current status that MAS has received from NY State DMV regarding a specific VIN.
Request Examples
XML
6015 = Invalid Request
JSON 1 {
2 "TPRequest": {
3 "sessionIdentifier": "{{sessionIdentifier}}",
4 "call": "findVehicleByVin",
5 "version": 1,
6 "vin": "AAPV0120470409401"
7 }
8 }
44
county Required {string} Registered County
Response Examples
XML
6014 = Invalid Accept
JSON 1 {
2 "TPResponse": {
3 "mode": "Production",
4 "callStatus": "1000",
5 "callMessage": "Success.",
6 "findVehicleByVin": {
7 "version": "1",
8 "responseStatus": "1000",
9 "responseMessage": "Success.",
10 "vehicle": {
11 "recordType": "VEH",
12 "vin": "AAPV0120470409401",
13 "registrationClass": "PAS",
14 "city": "EAGLE BAY",
15 "state": "NY",
16 "zip": "13331",
17 "county": "HAMILTON",
18 "modelYear": "1989",
19 "model": "1989",
45
20 "make": "LNDR",
21 "fuelType": "GAS",
22 "passengers": null,
23 "unladenWeight": "4200",
24 "maximumGrossWeight": null,
25 "regValidDate": "2022/06/21",
26 "regExpirationDate": "2024/08/14",
27 "color": "White",
28 "scofflawIndicator": false,
29 "suspensionIndicator": false,
30 "revocationIndicator": false,
31 "bodyType": "SUBURBAN",
32 "createdDate": "2023/08/18 16:24:10"
33 }
34 }
35 }
36 }
FindVehicleByVIN | Request Elements | Request Examples | JSON | Response Elements | Response Examples | JSON
46
Driver
Driver APIs
The collection of Driver APIs, includes getter and setter endpoints for managing company drivers.
API List
ListDrivers
GetDriver
NewDriver
UpdateDriver
DisableDriver
EnableDriver
47
ListDrivers
ListDrivers | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
ListDrivers v5
Some of the “driver” API calls require a unique driver ID that represents the primary key id used in the database.
ListDrivers returns this value as “ID” in the response. In XML it is an attribute and in the JSON response it is an element.
The Driver ID can also be retrieved from Transportation Provider Profile.
List Drivers version Required {int} Version of the List Drivers Call
Request Examples
JSON 1 {
2 "TPRequest": {
3 "sessionIdentifier": "{{sessionIdentifier}}",
4 "call": "listDrivers",
5 "version": 5,
6 "disabled": "0",
7 "allDrivers":true
8 }
9 }
48
Call Status Required {int} 1000, 40XX
List Drivers Version Required. {int} The version of the call for the list
of drivers
First Name Required. {shortstring} The first name of the driver – this
will repeat for each driver
returned
Last Name Required. {shortstring} The last name of the driver – this
will repeat for each driver
returned
49
Trans_Provider_Driver_ID Required (JSON Only) {int} Transportation provider driver ID
Exclusion_LastCheck_Date Required (JSON Only) {date} Last time that exclusions were
checked for
Exclusion_NextCheck_Date Required (JSON Only) {date} Next time the exclusions will be
checked for
Exclusion_Check_Status Required (JSON Only) {boolean] Are there any exclusions for the
driver?
Response Examples
50
XML 1 <?xml version="1.0" encoding="utf-8" ?>
2 <TPResponse mode="Production">
3 <callStatus>1000</callStatus>
4 <callMessage>
5 <![CDATA[Success.]]>
6 </callMessage>
7 <listDrivers version="5">
8 <responseStatus>1000</responseStatus>
9 <responseMessage>
10 <![CDATA[Success.]]>
11 </responseMessage>
12 <drivers count="65">
13 <driver id="1837371">
14 <Status>0</Status>
15 <First_Name>Brian</First_Name>
16 <Last_Name>ASHer</Last_Name>
17 <Expiration>08/06/2026 00:00:00</Expiration>
18 <License>wqeqeqwer</License>
19 <LicenseState>HI</LicenseState>
20 <MedicaidCountyNumber>99</MedicaidCountyNumber>
21 <allowLogin>1</allowLogin>
22 <Phone_Number>555-555-5454</Phone_Number>
23 <Email_Address>
24 <![CDATA[[email protected]]]>
25 </Email_Address>
26 <MedicaidCountyNumber>99</MedicaidCountyNumber>
27 <Birth_Date></Birth_Date>
28 <CTAA_Email_Address>
29 <![CDATA[[email protected]]]>
30 </CTAA_Email_Address>
31 <MVR_Check_Date></MVR_Check_Date>
32 <MVR_Check_Status></MVR_Check_Status>
33 <Last_Update>08/22/2023</Last_Update>
34 <Social_Security_Number></Social_Security_Number>
35 <Exclusion_Check_Status>false</Exclusion_Check_Status>
36 <driverTraining>
37 <ID>1</ID>
38 <Trans_Provider_Driver_ID>1837371</Trans_Provider_Driver_ID>
39 <Certificate_ID>1</Certificate_ID>
40 <Training_Name>MAS Driver Education</Training_Name>
41 <Certificate_Expiration>10/04/2024</Certificate_Expiration>
42 <ID>2</ID>
43 <Trans_Provider_Driver_ID>1837371</Trans_Provider_Driver_ID>
44 <Certificate_ID>2</Certificate_ID>
45 <Training_Name>Basic PASS</Training_Name>
46 <Certificate_Expiration>11/05/2024</Certificate_Expiration>
47 </driverTraining>
48 <driverExclusions>
49 <Trans_Provider_Driver_ID>1837371</Trans_Provider_Driver_ID>
50 <ID>1</ID>
51 <Exclusion_Name>NYS OMIG</Exclusion_Name>
52 <Exclusion_LastCheck_Date>08/29/2023</Exclusion_LastCheck_Date>
53 <Exclusion_NextCheck_Date>09/29/2023</Exclusion_NextCheck_Date>
54 <DMF>false</DMF>
55 <OMIG>false</OMIG>
56 <SAM>false</SAM>
57 <OIG>false</OIG>
58 <OTHER>false</OTHER>
59 </driverExclusions>
51
60 </driver>
61 ...
62 <driver id="1994037">
63 <Status>1</Status>
64 <First_Name>Bernie</First_Name>
65 <Last_Name>Barrett</Last_Name>
66 <Expiration>08/08/2025 00:00:00</Expiration>
67 <License>45632187</License>
68 <LicenseState>NY</LicenseState>
69 <MedicaidCountyNumber>99</MedicaidCountyNumber>
70 <allowLogin>1</allowLogin>
71 <Phone_Number>5187896523</Phone_Number>
72 <Email_Address>
73 <![CDATA[bb09876%@gmail.com]]>
74 </Email_Address>
75 <MedicaidCountyNumber>99</MedicaidCountyNumber>
76 <Birth_Date></Birth_Date>
77 <CTAA_Email_Address>
78 <![CDATA[bb09876%@gmail.com]]>
79 </CTAA_Email_Address>
80 <PASS_Basic_Expiration_Date></PASS_Basic_Expiration_Date>
81 <PASS_Full_Expiration_Date></PASS_Full_Expiration_Date>
82 <MASS_Driver_Ed_Expiration_Date></MASS_Driver_Ed_Expiration_Date>
83 <Exclusion_Check_Date></Exclusion_Check_Date>
84 <Exclusion_Check_Status></Exclusion_Check_Status>
85 <MVR_Check_Date></MVR_Check_Date>
86 <MVR_Check_Status></MVR_Check_Status>
87 <Last_Update>08/29/2023</Last_Update>
88 <Social_Security_Number></Social_Security_Number>
89 <Exclusion_Check_Status>false</Exclusion_Check_Status>
90 <driverTraining>
91 </driverTraining>
92 <driverExclusions>
93 </driverExclusions>
94 </driver>
95 </drivers>
96 </listDrivers>
97 </TPResponse>
JSON 1 {
2 "TPResponse": {
3 "mode": "Production",
4 "callStatus": "1000",
5 "callMessage": "Success.",
6 "listDrivers": {
7 "version": "5",
8 "responseStatus": "1000",
9 "responseMessage": "Success.",
10 "drivers": [
11 {
12 "ID": "1837371",
13 "Status": "0",
14 "First_Name": "Brian",
15 "Last_Name": "ASHer",
16 "Expiration": "08/06/2026 00:00:00",
17 "License": "wqeqeqwer",
18 "LicenseState": "HI",
19 "MedicaidCountyNumber": "99",
20 "allowLogin": 1,
52
21 "Phone_Number": "555-555-5454",
22 "Email_Address": "[email protected]",
23 "Birth_Date": "",
24 "CTAA_Email_Address": "[email protected]",
25 "MVR_Check_Date": "",
26 "MVR_Check_Status": "",
27 "Last_Update": "08/22/2023",
28 "Social_Security_Number": "",
29 "Exclusion_Check_Status": false,
30 "DriverTraining": [
31 {
32 "ID": "1",
33 "Trans_Provider_Driver_ID": "1837371",
34 "Certificate_ID": "1",
35 "Training_Name": "MAS Driver Education",
36 "Certificate_Expiration": "10/04/2024"
37 },
38 {
39 "ID": "2",
40 "Trans_Provider_Driver_ID": "1837371",
41 "Certificate_ID": "2",
42 "Training_Name": "Basic PASS",
43 "Certificate_Expiration": "11/05/2024"
44 }
45 ],
46 "DriverExclusions": [
47 {
48 "Trans_Provider_Driver_ID": "1837371",
49 "ID": "1",
50 "Exclusion_Name": "NYS OMIG",
51 "Exclusion_LastCheck_Date": "08/29/2023",
52 "Exclusion_NextCheck_Date": "09/29/2023",
53 "DMF": false,
54 "OMIG": false,
55 "SAM": false,
56 "OIG": false,
57 "OTHER": false
58 }
59 ]
60 },
61 ...
62 {
63 "ID": "1994037",
64 "Status": "1",
65 "First_Name": "Bernie",
66 "Last_Name": "Barrett",
67 "Expiration": "08/08/2025 00:00:00",
68 "License": "45632187",
69 "LicenseState": "NY",
70 "MedicaidCountyNumber": "99",
71 "allowLogin": 1,
72 "Phone_Number": "5187896523",
73 "Email_Address": "bb09876%@gmail.com",
74 "Birth_Date": "",
ListDrivers | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
75 "CTAA_Email_Address": "bb09876%@gmail.com",
76 "PASS_Basic_Expiration_Date": "",
77 "PASS_Full_Expiration_Date": "",
78 "MASS_Driver_Ed_Expiration_Date": "",
79 "Exclusion_Check_Date": "",
80 "Exclusion_Check_Status": "",
53
81 "MVR_Check_Date": "",
82 "MVR_Check_Status": "",
83 "Last_Update": "08/29/2023",
84 "Social_Security_Number": "",
85 "DriverTraining": [],
86 "DriverExclusions": []
87 }
88 ]
89 }
90 }
91 }
54
GetDriver
GetDriver | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
GetDriver v5
Request Examples
JSON 1 {
2 "TPRequest": {
3 "sessionIdentifier": "{{sessionIdentifier}}",
4 "call": "getDriver",
5 "version": 5,
6 "driverId": 1837371
7 }
8 }
1 active
0 not active
55
Last_Name Required {string} Driver Last Name
56
DriverExclusions Required {date} Date driver exclusion was last
Exclusion_LastCheck_Date checked
Response Examples
57
XML 1 <?xml version="1.0" encoding="utf-8" ?>
2 <TPResponse mode="Production">
3 <callStatus>1000</callStatus>
4 <callMessage>
5 <![CDATA[Success.]]>
6 </callMessage>
7 <getDriver version="5">
8 <responseStatus>1000</responseStatus>
9 <responseMessage>
10 <![CDATA[Success.]]>
11 </responseMessage>
12 <drivers count="1">
13 <driver id="1837371">
14 <Status>0</Status>
15 <First_Name>Brian</First_Name>
16 <Last_Name>ASHer</Last_Name>
17 <Expiration>08/06/2026 00:00:00</Expiration>
18 <License>wqeqeqwer</License>
19 <LicenseState>HI</LicenseState>
20 <MedicaidCountyNumber>99</MedicaidCountyNumber>
21 <allowLogin>1</allowLogin>
22 <PhoneNumber>555-555-5454</PhoneNumber>
23 <userName>basher705</userName>
24 <EmailAddress>
25 <![CDATA[[email protected]]]>
26 </EmailAddress>
27 <Birth_Date></Birth_Date>
28 <CTAA_Email_Address>
29 <![CDATA[[email protected]]]>
30 </CTAA_Email_Address>
31 <MVR_Check_Date></MVR_Check_Date>
32 <MVR_Check_Status></MVR_Check_Status>
33 <tpId>54066</tpId>
34 <Exclusion_Check_Status>true</Exclusion_Check_Status>
35 <driverTraining>
36 <Item>
37 <ID>1</ID>
38 <Trans_Provider_Driver_ID>1837371</Trans_Provider_Driver_ID>
39 <Certificate_ID>1</Certificate_ID>
40 <Training_Name>MAS Driver Education</Training_Name>
41 <Certificate_Expiration>10/04/2024</Certificate_Expiration>
42 <TP_Flagged>false</TP_Flagged>
43 <TP_Flagged_Reason></TP_Flagged_Reason>
44 </Item>
45 <Item>
46 <ID>2</ID>
47 <Trans_Provider_Driver_ID>1837371</Trans_Provider_Driver_ID>
48 <Certificate_ID>2</Certificate_ID>
49 <Training_Name>Basic PASS</Training_Name>
50 <Certificate_Expiration>11/05/2024</Certificate_Expiration>
51 <TP_Flagged>false</TP_Flagged>
52 <TP_Flagged_Reason></TP_Flagged_Reason>
53 </Item>
54 </driverTraining>
55 <driverExclusions>
56 <Item>
57 <ID>1</ID>
58 <Trans_Provider_Driver_ID>1837371</Trans_Provider_Driver_ID>
59 <Exclusion_LastCheck_Date>08/29/2023</Exclusion_LastCheck_Date>
58
60 <Exclusion_NextCheck_Date>09/29/2023</Exclusion_NextCheck_Date>
61 <DMF>false</DMF>
62 <OMIG>true</OMIG>
63 <SAM>false</SAM>
64 <OIG>true</OIG>
65 <OTHER>false</OTHER>
66 </Item>
67 </driverExclusions>
68 <CtaaExpirationDate></CtaaExpirationDate>
69 <LatestCertNum></LatestCertNum>
70 <LatestCertType></LatestCertType>
71 </driver>
72 </drivers>
73 </getDriver>
74 </TPResponse>
JSON 1 {
2 "TPResponse": {
3 "mode": "Production",
4 "callStatus": "1000",
5 "callMessage": "Success.",
6 "getDriver": {
7 "version": "5",
8 "responseStatus": "1000",
9 "responseMessage": "Success.",
10 "drivers": [
11 {
12 "ID": "1837371",
13 "Status": "0",
14 "First_Name": "Brian",
15 "Last_Name": "ASHer",
16 "Expiration": "08/06/2026 00:00:00",
17 "License": "wqeqeqwer",
18 "LicenseState": "HI",
19 "MedicaidCountyNumber": "99",
20 "allowLogin": 1,
21 "PhoneNumber": "555-555-5454",
22 "userName": "basher705",
23 "EmailAddress": "[email protected]",
24 "Birth_Date": null,
25 "CTAA_Email_Address": "[email protected]",
26 "MVR_Check_Date": null,
27 "MVR_Check_Status": null,
28 "tpId": null,
29 "Exclusion_Check_Status": true,
30 "DriverTraining": [
31 {
32 "ID": 1,
33 "Trans_Provider_Driver_ID": 1837371,
34 "Certificate_ID": 1,
35 "Training_Name": "MAS Driver Education",
36 "Certificate_Expiration": "10/04/2024",
37 "TP_Flagged": false,
38 "TP_Flagged_Reason": null
39 },
40 {
41 "ID": 2,
42 "Trans_Provider_Driver_ID": 1837371,
GetDriver | 43
Request Elements | Request Examples | XML | JSON | Response
"Certificate_ID": 2, Elements | Response Examples | XML | JSON
59
44 "Training_Name": "Basic PASS",
45 "Certificate_Expiration": "11/05/2024",
46 "TP_Flagged": false,
47 "TP_Flagged_Reason": null
48 }
49 ],
50 "DriverExclusions": [
51 {
52 "ID": 1,
53 "Trans_Provider_Driver_ID": 1837371,
54 "Exclusion_LastCheck_Date": "08/29/2023",
55 "Exclusion_NextCheck_Date": "09/29/2023",
56 "DMF": false,
57 "OMIG": true,
58 "SAM": false,
59 "OIG": true,
60 "OTHER": false
61 }
62 ],
63 "CtaaExpirationDate": null,
64 "LatestCertNum": null,
65 "LatestCertType": null
66 }
67 ]
68 }
69 }
70 }
60
NewDriver
NewDriver | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
NewDriver v6
Setter method that will create a new driver which is associated with the current Transportation Provider.
Request Examples
JSON
61
1 {
2 "firstName": "Elaine",
3 "lastName": "O'Connor Nardo",
4 "licenseState": "NY",
5 "licenseNumber": "32982067",
6 "licenseExpiration": "01/01/2024",
7 "directPhone": "1234567896",
8 "allowLogin": "0",
9 "emailAddress": "[email protected]",
10 "SSN": "859657548",
11 "BirthDate": "04/06/1952",
12 "CTAAEmailAddress": "[email protected]",
13 "sessionIdentifier": "{{sessionIdentifier}}",
14 "call": "newDriver",
15 "version": 6
16 }
Response Examples
JSON 1 {
2 "TPResponse": {
3 "mode": "Production",
4 "callStatus": "1000",
62
5 "callMessage": "Success.",
6 "newDriver": {
7 "version": "6",
8 "responseStatus": "1000",
9 "responseMessage": "Success.",
10 "DriverLogin": {
11 "driverID": "1839967",
12 "userId": "",
13 "username": ""
14 }
15 }
16 }
17 }
NewDriver | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
63
UpdateDriver
UpdateDriver | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
UpdateDriver v6
Request Examples
XML
64
18 </updateDriver>
19 </TPRequest>
JSON
1 {
2 "sessionIdentifier": "{{sessionIdentifier}}",
3 "call": "updateDriver",
4 "version": 6,
5 "driverId": "1728292",
6 "firstName": "Bance",
7 "lastName": "Bon",
8 "licenseState": "NY",
9 "licenseNumber": "343432342",
10 "licenseExpiration": "07/02/2025",
11 "directPhone": "5185559999",
12 "allowLogin": "1",
13 "emailAddress": "[email protected]",
14 "SSN": "111223333",
15 "BirthDate": "09/02/1960",
16 "CTAAEmailAddress": "[email protected]"
17 }
Response Examples
XML
JSON
1 {
2 "TPResponse": {
3 "mode": "Testing",
4 "callStatus": "1000",
5 "callMessage": "Success.",
6 "updateDriver": {
7 "version": "6",
8 "responseStatus": "1000",
9 "responseMessage": "Success."
10 }
65
11 }
12 }
UpdateDriver | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
66
DisableDriver
DisableDriver | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
DisableDriver v5
Request Examples
JSON 1 {
2 "sessionIdentifier": "{{sessionIdentifier}}",
3 "call": "disableDriver",
4 "version": 5,
5 "driverId": "1728292"
6 }
Response Examples
67
XML 1 <?xml version="1.0" encoding="utf-8" ?>
2 <TPResponse mode="Production">
3 <callStatus>1000</callStatus>
4 <callMessage>Success.</callMessage>
5 <disableDriver version="5">
6 <responseStatus>1000</responseStatus>
7 <responseMessage>Success.</responseMessage>
8 </disableDriver>
9 </TPResponse>
JSON 1 {
2 "TPResponse": {
3 "mode": "Testing",
4 "callStatus": "1000",
DisableDriver
5 | Request Elements | Request
"callMessage": Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
"Success.",
6 "disableDriver": {
7 "version": "5",
8 "responseStatus": "1000",
9 "responseMessage": "Success."
10 }
11 }
12 }
68
EnableDriver
EnableDriver | Request Elements | Request Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
EnableDriver v5
Request Examples
JSON 1 {
2 "sessionIdentifier": "{{sessionIdentifier}}",
3 "call": "enableDriver",
4 "version": 5,
5 "driverId": "1728292"
6 }
Response Examples
69
XML 1 <?xml version="1.0" encoding="utf-8" ?>
2 <TPResponse mode="Production">
3 <callStatus>1000</callStatus>
4 <callMessage>Success.</callMessage>
5 <enableDriver version="5">
6 <responseStatus>1000</responseStatus>
7 <responseMessage>Success.</responseMessage>
8 </enableDriver>
9 </TPResponse>
JSON 1 {
2 "TPResponse": {
3 "mode": "Testing",
4 "callStatus": "1000",
EnableDriver5 | Request Elements | Request
"callMessage": Examples | XML | JSON | Response Elements | Response Examples | XML | JSON
"Success.",
6 "enableDriver": {
7 "version": "5",
8 "responseStatus": "1000",
9 "responseMessage": "Success."
10 }
11 }
12 }
70
Session Management
For the API’s listed below please refer to the API Endpoint Documentation v5.5
API List
StartSession
EndSession
71
Trip Management
For the API’s listed below please refer to the API Endpoint Documentation v5.5
API List
UpdateProviderAvailability
PullRoster
RefuseTrip
TripRoster
DispatchLeg
ReassignDriverVehicle
UpdateProviderZipCodes
TransportationProviderUpdateServiceAreas
TransportationProviderUpdateCapacity
72
GPS
GPS APIs
For the API’s listed below please refer to the API Endpoint Documentation v5.5
API List
UpdateVehicleLocation
GetCurrentVehicleLocation
UpdateGPS
GetTripLegsTracking
73
Attestation
Attestation APIs
For the API’s listed below please refer to the API Endpoint Documentation v5.5
API List
InvoiceAttest
GetAttestation
AwaitingAttestation
74
Corrections
Corrections APIs
For the API’s listed below please refer to the API Endpoint Documentation v5.5
API List
OpenCorrections
NewCorrectionRequest
GetCorrectionsRequest
DeleteCorrectionRequest
EditCorrectionRequest
ListServiceCorrections
75
Informational
Informational APIs
For the API’s listed below please refer to the API Endpoint Documentation v5.5
API List
GetCounties
GetCountyZips
GetBillingCompanies
GetRoutingCompanies
76
Appendix
Type Definitions
{replace this text with Descriptive Narrative of the API section grouping}
Response Status
Token Description
Vehicle Type
String Variables
Correction Id Types
Correction Status Values
Mileage Upgrade Correction Values
Trip Status and Leg Status
Trip Reassign/Refusal Id Types
Driver and Vehicle Reassign Status
Values
77
Response Status
1000 Success.
2000 Warning.
2100 No Results.
78
3020 You must specify a date or invoice number.
3025 Too many Trips. More than 1000 trips found. Rerun request with
shorter date range.
3033 Address correction leg may only define an addressId OR placeId for
individual pickup/dropoff
3045 Illegal Access. User doesn’t have permissions to use this call.
3051 Invalid Driver. Driver ID was not found for Transportation Provider or
is not active.
3052 Already Started. This driver has already started another leg.
3058 Email address already in use. Please supply another email address.
3061 Invalid Vehicle. Vehicle ID was not found for Transportation Provider
or is not active.
79
3071 Invalid Leg. Leg ID was not found for Tranportation Provider or is not
eligible.
3072 Already Started. This leg has already been started by another driver.
3073 Invalid Leg. Leg not started by this driver, or already complete.
3074 Not Dispatched. Leg not dispatched to this driver and/or vehicle.
3080 Invalid Driver. No driver was found for the supplied credentials.
3081 Invalid Trip. The trip provided is not eligible or attached to this driver.
<@LITERAL @@invoiceNumber>
3085 Invalid Trip. The trip provided is not eligible or attached to this
Transportation Provider. <@LITERAL @@invoiceNumber>
3086 Invalid Request. The trip appointment has passed and cannot be
reassgined.
3093 Invalid Availablity. You must be open at least one day of the week.
3100 Session Not Found. The sessionIdentifier does not match an existing
session. The call could not be completed.
3104 You are missing a unified profile. Please contact MAS Support to
have a unified profile created.
80
3105 You cannot overwrite existing GPS data
3106 You cannot change the GPS data DRIVER for this leg
3107 You cannot change the GPS data VEHICLE for this leg
3499 All Legs Deleted. All legs of an invoice were deleted. Please set Trip
status to Cancelled or No Show instead.
3501 Matching trip not found. Can be because trip does not exist or
because the API key used does not match the Transportation
Provider assigned to the trip
3900 Invalid PIN. The supplied PIN didn<@SQ>t match an API user.
6000 Error.
6011 HTTP POST Required. Request must use the POST method.
81
6013 Invalid Host. HTTP header Host must be MAS | A Driving Force in
NEMT .
6021 Malformed Request. The request does not have the correct
structure.
6050 You do not have the correct permissions to use the call <@LITERAL
'@@callName'> version <@LITERAL '@@version'>.
6051 Session Ended. This session has been ended. Please start a new
session and resubmit your request.
6052 Session Expired. This session has expired. Please start a new
session and resubmit your request.
6201 Syntax Error. The attributes node must contain only attribute nodes.
6999 System Error. An internal error occured. Please run your request
again.
82
Token Description
Token Descriptions
{timestamp} {date}T{time}
{UpdateStatus} Returned Exit status for individual records based on following chart
83
Vehicle Type
Vehicle Type
Ambulance
Livery
Personal Car
Specialty
Stretcher
Taxi
Wheelchair
84
String Variables
XXX-XXX-XXXX
XXXXXXXXXX
element An XML container element which holds a specific set of data in the
request/response
85
Correction Id Types
Correction id Types
1 Combine invoices
4 Missing PA Number
6 Other
9 Address
10 TP attestation error
11 Mileage
86
Correction Status Values
0 None
1 Needed
2 Completed
3 Not Needed
4 Overdue
87
Mileage Upgrade Correction Values
0 Detour
1 Traffic
2 Construction
3 Accident
88
Trip Status and Leg Status
2 Cancelled
0 Cancelled
1 Active
2 Deleted
89
Driver and Vehicle Reassign Status Values
1 Active reassign
90
Trip Reassign/Refusal Id Types
1 Zip Code
2 Capacity
3 Trans Type
4 Time of Day
91