FCL 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: "sea") {
     #find ports method by LoСode
      findPort(
        codeFrom: "USNYC"
        codeTo: "UAODS"
      )
    }
    #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"
    ) {
      fcl(
        rate: 2000,
        #container can be "ST20", "ST40", "HQ40", "HQ45", "REF20", "REF40"
        container: "ST20",
        #scac code of shipping line
        shippingLineScac: "MAEU",
        #quantity of containers
        quantity: 1
      )
    }
  }

                              

{
  "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
      "fcl": "48767"
    }
  }
}