AIR Quotation


mutation {
     city {
     #find city method is using for start land point and finish land point
      findCity(
        latFrom: 34.0522342
        lngFrom: -118.2436849
        latTo: 46.482526
        lngTo: 30.7233095
      )
    }
  #type can be "sea" or "air"
    port(type: "air") {
     #find ports method by IATA code
      findPort(
        codeFrom: "JUM"
        codeTo: "ODS"
      )
    }
    #types can be "road" or "rail"
  land(type: "road") {
   #this is price for findCity first point to findPort first point
    land_from : create(
      mode: "from",
      rate: 200,
      transitTime: 1
    )
    #this is price for findPort second point to findCity second point
    land_to : create(
      mode: "to",
      rate: 150,
      transitTime: 1
    )
  }
   #port fees in findPort first point
  fees_from : fees(mode: "from") {
    fee1 : create(
      abbr: "THC",
      rate: 150,
      perLot: false,
      title: "Terminal Handling Charge"
    )
    fee2 : create(
      abbr: "ABBR2",
      rate: 100,
      perLot: false,
      title: "Your charge title"
    )
  }
  #port fees in findPort second point
  fees_to : fees(mode: "to") {
   fee1 : create(
      abbr: "THC",
      rate: 150,
      perLot: false,
      title: "Terminal Handling Charge"
    )
    fee2 : create(
      abbr: "ABBR2",
      rate: 100,
      perLot: false,
      title: "Your charge title"
    )
  }
   #main rate
    rate(
      validDateTo: "2020-05-10",
      transitTime: 30,
      currency: "USD"
    ) {
      air(
        rate: 2000,
        #weight in KG
        weight: 100
      )
    }
  }

                              

{
  "data": {
    "city": {
      "findCity": true
    },
    "port": {
      "findPort": true
    },
    "land": {
      "land_from": true,
      "land_to": true
    },
    "fees_from": {
      "fee1": true,
      "fee2": true
    },
    "fees_to": {
      "fee1": true,
      "fee2": true
    },
    "rate": {
      #your rate id (shipment id) always returns in main rate
      "air": "48767"
    }
  }
}