Get FCL 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.
ST20 integer Number of containers
ST40 integer Number of containers
HQ40 integer Number of containers
HQ45 integer Number of containers
REF20 integer Number of containers
REF40 integer Number of containers
date string By default today
currency string Short name of currency by default USD

At least one of the container types is required (ST20 / ST40 / HQ40 / HQ45 / REF20 / REF40)



{
  shipment: fcl(from: [46.482526, 30.7233095],to: [31.2303904, 121.4737021],ST20: 1, ,currency: USD) {
    shipmentId
    transportationMode
    incoterms
    currency
    cityFrom: city(mode: EXPORT) {
      ...cityFields
    }
    cityTo: city(mode: IMPORT) {
      ...cityFields
    }
    portFrom: port(mode: EXPORT) {
      ...portFields
    }
    portTo: port(mode: IMPORT) {
      ...portFields
    }
    freight: oceanFreight {
      ...ratesFields
    }
  }
  default {
    services
    bookingViaEmail
  }
  identity {
    first_name
    last_name
    admin
    carrier
    dfa
    email
    phone
  }
}

fragment ratesFields on OceanFreight {
  shippingLine
  logo
  containerCode
  validTo
  containerType
  overdue
  co2
  quantity
  linerTerms
  originalPrice
  originalCurrency
  price
  distance
  comment
  transitTime
  transportFrom
  transportTo
  alternative
  portFeesFrom: portFees(mode: EXPORT) {
    ...portFeesFields
  }
  portFeesTo: portFees(mode: IMPORT) {
    ...portFeesFields
  }
  truckFrom: truck(mode: EXPORT) {
    originalPrice
    originalCurrency
    price
    comment
    distance
    transitTime
    interpolation
    co2
  }
  truckTo: truck(mode: IMPORT) {
    originalPrice
    originalCurrency
    price
    comment
    distance
    transitTime
    interpolation
    co2
  }
  railFrom: rail(mode: EXPORT) {
    originalPrice
    originalCurrency
    price
    distance
    transitTime
    interpolation
    co2
  }
  railTo: rail(mode: IMPORT) {
    originalPrice
    originalCurrency
    price
    distance
    transitTime
    interpolation
    co2
  }
  dryFrom: dry(mode: EXPORT) {
    price
    distance
    transitTime
    interpolation
    city(mode: EXPORT) {
      ...cityFields
    }
  }
  dryTo: dry(mode: IMPORT) {
    price
    distance
    transitTime
    interpolation
    city(mode: IMPORT) {
      ...cityFields
    }
  }
    bargeFrom: barge(mode: EXPORT) {
    price
    distance
    transitTime
    validTo
    currency
    co2
    port: portFrom {
      ...portFields
    }
  }
  bargeTo: barge(mode: IMPORT) {
    price
    distance
    transitTime
    validTo
    co2
    currency
    port: portTo {
      ...portFields
    }
  }
}

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

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

fragment portFeesFields on PortFees {
  abbr
  title
  text
  originalPrice
  originalCurrency
  price
  perLot
  co2
}

                              

{
  "data": {
    "shipment": [
      {
        "shipmentId": "SR-107733",
        "transportationMode": "ocean",
        "incoterms": null,
        "currency": "USD",
        "cityFrom": {
          "id": 265,
          "name": "Kiev, Ukraine, 02000",
          "code": "ChIJBUVa4U7P1EAR_kYBF9IxSXY",
          "countryCode": "UA",
          "lat": 50.4501,
          "lng": 30.5234
        },
        "cityTo": {
          "id": 625,
          "name": "Jiaxing",
          "code": "ChIJ91gIY1RjTTQRc_HMRvgjh5Q",
          "countryCode": "CN",
          "lat": 29.868336,
          "lng": 121.543991
        },
        "portFrom": {
          "id": 409,
          "name": "Chornomorsk",
          "code": "UAILK",
          "countryCode": "UA",
          "lat": 46.337529876646,
          "lng": 30.677839053341877
        },
        "portTo": {
          "id": 674,
          "name": "Ningbo",
          "code": "CNNGB",
          "countryCode": "CN",
          "lat": 29.87187673128037,
          "lng": 121.55940382870983
        },
        "oceanFreight": [
          {
            "shippingLine": "HLCU",
            "logo": "https:\/\/www.searates.com\/design\/images\/freight\/sealine_cort\/7.jpg",
            "containerCode": "ST20",
            "containerType": "20 Standard",
            "quantity": 1,
            "validTo": "2021-01-31",
            "linerTerms": null,
            "price": 914,
            "distance": "15036.46 km",
            "transitTime": "31 days",
            "transportFrom": null,
            "transportTo": null,
            "portFeesFrom": [
              {
                "abbr": "ADE",
                "title": "Agency Documentation Fee Exports",
                "price": 50,
                "perLot": true
              },
              {
                "abbr": "B\/L",
                "title": "Bill of lading fee",
                "price": 30,
                "perLot": true
              },
              {
                "abbr": "EXP",
                "title": "Export Service",
                "price": 120,
                "perLot": false
              },
              {
                "abbr": "OTHC",
                "title": "Original Terminal Handling Charge",
                "price": 313,
                "perLot": false
              }
            ],
            "portFeesTo": [
              {
                "abbr": "DDF",
                "title": "Documentation Fee - Destination",
                "price": 70,
                "perLot": true
              },
              {
                "abbr": "DTHC",
                "title": "Destination Terminal Handling Charge",
                "price": 375,
                "perLot": false
              }
            ],
            "truckFrom": {
              "price": 653,
              "distance": "525.81 km",
              "transitTime": "1 day",
              "interpolation": false
            },
            "truckTo": {
              "price": 150,
              "distance": "1.49 km",
              "transitTime": "1 day",
              "interpolation": true
            },
            "railFrom": {
              "price": 500,
              "distance": "473.13 km",
              "transitTime": "1 day",
              "interpolation": false
            },
            "railTo": {
              "price": 150,
              "distance": "1.49 km",
              "transitTime": "1 day",
              "interpolation": false
            },
            "dryFrom": null,
            "dryTo": null
          }
        ]
      },
      {
        "shipmentId": "SR-107734",
        "transportationMode": "ocean",
        "incoterms": null,
        "currency": "USD",
        "cityFrom": {
          "id": 265,
          "name": "Kiev, Ukraine, 02000",
          "code": "ChIJBUVa4U7P1EAR_kYBF9IxSXY",
          "countryCode": "UA",
          "lat": 50.4501,
          "lng": 30.5234
        },
        "cityTo": {
          "id": 625,
          "name": "Jiaxing",
          "code": "ChIJ91gIY1RjTTQRc_HMRvgjh5Q",
          "countryCode": "CN",
          "lat": 29.868336,
          "lng": 121.543991
        },
        "portFrom": {
          "id": 11978,
          "name": "Constanta",
          "code": "ROCND",
          "countryCode": "RO",
          "lat": 44.17156419271365,
          "lng": 28.66426171998168
        },
        "portTo": {
          "id": 674,
          "name": "Ningbo",
          "code": "CNNGB",
          "countryCode": "CN",
          "lat": 29.87187673128037,
          "lng": 121.55940382870983
        },
        "oceanFreight": [
          {
            "shippingLine": null,
            "logo": "https:\/\/www.searates.com\/design\/images\/freight\/sealine_cort\/0.jpg",
            "containerCode": "ST20",
            "containerType": "20 Standard",
            "quantity": 1,
            "validTo": "2021-01-31",
            "linerTerms": null,
            "price": 485,
            "distance": "14783.87 km",
            "transitTime": "42 days",
            "transportFrom": null,
            "transportTo": null,
            "portFeesFrom": [],
            "portFeesTo": [
              {
                "abbr": "DTHC",
                "title": "Destination Terminal Handling Charge",
                "price": 375,
                "perLot": false
              },
              {
                "abbr": null,
                "title": null,
                "price": 70,
                "perLot": null
              }
            ],
            "truckFrom": {
              "price": 1038,
              "distance": "974.41 km",
              "transitTime": "1 days",
              "interpolation": true
            },
            "truckTo": {
              "price": 150,
              "distance": "1.49 km",
              "transitTime": "1 day",
              "interpolation": true
            },
            "railFrom": {
              "price": 0,
              "distance": "974.41 km",
              "transitTime": "1 days",
              "interpolation": false
            },
            "railTo": {
              "price": 150,
              "distance": "1.49 km",
              "transitTime": "1 day",
              "interpolation": false
            },
            "dryFrom": null,
            "dryTo": null
          }
        ]
      },
      {
        "shipmentId": "SR-107735",
        "transportationMode": "ocean",
        "incoterms": null,
        "currency": "USD",
        "cityFrom": {
          "id": 265,
          "name": "Kiev, Ukraine, 02000",
          "code": "ChIJBUVa4U7P1EAR_kYBF9IxSXY",
          "countryCode": "UA",
          "lat": 50.4501,
          "lng": 30.5234
        },
        "cityTo": {
          "id": 625,
          "name": "Jiaxing",
          "code": "ChIJ91gIY1RjTTQRc_HMRvgjh5Q",
          "countryCode": "CN",
          "lat": 29.868336,
          "lng": 121.543991
        },
        "portFrom": {
          "id": 26948,
          "name": "Kaliningrad",
          "code": "RUKGD",
          "countryCode": "RU",
          "lat": 54.651587889127775,
          "lng": 20.335692970608214
        },
        "portTo": {
          "id": 674,
          "name": "Ningbo",
          "code": "CNNGB",
          "countryCode": "CN",
          "lat": 29.87187673128037,
          "lng": 121.55940382870983
        },
        "oceanFreight": [
          {
            "shippingLine": "HLCU",
            "logo": "https:\/\/www.searates.com\/design\/images\/freight\/sealine_cort\/7.jpg",
            "containerCode": "ST20",
            "containerType": "20 Standard",
            "quantity": 1,
            "validTo": "2021-02-28",
            "linerTerms": null,
            "price": 1323,
            "distance": "20520.09 km",
            "transitTime": "40 days",
            "transportFrom": null,
            "transportTo": null,
            "portFeesFrom": [],
            "portFeesTo": [
              {
                "abbr": "DDF",
                "title": "Documentation Fee - Destination",
                "price": 70,
                "perLot": true
              },
              {
                "abbr": "DTHC",
                "title": "Destination Terminal Handling Charge",
                "price": 375,
                "perLot": false
              }
            ],
            "truckFrom": {
              "price": 1002,
              "distance": "1099.7 km",
              "transitTime": "1 days",
              "interpolation": true
            },
            "truckTo": {
              "price": 150,
              "distance": "1.49 km",
              "transitTime": "1 day",
              "interpolation": true
            },
            "railFrom": {
              "price": 0,
              "distance": "1099.7 km",
              "transitTime": "2 days",
              "interpolation": false
            },
            "railTo": {
              "price": 150,
              "distance": "1.49 km",
              "transitTime": "1 day",
              "interpolation": false
            },
            "dryFrom": null,
            "dryTo": null
          }
        ]
      },
      {
        "shipmentId": "SR-107736",
        "transportationMode": "ocean",
        "incoterms": null,
        "currency": "USD",
        "cityFrom": {
          "id": 265,
          "name": "Kiev, Ukraine, 02000",
          "code": "ChIJBUVa4U7P1EAR_kYBF9IxSXY",
          "countryCode": "UA",
          "lat": 50.4501,
          "lng": 30.5234
        },
        "cityTo": {
          "id": 625,
          "name": "Jiaxing",
          "code": "ChIJ91gIY1RjTTQRc_HMRvgjh5Q",
          "countryCode": "CN",
          "lat": 29.868336,
          "lng": 121.543991
        },
        "portFrom": {
          "id": 304,
          "name": "Odessa",
          "code": "UAODS",
          "countryCode": "UA",
          "lat": 46.49999958643309,
          "lng": 30.730773019409476
        },
        "portTo": {
          "id": 674,
          "name": "Ningbo",
          "code": "CNNGB",
          "countryCode": "CN",
          "lat": 29.87187673128037,
          "lng": 121.55940382870983
        },
        "oceanFreight": [
          {
            "shippingLine": "ZIMU",
            "logo": "https:\/\/www.searates.com\/design\/images\/freight\/sealine_cort\/13.jpg",
            "containerCode": "ST20",
            "containerType": "20 Standard",
            "quantity": 1,
            "validTo": "2021-01-31",
            "linerTerms": null,
            "price": 1050,
            "distance": "15054.98 km",
            "transitTime": "31 days",
            "transportFrom": null,
            "transportTo": null,
            "portFeesFrom": [],
            "portFeesTo": [
              {
                "abbr": "DTHC",
                "title": "Destination Terminal Handling Charge",
                "price": 375,
                "perLot": false
              },
              {
                "abbr": null,
                "title": null,
                "price": 70,
                "perLot": null
              }
            ],
            "truckFrom": {
              "price": 738,
              "distance": "493.37 km",
              "transitTime": "1 day",
              "interpolation": false
            },
            "truckTo": {
              "price": 150,
              "distance": "1.49 km",
              "transitTime": "1 day",
              "interpolation": true
            },
            "railFrom": {
              "price": 533,
              "distance": "462.04 km",
              "transitTime": "1 day",
              "interpolation": false
            },
            "railTo": {
              "price": 150,
              "distance": "1.49 km",
              "transitTime": "1 day",
              "interpolation": false
            },
            "dryFrom": null,
            "dryTo": null
          }
        ]
      },
      {
        "shipmentId": "SR-107737",
        "transportationMode": "ocean",
        "incoterms": null,
        "currency": "USD",
        "cityFrom": {
          "id": 265,
          "name": "Kiev, Ukraine, 02000",
          "code": "ChIJBUVa4U7P1EAR_kYBF9IxSXY",
          "countryCode": "UA",
          "lat": 50.4501,
          "lng": 30.5234
        },
        "cityTo": {
          "id": 625,
          "name": "Jiaxing",
          "code": "ChIJ91gIY1RjTTQRc_HMRvgjh5Q",
          "countryCode": "CN",
          "lat": 29.868336,
          "lng": 121.543991
        },
        "portFrom": {
          "id": 11978,
          "name": "Constanta",
          "code": "ROCND",
          "countryCode": "RO",
          "lat": 44.17156419271365,
          "lng": 28.66426171998168
        },
        "portTo": {
          "id": 674,
          "name": "Ningbo",
          "code": "CNNGB",
          "countryCode": "CN",
          "lat": 29.87187673128037,
          "lng": 121.55940382870983
        },
        "oceanFreight": [
          {
            "shippingLine": "HLCU",
            "logo": "https:\/\/www.searates.com\/design\/images\/freight\/sealine_cort\/7.jpg",
            "containerCode": "ST20",
            "containerType": "20 Standard",
            "quantity": 1,
            "validTo": "2021-01-31",
            "linerTerms": null,
            "price": 485,
            "distance": "14783.87 km",
            "transitTime": "42 days",
            "transportFrom": null,
            "transportTo": null,
            "portFeesFrom": [
              {
                "abbr": "OTHC",
                "title": "Original Terminal Handling Charge",
                "price": 259,
                "perLot": false
              }
            ],
            "portFeesTo": [
              {
                "abbr": "DTHC",
                "title": "Destination Terminal Handling Charge",
                "price": 375,
                "perLot": false
              },
              {
                "abbr": null,
                "title": null,
                "price": 70,
                "perLot": null
              }
            ],
            "truckFrom": {
              "price": 1038,
              "distance": "974.41 km",
              "transitTime": "1 days",
              "interpolation": true
            },
            "truckTo": {
              "price": 150,
              "distance": "1.49 km",
              "transitTime": "1 day",
              "interpolation": true
            },
            "railFrom": {
              "price": 0,
              "distance": "974.41 km",
              "transitTime": "1 days",
              "interpolation": false
            },
            "railTo": {
              "price": 150,
              "distance": "1.49 km",
              "transitTime": "1 day",
              "interpolation": false
            },
            "dryFrom": null,
            "dryTo": null
          }
        ]
      }
    ],
    "default": {
      "services": [
        "truck [export]",
        "fees [export]",
        "truck [import]",
        "fees [import]",
        "ocean"
      ]
    }
  }
}