Booking service

save

service description - under construction

URL: http://api.groundlink.com/bookingservice/save.format
Formats: xml, json, atom
Method(s): POST

Request: BookingRequest element

XML Example:

http://api.groundlink.com/bookingservice/save.xml
<booking-request>
  <booking>
    <reservations>
      <reservation>
        <limo>
          <type>0</type>
          <pickup>
            <location>
              <name>141 5th Ave, New York, NY 10010, USA</name>
              <address>141 5th Ave</address>
              <city>New York</city>
              <postal-code>10010</postal-code>
              <region>NY</region>
              <country>US</country>
              <latitude>40.739992</latitude>
              <longitude>-73.990364</longitude>
              <category>Address</category>
            </location>
          </pickup>
          <destination>
            <location>
              <name>John F Kennedy Airport, United States</name>
              <city></city>
              <region>NY</region>
              <country>US</country>
              <latitude>40.6424805</latitude>
              <longitude>-73.788071</longitude>
              <category>Airport</category>
            </location>
          </destination>
          <round-trip>false</round-trip>
          <schedule-time>5/27/2009 06:00 AM</schedule-time>
          <adults>1</adults>
          <luggage>0</luggage>
        </limo>
      </reservation>
    </reservations>
    <payment>
      <type>0</type>
      <credit-card>
        <type>VI</type>
        <number>************1111</number>
        <expiration>01/10</expiration>
        <security-code>123</security-code>
        <holder-name>Test Test</holder-name>
      </credit-card>
    </payment>
    <notice>test booking</notice>
  </booking>
</booking-request>
Response

Returns: BookingResponse element

XML Example:

<booking-response xmlns="http://api.groundlink.com/schema">
  <booking>
    <id>12300</id>
    <reservations>
      <reservation>
        <status>0</status>
        <limo>
          <id>3123</id>
          <type>0</type>
          <pickup>
            <location>
              <name>141 5th Ave, New York, NY 10010, USA</name>
              <address>141 5th Ave</address>
              <city>New York</city>
              <postal-code>10010</postal-code>
              <region>NY</region>
              <country>US</country>
              <latitude>40.739992</latitude>
              <longitude>-73.990364</longitude>
              <category>Address</category>
            </location>
          </pickup>
          <destination>
            <location>
              <name>John F Kennedy Airport, United States</name>
              <city></city>
              <region>NY</region>
              <country>US</country>
              <latitude>40.6424805</latitude>
              <longitude>-73.788071</longitude>
              <category>Airport</category>
            </location>
          </destination>
          <schedule-time>5/27/2009 06:00 AM</schedule-time>
          <adults>1</adults>
          <luggage>0</luggage>
        </limo>
      </reservation>
    </reservations>
    <payment>
      <type>0</type>
      <credit-card>
        <type>VI</type>
        <number>************1111</number>
        <expiration>01/10</expiration>
        <security-code>123</security-code>
        <holder-name>Test Test</holder-name>
      </credit-card>
    </payment>
    <notice>test booking</notice>
  </booking>
</booking-response>

get

service description - under construction

URL: http://api.groundlink.com/bookingservice/get/{id}.format
Formats: xml, json, atom
Method(s): GET
Request

Parameters:

  • id (required). Booking Id

Example: http://api.groundlink.com/bookingservice/get/12300.xml

Response

Returns: BookingResponse element

XML Example:

<booking-response xmlns="http://api.groundlink.com/schema">
  <booking>
    <id>12300</id>
    <reservations>
      <reservation>
        <status>0</status>
        <limo>
          <id>3123</id>
          <type>0</type>
          <pickup>
            <location>
              <name>141 5th Ave, New York, NY 10010, USA</name>
              <address>141 5th Ave</address>
              <city>New York</city>
              <postal-code>10010</postal-code>
              <region>NY</region>
              <country>US</country>
              <latitude>40.739992</latitude>
              <longitude>-73.990364</longitude>
              <category>Address</category>
            </location>
          </pickup>
          <destination>
            <location>
              <name>John F Kennedy Airport, United States</name>
              <city></city>
              <region>NY</region>
              <country>US</country>
              <latitude>40.6424805</latitude>
              <longitude>-73.788071</longitude>
              <category>Airport</category>
            </location>
          </destination>
          <schedule-time>5/27/2009 06:00 AM</schedule-time>
          <adults>1</adults>
          <luggage>0</luggage>
        </limo>
      </reservation>
    </reservations>
    <payment>
      <type>0</type>
      <credit-card>
        <type>VI</type>
        <number>************1111</number>
        <expiration>01/10</expiration>
        <security-code>123</security-code>
        <holder-name>Test Test</holder-name>
      </credit-card>
    </payment>
    <notice>test booking</notice>
  </booking>
</booking-response>

cancel

service description - under construction

URL: http://api.groundlink.com/bookingservice/cancel.format
Formats: xml, json, atom
Method(s): POST

Request: CancelRequest element

XML Example:

http://api.groundlink.com/bookingservice/cancel.xml
<cancel-request>
  <booking-id>213</booking-id>
  <reservation-id>1199</reservation-id>
  <reason>test cancellation</reason>
  <user>
    <name>Test Test</name>
    <email>test@test.com</email>
    <phones>
      <phone>111.111.1111</phone>
    </phones>
  </user>
</cancel-request>
Response

Returns: CancelResponse element

XML Example:

<cancel-response xmlns="http://api.groundlink.com/schema">
  <cancellations>
    <cancellation>
      <cancellation-id>123</cancellation-id>
      <booking-id>213</booking-id>
      <reservation-id>1199</reservation-id>
      <description></description>
      <charge>10</charge>
    </cancellation>
  </cancellations>
</cancel-response>