GalaxyMobile Client API

<back to all web services

TakeMeHomeRequest

The following routes are available for this service:
POST/pickmeup/takemehomeRequest a booking for the Take Me Home service.
PickMeUpActivationRequest Parameters:
NameParameterData TypeRequiredDescription
IdNumberformstringYesID Number of the user making this request.
PassengerCountformintYesThe number of people to be picked up.
BookingDateformstringYesDate and Time of the pickup in ISO 8601 format.
ContactNameformstringYesName of contact person at pickup.
ContactNumberformstringYesContact number of contact person at pickup.
PickupLocationformBookingLocationYesThe location details of where the clients are to be picked up.
DropoffLocationformBookingLocationYesThe location details of where the clients are to be dropped off.
ApiServiceRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyformstringYesThe API Key required for authentication
BookingLocation Parameters:
NameParameterData TypeRequiredDescription
LatitudeformdoubleYesLatitude of the pickup/drop-off location.
LongitudeformdoubleYesLongitude of the pickup/drop-off location.
AddressformstringYesAddress of the pickup/drop-off location.
PickMeUpResponse Parameters:
NameParameterData TypeRequiredDescription
ProductAvailableformboolNoIs the requested product set up and enabled on Galaxy.
UserHasAccessformboolNoDoes the user have access to this product, based on their Galaxy profile.
PickupOutOfBoundsformboolNoThis indicates that the pickup location is outside of the service area of the service provider.
DropoffOutOfBoundsformboolNoThis indicates that the dropoff location is outside of the service area of the service provider.
PickupTooSoonformboolNoThis indicates that the pickup time is not far enough in the future. The time needs to be at least 60 minutes in the future, or 90 minutes during peak times. See the documentation for more details.
ReferenceNumberformstringNoThe booking reference number returned by the service provider. To be shown to the client.
ErrorMessageformstringNoError message from service provider.
ErrorCodeformintNoError code from service provider.
ApiServiceResponse Parameters:
NameParameterData TypeRequiredDescription
DescriptionformstringNo
HeadingformstringNo
WasSuccessfulformboolNo
ModelStateformObjectNo

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

HTTP + XML

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

POST /pickmeup/takemehome HTTP/1.1 
Host: galaxymobile.api.client.prod.86degrees.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<TakeMeHomeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebService.ClientServiceModel.PickMeUp">
  <ApiKey xmlns="http://schemas.datacontract.org/2004/07/WebService.ClientServiceModel.Base">String</ApiKey>
  <BookingDate>String</BookingDate>
  <ContactName>String</ContactName>
  <ContactNumber>String</ContactNumber>
  <DropoffLocation>
    <Address>String</Address>
    <Latitude>0</Latitude>
    <Longitude>0</Longitude>
  </DropoffLocation>
  <IdNumber>String</IdNumber>
  <PassengerCount>0</PassengerCount>
  <PickupLocation>
    <Address>String</Address>
    <Latitude>0</Latitude>
    <Longitude>0</Longitude>
  </PickupLocation>
</TakeMeHomeRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PickMeUpResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebService.ClientServiceModel.PickMeUp">
  <Description xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">String</Description>
  <Heading xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">String</Heading>
  <ModelState xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base" />
  <WasSuccessful xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">false</WasSuccessful>
  <DropoffOutOfBounds>false</DropoffOutOfBounds>
  <ErrorCode>0</ErrorCode>
  <ErrorMessage>String</ErrorMessage>
  <PickupOutOfBounds>false</PickupOutOfBounds>
  <PickupTooSoon>false</PickupTooSoon>
  <ProductAvailable>false</ProductAvailable>
  <ReferenceNumber>String</ReferenceNumber>
  <UserHasAccess>false</UserHasAccess>
</PickMeUpResponse>