Get BULK Rates

Property Type Description
from array, required; Array contains coordinates: array(lat, lng);
lat/lng - float number, not null.
to array, required Array contains coordinates: array(lat, lng);
lat, lng - float number, not null.
weight float number, required Weight in kg
date string By default today
currency string Short name of currency by default USD

{
  shipment: bulk(from: [46.2952236, 30.6480855],to: [27.993828, 120.699361], currency: USD, weight: 5000) {
  shipmentId
    transportationMode
    currency
    cityFrom: city(mode: EXPORT) {
      ...cityFields
    }
    cityTo: city(mode: IMPORT) {
      ...cityFields
    }
    portFrom: port(mode: EXPORT) {
      ...portFields
    }
    portTo: port(mode: IMPORT) {
      ...portFields
    }
    oceanFreight {
      ...ratesFields
    }
  }
  default {
    services
  }
}

fragment ratesFields on OceanFreight {
  shippingLine
  logo
  price
  comment
  distance
  originalPrice
  originalCurrency
  transitTime
  validTo
  co2
   overdue
  railFrom: rail(mode: EXPORT) {
    price
    distance
    transitTime
    interpolation
  }
  railTo: rail(mode: IMPORT) {
    price
    distance
    transitTime
    interpolation
  }
}

fragment cityFields on City {
  id
  name
  code
  countryCode
  lat
  lng
}

fragment portFields on Port {
  id
  name
  code
  countryCode
  lat
  lng
}


                              

{
   "data":{
      "shipment":[
         {
            "shipmentId":"SR-107751",
            "transportationMode":"ocean",
            "currency":"USD",
            "cityFrom":{
               "id":1,
               "name":"Odessa, Odessa Oblast, Ukraine",
               "code":"ChIJQ0yGC4oxxkARbBfyjOKPnxI",
               "countryCode":"UA",
               "lat":46.482526,
               "lng":30.7233095
            },
            "cityTo":{
               "id":76163,
               "name":"China, Shanghai Shi, Huangpu Qu, Ren Min Guang Chang, \u56fd\u5408\u8def125\u53f7",
               "code":"ChIJpTpJJGpwsjURAQc8ErK11XM",
               "countryCode":"CN",
               "lat":31.230409,
               "lng":121.473717
            },
            "portFrom":{
               "id":12541,
               "name":"Istanbul",
               "code":"TRIST",
               "countryCode":"TR",
               "lat":41.00678579550449,
               "lng":28.973221911992624
            },
            "portTo":{
               "id":706,
               "name":"Shanghai",
               "code":"CNSHA",
               "countryCode":"CN",
               "lat":31.400090576935703,
               "lng":121.49711250347931
            },
            "freight":{
               "shippingLine":null,
               "logo":"https:\/\/www.searates.com\/design\/images\/freight\/sealine\/0.jpg",
               "price":120,
               "distance":"14589.93 km",
               "validTo":"2021-02-12",
               "transitTime":"30 days",
               "railFrom":null,
               "railTo":null
            }
         }
      ],
      "default":{
         "services":[
            "rail [export]",
            "ocean"
         ]
      },
      "identity":{
         "first_name":"SUPPORT",
         "last_name":"TEAM",
         "admin":true,
         "carrier":true,
         "dfa":true
      }
   }
}