API AIR Rates

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

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

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

Get AIR rates


query {
    air(profile: PROFILE_ID, limit: 10, offset: 0) {
        id,
        from {
            name,
            country,
            latitude,
            longitude,
            code
        },
        to {
            name,
            country,
            latitude,
            longitude,
            code
        },
        airline_name,
        currency,
        min_weight,
        minus45kg,
        plus45kg,
        plus100kg,
        plus300kg,
        plus500kg,
        plus1000kg,
        valid_date_from,
        valid_date_to,
        fuel_min,
        fuel_kg,
        security_min,
        security_kg,
        tsa_min,
        tsa_kg,
        transit_time
    }
}
                              

{
  "data": {
    "air": [
      {
        "id": 487714,
        "from": {
          "name": "Wick",
          "country": "GB",
          "latitude": 58.458889,
          "longitude": -3.093056,
          "code": "WIC"
        },
        "to": {
          "name": "Friedrichshafen",
          "country": "DE",
          "latitude": 47.671317,
          "longitude": 9.511486,
          "code": "FDH"
        },
        "airline_name": null,
        "currency": "USD",
        "min_weight": 25,
        "minus45kg": 7.9,
        "plus45kg": 5.9,
        "plus100kg": 4.8,
        "plus300kg": 4.3,
        "plus500kg": 3.9,
        "plus1000kg": 3.6,
        "valid_date_from": "2019-04-10",
        "valid_date_to": "2020-07-01",
        "fuel_min": null,
        "fuel_kg": null,
        "security_min": null,
        "security_kg": null,
        "tsa_min": null,
        "tsa_kg": null,
        "transit_time": null
      },
      {
        "id": 813045,
        "from": {
          "name": "Chennai Intl",
          "country": "IN",
          "latitude": 12.994414,
          "longitude": 80.180517,
          "code": "MAA"
        },
        "to": {
          "name": "Noatak Airport",
          "country": "US",
          "latitude": 67.5661,
          "longitude": -162.975,
          "code": "WTK"
        },
        "airline_name": null,
        "currency": "USD",
        "min_weight": 25,
        "minus45kg": null,
        "plus45kg": 7.8,
        "plus100kg": 5.8,
        "plus300kg": 3.8,
        "plus500kg": 3.6,
        "plus1000kg": 3.4,
        "valid_date_from": "2019-06-25",
        "valid_date_to": "2020-07-01",
        "fuel_min": null,
        "fuel_kg": null,
        "security_min": null,
        "security_kg": null,
        "tsa_min": null,
        "tsa_kg": null,
        "transit_time": null
      },
      {
        "id": 582722,
        "from": {
          "name": "Big Timber Airport",
          "country": "US",
          "latitude": 45.8063889,
          "longitude": -109.9811111,
          "code": "6S0"
        },
        "to": {
          "name": "Chennai Intl",
          "country": "IN",
          "latitude": 12.994414,
          "longitude": 80.180517,
          "code": "MAA"
        },
        "airline_name": null,
        "currency": "USD",
        "min_weight": 25,
        "minus45kg": null,
        "plus45kg": 7.8,
        "plus100kg": 5.8,
        "plus300kg": 3.8,
        "plus500kg": 3.6,
        "plus1000kg": 3.4,
        "valid_date_from": "2019-06-25",
        "valid_date_to": "2020-07-01",
        "fuel_min": null,
        "fuel_kg": null,
        "security_min": null,
        "security_kg": null,
        "tsa_min": null,
        "tsa_kg": null,
        "transit_time": null
      },
      {
        "id": 487715,
        "from": {
          "name": "Wick",
          "country": "GB",
          "latitude": 58.458889,
          "longitude": -3.093056,
          "code": "WIC"
        },
        "to": {
          "name": "Furstenfeldbruck",
          "country": "DE",
          "latitude": 48.205667,
          "longitude": 11.267,
          "code": "FEL"
        },
        "airline_name": null,
        "currency": "USD",
        "min_weight": 25,
        "minus45kg": 8.1,
        "plus45kg": 5.5,
        "plus100kg": 4.4,
        "plus300kg": 4,
        "plus500kg": 3.8,
        "plus1000kg": 3.4,
        "valid_date_from": "2019-04-10",
        "valid_date_to": "2020-07-01",
        "fuel_min": null,
        "fuel_kg": null,
        "security_min": null,
        "security_kg": null,
        "tsa_min": null,
        "tsa_kg": null,
        "transit_time": null
      },
      {
        "id": 797756,
        "from": {
          "name": "Cochin",
          "country": "IN",
          "latitude": 10.155556,
          "longitude": 76.391389,
          "code": "COK"
        },
        "to": {
          "name": "West Georgia Regional Airport - O V Gray Field",
          "country": "US",
          "latitude": 33.6316964,
          "longitude": -85.1522641,
          "code": "CTJ"
        },
        "airline_name": null,
        "currency": "USD",
        "min_weight": 25,
        "minus45kg": null,
        "plus45kg": 7.9,
        "plus100kg": 5.9,
        "plus300kg": 3.9,
        "plus500kg": 3.7,
        "plus1000kg": 3.5,
        "valid_date_from": "2019-06-25",
        "valid_date_to": "2020-07-01",
        "fuel_min": null,
        "fuel_kg": null,
        "security_min": null,
        "security_kg": null,
        "tsa_min": null,
        "tsa_kg": null,
        "transit_time": null
      },
      {
        "id": 980834,
        "from": {
          "name": "Dresden",
          "country": "DE",
          "latitude": 51.132767,
          "longitude": 13.767161,
          "code": "DRS"
        },
        "to": {
          "name": "Ingeniero Juan Guillermo Villasana",
          "country": "MX",
          "latitude": 20.0772,
          "longitude": -98.782814,
          "code": "PCA"
        },
        "airline_name": null,
        "currency": "USD",
        "min_weight": 25,
        "minus45kg": 8.5,
        "plus45kg": 7.4,
        "plus100kg": 6.3,
        "plus300kg": 5.2,
        "plus500kg": 4.1,
        "plus1000kg": 3.5,
        "valid_date_from": "2020-03-05",
        "valid_date_to": "2020-07-01",
        "fuel_min": null,
        "fuel_kg": null,
        "security_min": null,
        "security_kg": null,
        "tsa_min": null,
        "tsa_kg": null,
        "transit_time": null
      },
      {
        "id": 933825,
        "from": {
          "name": "Silchar",
          "country": "IN",
          "latitude": 24.912928,
          "longitude": 92.978742,
          "code": "IXS"
        },
        "to": {
          "name": "Norway House Airport",
          "country": "CA",
          "latitude": 53.9583,
          "longitude": -97.8442,
          "code": "YNE"
        },
        "airline_name": null,
        "currency": "USD",
        "min_weight": 25,
        "minus45kg": 9.3,
        "plus45kg": 7.8,
        "plus100kg": 5.8,
        "plus300kg": 3.8,
        "plus500kg": 3.6,
        "plus1000kg": 3.4,
        "valid_date_from": "2019-06-25",
        "valid_date_to": "2020-07-01",
        "fuel_min": null,
        "fuel_kg": null,
        "security_min": null,
        "security_kg": null,
        "tsa_min": null,
        "tsa_kg": null,
        "transit_time": null
      },
      {
        "id": 487718,
        "from": {
          "name": "Wick",
          "country": "GB",
          "latitude": 58.458889,
          "longitude": -3.093056,
          "code": "WIC"
        },
        "to": {
          "name": "Geilenkirchen",
          "country": "DE",
          "latitude": 50.960817,
          "longitude": 6.042422,
          "code": "GKE"
        },
        "airline_name": null,
        "currency": "USD",
        "min_weight": 25,
        "minus45kg": 8.1,
        "plus45kg": 5.5,
        "plus100kg": 4.4,
        "plus300kg": 4,
        "plus500kg": 3.8,
        "plus1000kg": 3.4,
        "valid_date_from": "2019-04-10",
        "valid_date_to": "2020-07-01",
        "fuel_min": null,
        "fuel_kg": null,
        "security_min": null,
        "security_kg": null,
        "tsa_min": null,
        "tsa_kg": null,
        "transit_time": null
      },
      {
        "id": 813048,
        "from": {
          "name": "Chennai Intl",
          "country": "IN",
          "latitude": 12.994414,
          "longitude": 80.180517,
          "code": "MAA"
        },
        "to": {
          "name": "Nondalton Airport",
          "country": "US",
          "latitude": 59.966944,
          "longitude": -154.851667,
          "code": "NNL"
        },
        "airline_name": null,
        "currency": "USD",
        "min_weight": 25,
        "minus45kg": null,
        "plus45kg": 7.8,
        "plus100kg": 5.8,
        "plus300kg": 3.8,
        "plus500kg": 3.6,
        "plus1000kg": 3.4,
        "valid_date_from": "2019-06-25",
        "valid_date_to": "2020-07-01",
        "fuel_min": null,
        "fuel_kg": null,
        "security_min": null,
        "security_kg": null,
        "tsa_min": null,
        "tsa_kg": null,
        "transit_time": null
      },
      {
        "id": 797757,
        "from": {
          "name": "Cochin",
          "country": "IN",
          "latitude": 10.155556,
          "longitude": 76.391389,
          "code": "COK"
        },
        "to": {
          "name": "Cartersville Airport",
          "country": "US",
          "latitude": 34.1231475,
          "longitude": -84.8487067,
          "code": "VPC"
        },
        "airline_name": null,
        "currency": "USD",
        "min_weight": 25,
        "minus45kg": null,
        "plus45kg": 8,
        "plus100kg": 6,
        "plus300kg": 4,
        "plus500kg": 3.5,
        "plus1000kg": 3.3,
        "valid_date_from": "2019-06-25",
        "valid_date_to": "2020-07-01",
        "fuel_min": null,
        "fuel_kg": null,
        "security_min": null,
        "security_kg": null,
        "tsa_min": null,
        "tsa_kg": null,
        "transit_time": null
      }
    ]
  }
}
                              

Create and update AIR rates


mutation {
    air {
        create(
            profile: PROFILE_ID,
            port_code_from: "UAODS",
            port_code_to: "CNSHA",
            airline: 1,
            currency: "USD",
            min_weight: 15,
            minus45kg: 8,
            plus45kg: 6,
            plus100kg: 5,
            plus300kg: 4.4,
            plus500kg: 3.9,
            plus1000kg: 3.5,
            fuel_min: 10,
            fuel_kg: 10,
            security_min: 10,
            security_kg: 10,
            tsa_min: 10,
            tsa_kg: 10,
            valid_date_from: 1591003126,
            valid_date_to: 1598951926,
            transit_time: 10,
        )
        update(
            id: RATE_ID,
            airline: 1,
            currency: "USD",
            min_weight: 15,
            minus45kg: 12,
            plus45kg: 11,
            plus100kg: 10,
            plus300kg: 10,
            plus500kg: 10,
            plus1000kg: 9,
            fuel_min: 10,
            fuel_kg: 10,
            security_min: 10,
            security_kg: 10,
            tsa_min: 10,
            tsa_kg: 10,
            valid_date_from: 1591003126,
            valid_date_to: 1598951926,
            transit_time: 10,
        )
    }
}


                              

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