SET.API.Services

<back to all web services

GetService

The following routes are available for this service:
GET/Service/{Id}
GetService Parameters:
NameParameterData TypeRequiredDescription
IdpathGuidNo
ServiceInformation Parameters:
NameParameterData TypeRequiredDescription
DateOfServiceformstringNo
PickupTimeformstringNo
StatusformstringNo
AutoAssignProviderformstringNo
AutoAssignProviderIdformGuidNo
GlueIdformintNo
LegsformList<ServiceLeg>No
RatesformProviderRatesNo
ServiceLeg Parameters:
NameParameterData TypeRequiredDescription
LegIdformGuidNo
MilesformintNo
TravelTimeInMinutesformintNo
StartLocationformPlaceNo
EndLocationformPlaceNo
Place Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
Address1formstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
LatitiudeformstringNo
LongitudeformstringNo
ProviderRates Parameters:
NameParameterData TypeRequiredDescription
FlatFeeformstringNo
MileageFeeformstringNo
WaitRateformstringNo
NoShowFeeformstringNo
MilesformintNo
LoadFeeformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Service/{Id} HTTP/1.1 
Host: set-api-service-prod.azurewebsites.net 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"DateOfService":"String","PickupTime":"String","Status":"String","AutoAssignProvider":"String","AutoAssignProviderId":"00000000000000000000000000000000","GlueId":0,"Legs":[{"LegId":"00000000000000000000000000000000","Miles":0,"TravelTimeInMinutes":0,"StartLocation":{"Name":"String","Address1":"String","Address2":"String","City":"String","State":"String","Zip":"String","Latitiude":"String","Longitude":"String"},"EndLocation":{"Name":"String","Address1":"String","Address2":"String","City":"String","State":"String","Zip":"String","Latitiude":"String","Longitude":"String"}}],"Rates":{"FlatFee":"String","MileageFee":"String","WaitRate":"String","NoShowFee":"String","Miles":0,"LoadFee":"String"}}