API FCL Rates (port to port)

This document describes API RATES. This API documentation allows you to record FCL rates.

https://sirius.searates.com/api/rates/index?key=YOUR_API_KEY_HERE

Property Type Description
key string, required API key: hexadecimal number

Get FCL rates


query {
  fcl(profile: PROFILE_ID, limit: 10, offset: 0) {
        id,
        from {
            name,
            country,
            latitude,
            longitude,
            code
        },
        to {
            name,
            country,
            latitude,
            longitude,
            code
        },
        shipping_line_name,
        currency,
        st20,
        st40,
        st45,
        hq40,
        ref20,
        ref40,
        valid_date_from,
        valid_date_to,
        thc_exp,
        thc_imp,
        fee_exp,
        fee_imp,
        transit_time
  }
}
                              

{
  "data": {
    "fcl": [
      {
        "id": 190,
        "from": {
          "name": "Houston",
          "country": "US",
          "latitude": 29.745752378204,
          "longitude": -95.2871564229,
          "code": "USHOU"
        },
        "to": {
          "name": "Mazatlan",
          "country": "MX",
          "latitude": 23.20232525905,
          "longitude": -106.42559051514,
          "code": "MXMZT"
        },
        "shipping_line_name": null,
        "currency": "USD",
        "st20": 3000,
        "st40": 3600,
        "st45": null,
        "hq40": 3600,
        "ref20": null,
        "ref40": null,
        "valid_date_from": null,
        "valid_date_to": "2020-04-01",
        "thc_exp": false,
        "thc_imp": false,
        "fee_exp": false,
        "fee_imp": false,
        "transit_time": null
      },
      {
        "id": 32969,
        "from": {
          "name": "Saskatoon",
          "country": "CA",
          "latitude": 52.13333,
          "longitude": -106.66666,
          "code": "CASAK"
        },
        "to": {
          "name": "Manchester",
          "country": "GB",
          "latitude": 53.4686230305437,
          "longitude": -2.28867109958869,
          "code": "GBMNC"
        },
        "shipping_line_name": null,
        "currency": "USD",
        "st20": 1100,
        "st40": 1800,
        "st45": null,
        "hq40": 1800,
        "ref20": null,
        "ref40": null,
        "valid_date_from": null,
        "valid_date_to": "2020-04-01",
        "thc_exp": false,
        "thc_imp": false,
        "fee_exp": false,
        "fee_imp": false,
        "transit_time": null
      },
      {
        "id": 32970,
        "from": {
          "name": "Shelburne",
          "country": "CA",
          "latitude": 43.7403367843703,
          "longitude": -65.3363806568589,
          "code": "CASBU"
        },
        "to": {
          "name": "Manchester",
          "country": "GB",
          "latitude": 53.4686230305437,
          "longitude": -2.28867109958869,
          "code": "GBMNC"
        },
        "shipping_line_name": null,
        "currency": "USD",
        "st20": 1100,
        "st40": 1800,
        "st45": null,
        "hq40": 1800,
        "ref20": null,
        "ref40": null,
        "valid_date_from": null,
        "valid_date_to": "2020-04-01",
        "thc_exp": false,
        "thc_imp": false,
        "fee_exp": false,
        "fee_imp": false,
        "transit_time": null
      },
      {
        "id": 32973,
        "from": {
          "name": "Saskatoon",
          "country": "CA",
          "latitude": 52.13333,
          "longitude": -106.66666,
          "code": "CASAK"
        },
        "to": {
          "name": "Southampton",
          "country": "GB",
          "latitude": 50.8939354115832,
          "longitude": -1.37528078749687,
          "code": "GBSOU"
        },
        "shipping_line_name": null,
        "currency": "USD",
        "st20": 1100,
        "st40": 1800,
        "st45": null,
        "hq40": 1800,
        "ref20": null,
        "ref40": null,
        "valid_date_from": null,
        "valid_date_to": "2020-04-01",
        "thc_exp": false,
        "thc_imp": false,
        "fee_exp": false,
        "fee_imp": false,
        "transit_time": null
      },
      {
        "id": 32974,
        "from": {
          "name": "St John's",
          "country": "CA",
          "latitude": 47.5666666667,
          "longitude": -52.7,
          "code": "CASJF"
        },
        "to": {
          "name": "Hull",
          "country": "GB",
          "latitude": 53.7074781609136,
          "longitude": -0.340576177183579,
          "code": "GBHUL"
        },
        "shipping_line_name": null,
        "currency": "USD",
        "st20": 1100,
        "st40": 1800,
        "st45": null,
        "hq40": 1800,
        "ref20": null,
        "ref40": null,
        "valid_date_from": null,
        "valid_date_to": "2020-04-01",
        "thc_exp": false,
        "thc_imp": false,
        "fee_exp": false,
        "fee_imp": false,
        "transit_time": null
      },
      {
        "id": 485740,
        "from": {
          "name": "Liverpool",
          "country": "GB",
          "latitude": 53.4099687810462,
          "longitude": -2.99240107114414,
          "code": "GBLIV"
        },
        "to": {
          "name": "Lianyungang",
          "country": "CN",
          "latitude": 34.7333333333,
          "longitude": 119.45,
          "code": "CNLYG"
        },
        "shipping_line_name": null,
        "currency": "USD",
        "st20": 1300,
        "st40": 1800,
        "st45": null,
        "hq40": 1800,
        "ref20": 2500,
        "ref40": 3200,
        "valid_date_from": "2017-07-28",
        "valid_date_to": "2020-04-01",
        "thc_exp": false,
        "thc_imp": false,
        "fee_exp": false,
        "fee_imp": false,
        "transit_time": null
      },
      {
        "id": 32975,
        "from": {
          "name": "Squamish",
          "country": "CA",
          "latitude": 49.6720009086895,
          "longitude": -123.15785933979,
          "code": "CASQA"
        },
        "to": {
          "name": "Hull",
          "country": "GB",
          "latitude": 53.7074781609136,
          "longitude": -0.340576177183579,
          "code": "GBHUL"
        },
        "shipping_line_name": null,
        "currency": "USD",
        "st20": 1100,
        "st40": 1800,
        "st45": null,
        "hq40": 1800,
        "ref20": null,
        "ref40": null,
        "valid_date_from": null,
        "valid_date_to": "2020-04-01",
        "thc_exp": false,
        "thc_imp": false,
        "fee_exp": false,
        "fee_imp": false,
        "transit_time": null
      },
      {
        "id": 32977,
        "from": {
          "name": "Saskatoon",
          "country": "CA",
          "latitude": 52.13333,
          "longitude": -106.66666,
          "code": "CASAK"
        },
        "to": {
          "name": "South Shields",
          "country": "GB",
          "latitude": 55.0060166504435,
          "longitude": -1.43028259333569,
          "code": "GBSSH"
        },
        "shipping_line_name": null,
        "currency": "USD",
        "st20": 1100,
        "st40": 1800,
        "st45": null,
        "hq40": 1800,
        "ref20": null,
        "ref40": null,
        "valid_date_from": null,
        "valid_date_to": "2020-04-01",
        "thc_exp": false,
        "thc_imp": false,
        "fee_exp": false,
        "fee_imp": false,
        "transit_time": null
      },
      {
        "id": 32978,
        "from": {
          "name": "St John's",
          "country": "CA",
          "latitude": 47.5666666667,
          "longitude": -52.7,
          "code": "CASJF"
        },
        "to": {
          "name": "Aberdeen",
          "country": "GB",
          "latitude": 57.1089055373908,
          "longitude": -2.0668030765714,
          "code": "GBABD"
        },
        "shipping_line_name": null,
        "currency": "USD",
        "st20": 1100,
        "st40": 1800,
        "st45": null,
        "hq40": 1800,
        "ref20": null,
        "ref40": null,
        "valid_date_from": null,
        "valid_date_to": "2020-04-01",
        "thc_exp": false,
        "thc_imp": false,
        "fee_exp": false,
        "fee_imp": false,
        "transit_time": null
      },
      {
        "id": 32979,
        "from": {
          "name": "Saskatoon",
          "country": "CA",
          "latitude": 52.13333,
          "longitude": -106.66666,
          "code": "CASAK"
        },
        "to": {
          "name": "Teesport",
          "country": "GB",
          "latitude": 54.5999994703267,
          "longitude": -1.16597999238729,
          "code": "GBTEE"
        },
        "shipping_line_name": null,
        "currency": "USD",
        "st20": 1100,
        "st40": 1800,
        "st45": null,
        "hq40": 1800,
        "ref20": null,
        "ref40": null,
        "valid_date_from": null,
        "valid_date_to": "2020-04-01",
        "thc_exp": false,
        "thc_imp": false,
        "fee_exp": false,
        "fee_imp": false,
        "transit_time": null
      }
    ]
  }
}
                              

Create and update FCL rates


mutation {
    fcl {
        create(
            profile: PROFILE_ID,
            port_code_from: "UAODS",
            port_code_to: "CNSHA",
            shipping_line: 1, // Check ID in shipping line list
            currency: "USD", // Currency code
            st20: 1200, // Price per container (INT/FLOAT)
            st40: 1500,
            st45: 2000,
            hq40: 2000,
            ref20: 1600,
            ref40: 2200,
            valid_date_from: 1591003126, // Date of validity (TIMESTAMP)
            valid_date_to: 1598951926,
            othc: false,
            dthc: false,
            transit_time: 30 // Days
        )
        update(
            id: RATE_ID, // Rate ID (How get RATE_ID look in Docs)
            shipping_line: 1,
            currency: "USD",
            st20: 1200,
            st40: 1500,
            st45: 2000,
            hq40: 2000,
            ref20: 1600,
            ref40: 2200,
            valid_date_from: 1591003126,
            valid_date_to: 1598951926,
            othc: false,
            dthc: false,
            transit_time: 30
        )
    }
}

                              

{
  "data": {
    "fcl": {
      "create": true
      "update": true
    }
  }
}