CAR BOOKING API / OUT STATION CAR / LOCAL CAR / TRANSFER CAR


GET: https://www.goalltrip.com/api/taxi/citylist?gatkey=gatkey


    

{
    "state": "CHATTISGARH",
    "id": "80",
    "city_id": "80",
    "city": "Raigarh"
  },
  {
    "state": "CHATTISGARH",
    "id": "81",
    "city_id": "81",
    "city": "Raipur"
  },
  {
    "state": "DELHI",
    "id": "82",
    "city_id": "82",
    "city": "Delhi"
  },
  {
    "state": "GUJARAT",
    "id": "83",
    "city_id": "83",
    "city": "Ahmedabad"
  },
  {
    "state": "GUJARAT",
    "id": "84",
    "city_id": "84",
    "city": "Banasanktha"
  },
    
    

GET: https://www.goalltrip.com/api/taxi/search_car?gatkey=gatkey&cityIds=82,82&tripType=1&pickupDate=28/11/2016&dropDate=29/11/2016

S.No Attribute Descriptions Required
1 gatkey gatkey (provided by Goalltrip) true
2 cityIds Array of City ids true
3 tripType Integer(0 (OneWay),1(Return),2(Local)) true
4 hours Integer NO(Only to be supplied for local transfer)
5 pickupDate DD/MM/YYYY true
6 dropDate DD/MM/YYYY Mandatory for return

    
  
  {
        "trip": "ONEWAY",
      "hours": null,
      "pickupDate": 1493337600000,
      "dropDate": null
    },
    "results": {
      "fromCity": null,
      "date": null,
      "taxis": [
        {
          "category": "INDICA_OR_EQUIVALENT",
          "image": "/hansraj.jpg",
          "availability": 4,
          "seatingCapacity": 3,
          "luggageCapacity": 3,
          "carNos": [
            "REG9988",
            "UP21H3223",
            "8152",
            "7878"
          ],
          "nos": "REG9988,UP21H3223,8152,7878",
          "tariff": {
            "createdDate": 1450561209000,
            "updatedDate": 1450561209000,
            "check": null,
            "pricingId": 63,
            "vehicleCategory": "INDICA_OR_EQUIVALENT",
            "sourceCityId": 82,
            "baseFare": 1500,
            "outStationPerKmRate": 13,
            "outStationExtraKmRate": 13,
            "outStationDriverAllowance": 277,
            "outStationMinKmPerDay": 251,
            "outStationPackageRate": 1500,
            "localPackage8HrRate": 1760,
            "localExtraKmRate": 14,
            "localExtraHrRate": 132,
            "fixed": null,
            "cityName": null,
            "totalKmCharged": 212,
            "totalHrsCharged": null,
            "totalDaysCharged": 1,
            "serviceTaxPercent": 6,
            "totalServiceTax": 90,
            "totalAmount": 1590
          }
        }
        
        
    

GET: https://www.goalltrip.com/api/taxi/booking_review?gatkey=gatkey&cityIds=82,82&tripType=1&noOfCars=2&time=09:00&pickupDate=24/07/2016&vehicleCategory=INNOVA_OR_EQUIVALENT&dropDate=28/07/2016

S.No Attribute Descriptions Required
1 gatkey gatkey (provided by Goalltrip) true
2 cityIds = Array of City ids Integer true
3 tripType= 0 (OneWay),1(Return),2(Local) Integer true
4 vehicleCategory String true
5 noOfCars Integer NO(DefaultValue 1)
6 hours Integer NO(Only to be supplied for local transfer)
7 pickupDate DD/MM/YYYY HH:mm true
8 dropDate DD/MM/YYYY HH:mm Mandatory for return

    
                                           
                                           
 {
  "result": {
    "createdDate": 1465557924067,
    "updatedDate": null,
    "id": 6707,
    "identifier": "VpRBpKfN",
    "type": "B2C",
    "onlineSource": "ONLINE",
    "status": "NEW",
    "paymentStatus": null,
    "netAmount": 1500,
    "serviceTax": 90,
    "totalAmount": 1590,
    "advanceAmount": null,
    "refundAmount": null,
    "agentCommission": 150,
    "serviceFee": 0,
    "advancePecentage": 15,
    "couponCode": null,
    "couponMessage": null,
    "couponDiscount": null,
    "couponType": null,
    "fromCityId": 82,
    "from": "New Delhi",
    "toCityId": 82,
    "to": "New Delhi",
    "fromDate": 1466931600000,
    "toDate": 1466931600000,
    "bankRefundRef": null,
    "tripType": "LOCAL",
    "queryType": "TAXI",
    "b2bAgent": {
      "createdDate": 1464171439000,
      "updatedDate": null,
      "agentId": 28,
      "name": "Goalltrip",
      "email": "care@goalltrip.com",
      "phone1": "7890080744",
      "phone2": "",
      "addressLine1": "77, Rabindra Nagar, Laskarpur, Garia, -700153 ",
      "addressLine2": null,
      "state": "WEST BENGAL",
      "city": "Kolkata",
      "pincode": null,
      "country": "India",
      "active": true,
      "notificationEnabled": false,
      "creditAllowed": true,
      "websiteUrl": "www.goalltrip.com",
      "photoIdPath": "",
      "panNumber": "STNO678",
      "panIdPath": "",
      "serviceTaxNumber": "STNO678",
      "companyName": "Goalltrip",
      "perBookingCommission": 10,
      "serviceFeePercentage": null,
      "apiIntgOneTimeFee": 1500,
      "accountBalance": 0,
      "agentType": "EXTERNAL",
      "distributerInfo": ""
    },
    
        
    

GET: https://www.goalltrip.com/api/taxi/payment_driver?gatkey=gatkey&bookingId=bookingid&advancePayment=false

S.No Attribute Descriptions Required
1 gatkey gatkey (provided by Goalltrip) true
2 bookingId Integer true
3 advancePayment Boolean true

    
                                           
           {
  "result": {
    "createdDate": 1465579501000,
    "updatedDate": 1465579501000,
    "id": 6719,
    "identifier": "SnMjdwCw",
    "type": "B2C",
    "onlineSource": "ONLINE",
    "status": "NEW",
    "paymentStatus": null,
    "netAmount": 80.2,
    "serviceTax": 4.8,
    "totalAmount": 85,
    "advanceAmount": 0,
    "refundAmount": null,
    "agentCommission": 8.02,
    "serviceFee": 0,
    "advancePecentage": 0,
    "couponCode": null,

    "couponMessage": null,
    "couponDiscount": 0,
    "couponType": null,
    "fromCityId": 82,
    "from": "New Delhi",
    "toCityId": 82,
    "to": "New Delhi",
    "fromDate": 1466672400000,
    "toDate": 1466586000000,
    "bankRefundRef": null,
    "tripType": "LOCAL",
    "queryType": "TAXI",
    "b2bAgent": {
      "createdDate": null,
      "updatedDate": null,
      "agentId": 28,
      "name": "Goalltrip",
      "email": "care@goalltrip.com",
      "phone1": "7890080744",
      "phone2": "",
      "addressLine1": null,
      "addressLine2": null,
      "state": null,
      "city": "Kolkata",
      "pincode": null,
      "country": null,
      "active": null,
      "notificationEnabled": null,
      "creditAllowed": true,
      "websiteUrl": "www.goalltrip.com",
      "photoIdPath": "",
      "panNumber": null,
      "panIdPath": null,
      "serviceTaxNumber": null,
      "companyName": null,
      "perBookingCommission": null,
      "serviceFeePercentage": null,
      "apiIntgOneTimeFee": null,
      "accountBalance": 0,
      "agentType": "EXTERNAL",
      "distributerInfo": null
    },
    
    
        
        
    

GET: https://www.goalltrip.com/api/taxi/update_customer?gatkey=gatkey&bookingId=bookingId&customerName=DIP SARKAR&customerEmail=care@goalltrip.com&customerPhone=9051689072&customerAddress=Address

S.No Attribute Descriptions Required
1 gatkey gatkey (provided by Goalltrip) true
2 bookingId Integer true
3 customerName String true
4 customerEmail String true
5 customerPhone String true
6 customerAddress String true

    
                                           
                                           
  
   {
        customerId": 1752,
    "billingName": "dipsarkar",
    "billingAddressLine1": "kolkata",
    "billingAddressEmail": "goalltrip2015@gmail.com",
    "billingAddressPhone": "9051689072",
        }
    
    
        
    

GET: https://www.goalltrip.com/api/taxi/confirm_booking?gatkey=gatkey&bookingId=bookingId

S.No Attribute Descriptions Required
1 gatkey gatkey (provided by Goalltrip) true
2 bookingId Integer true

    
                                           
                                           
 
        "createdDate": null,
        "updatedDate": null,
        "itemId": 7293,
        "bookingId": 6721,
        "fromDate": 1466672400000,
        "toDate": 1466586000000,
        "category": "INNOVA_OR_EQUIVALENT",
        "itemType": "TAXI",
        "vendor": null,
        "driver": null,
        "vendors": null,
        "grossAmount": 64,
        "markup": null,
        "netVendorAmount": null,
        "serviceTaxPercent": 6,
        "serviceTax": 3.6,
        "fromCity": "New Delhi",
        "toCity": "New Delhi",
        "fromCityId": 82,
        "toCityId": 82,
        "taxiNo": null,
        "seatVehicleId": null,
        "seatQuantity": null,
        "allocatedSeats": null,
        "taxiType": null,
        "startReading": 0,
        "endReading": 0,
        "tripType": "LOCAL",
        "multiCity": false,
        "taxiFare": {
          "taxiFareId": 7056,
          "bookingItemId": 7293,
          "packageRate": 1500,
          "baseFare": 60,
          "totalServiceTax": 3.6,
          "serviceTaxPercent": 6,
          "perKmRate": null,
          "extraPerKmRate": 20,
          "extraPerHrRate": 60,
          "minKmPerDay": null,
          "perDayDriverAllowance": null,
          "totalKmCharged": 0,
          "totalHrsCharged": 1,
          "totalDaysCharged": 0,
          "extraKmCharged": null,
          "extraHoursCharged": null,
          "extraDaysCharged": null,
          "extraCharges": null,
          "totalAmount": null,
          "amountToCollected": null,
          "paidAmount": null
        },
        "hotelName": null,
        "hotelCity": null,
        "hotelVendor": null,
        "hotelState": null,
        "hotelMealPlan": null,
        "hotelConfirmationReference": null,
        "hotelPhone": null,
        "quantity": 1,
        "seatingCapacity": "5",
        "luggageCapacity": "4",
        "status": null,
        "extraCharges": null,
        "totalHours": 1,
        "extraHours": null,
        "totalKm": 0
      }
    ],
    "customerId": 1752,
    "billingName": "dipsarkar",
    "billingAddressLine1": "kolkata",
    "billingAddressEmail": "goalltrip2015@gmail.com",
    "billingAddressPhone": "9051689072",
    "merchantKey": null,
    "paymentHashKey": null,
    "bookingOption": null,
    "remark": null,
    "checked": false,
    "followUpVal": null,
    "tripTrail": null,
    "paymentDetails": []
  },
  "status": "success"
}
    
        
    

GET: https://www.goalltrip.com/api/taxi/get_book_details?gatkey=gatkey&bookingId=bookingId

S.No Attribute Descriptions Required
1 gatkey gatkey (provided by Goalltrip) true
2 bookingId Integerr true

    
                                           
                                           
  
 

Response

{ "result": { "createdDate": 1465581129000, "updatedDate": 1465582244000, "id": 6721, "identifier": "MeCjdqmi", "type": "B2C", "onlineSource": "ONLINE", "status": "UNCONFIRMED", "paymentStatus": "INITIATED", "netAmount": 60.4, "serviceTax": 3.6, "totalAmount": 64, "advanceAmount": null, "refundAmount": null, "agentCommission": 6.04, "serviceFee": 0, "advancePecentage": null, "couponCode": null, "couponMessage": null, "couponDiscount": null, "couponType": null, "fromCityId": 82, "from": "New Delhi", "toCityId": 82, "to": "New Delhi", "fromDate": 1466672400000, "toDate": 1466586000000, "bankRefundRef": null, "tripType": "LOCAL", "queryType": "TAXI", "b2bAgent": { "createdDate": null, "updatedDate": null, "agentId": 28, "name": "Goalltrip", "email": "care@goalltrip.com", "phone1": "7890080744", "phone2": "", "addressLine1": null, "addressLine2": null, "state": null, "city": "Kolkata", "pincode": null, "country": null, "active": null, "notificationEnabled": null, "creditAllowed": true, "websiteUrl": "www.goalltrip.com", "photoIdPath": "", "panNumber": null, "panIdPath": null, "serviceTaxNumber": null, "companyName": null, "perBookingCommission": null, "serviceFeePercentage": null, "apiIntgOneTimeFee": null, "accountBalance": 0, "agentType": "EXTERNAL", "distributerInfo": null }, "createdBy": "dipsarkar", "items": [ { "createdDate": null, "updatedDate": null, "itemId": 7293, "bookingId": 6721, "fromDate": 1466672400000, "toDate": 1466586000000, "category": "INNOVA_OR_EQUIVALENT", "itemType": "TAXI", "vendor": null, "driver": null, "vendors": null, "grossAmount": 64, "markup": null, "netVendorAmount": null, "serviceTaxPercent": 6, "serviceTax": 3.6, "fromCity": "New Delhi", "toCity": "New Delhi", "fromCityId": 82, "toCityId": 82, "taxiNo": null, "seatVehicleId": null, "seatQuantity": null, "allocatedSeats": null, "taxiType": null, "startReading": 0, "endReading": 0, "tripType": "LOCAL", "multiCity": false, "taxiFare": { "taxiFareId": 7056, "bookingItemId": 7293, "packageRate": 1500, "baseFare": 60, "totalServiceTax": 3.6, "serviceTaxPercent": 6, "perKmRate": null, "extraPerKmRate": 20, "extraPerHrRate": 60, "minKmPerDay": null, "perDayDriverAllowance": null, "totalKmCharged": 0, "totalHrsCharged": 1, "totalDaysCharged": 0, "extraKmCharged": null, "extraHoursCharged": null, "extraDaysCharged": null, "extraCharges": null, "totalAmount": null, "amountToCollected": null, "paidAmount": null }, "hotelName": null, "hotelCity": null, "hotelVendor": null, "hotelState": null, "hotelMealPlan": null, "hotelConfirmationReference": null, "hotelPhone": null, "quantity": 1, "seatingCapacity": "5", "luggageCapacity": "4", "status": null, "extraCharges": null, "totalHours": 1, "extraHours": null, "totalKm": 0 } ], "customerId": 1752, "billingName": "dipsarkar", "billingAddressLine1": "kolkata", "billingAddressEmail": "goalltrip2015@gmail.com", "billingAddressPhone": "9051689072", "merchantKey": null, "paymentHashKey": null, "bookingOption": null, "remark": null, "checked": false, "followUpVal": null, "tripTrail": null, "paymentDetails": [] }, "status": "success" }