API LCL Rates
This document describes API RATES. This API documentation allows you to record LCL rates.
https://sirius.searates.com/api/rates/index?key=YOUR_API_KEY_HERE
Property | Type | Description | |
---|---|---|---|
key
|
string, required | API key: hexadecimal number |
Get LCL rates
query {
lcl(profile: PROFILE_ID, limit: 10, offset: 0) {
id,
from {
name,
country,
latitude,
longitude,
code
},
to {
name,
country,
latitude,
longitude,
code
},
currency,
m3,
mt,
valid_date_from,
valid_date_to,
notes
}
}
{
"data": {
"lcl": [
{
"id": 170281,
"from": {
"name": "Algeciras",
"country": "ES",
"latitude": 36.1410956345708,
"longitude": -5.43813984121668,
"code": "ESALG"
},
"to": {
"name": "Bayuquan",
"country": "CN",
"latitude": 40.6861972064316,
"longitude": 122.244854293056,
"code": "CNBAY"
},
"currency": "USD",
"m3": null,
"mt": null,
"valid_date_from": "2020-05-06",
"valid_date_to": "2020-07-01",
"notes": null
},
{
"id": 170282,
"from": {
"name": "Algeciras",
"country": "ES",
"latitude": 36.1410956345708,
"longitude": -5.43813984121668,
"code": "ESALG"
},
"to": {
"name": "Beihai",
"country": "CN",
"latitude": null,
"longitude": null,
"code": "CNBHY"
},
"currency": "USD",
"m3": null,
"mt": null,
"valid_date_from": "2020-05-06",
"valid_date_to": "2020-07-01",
"notes": null
},
{
"id": 62070,
"from": {
"name": "Al Hoceima",
"country": "MA",
"latitude": 35.2539257783724,
"longitude": -3.9164949299956,
"code": "MAAHU"
},
"to": {
"name": "Christchurch",
"country": "NZ",
"latitude": -43.545605302633,
"longitude": 172.71038534421,
"code": "NZCHC"
},
"currency": "USD",
"m3": null,
"mt": null,
"valid_date_from": "2018-11-20",
"valid_date_to": "2020-07-01",
"notes": null
},
{
"id": 61858,
"from": {
"name": "Tjilatjap, Java",
"country": "ID",
"latitude": -7.66666666667,
"longitude": 109.066666667,
"code": "IDTJI"
},
"to": {
"name": "Whangarei",
"country": "NZ",
"latitude": -35.8333333333,
"longitude": 174.5,
"code": "NZWRE"
},
"currency": "USD",
"m3": null,
"mt": null,
"valid_date_from": "2018-11-20",
"valid_date_to": "2020-07-01",
"notes": null
},
{
"id": 62080,
"from": {
"name": "Al Hoceima",
"country": "MA",
"latitude": 35.2539257783724,
"longitude": -3.9164949299956,
"code": "MAAHU"
},
"to": {
"name": "Opua",
"country": "NZ",
"latitude": -35.3166666667,
"longitude": 174.116666667,
"code": "NZOPX"
},
"currency": "USD",
"m3": null,
"mt": null,
"valid_date_from": "2018-11-20",
"valid_date_to": "2020-07-01",
"notes": null
},
{
"id": 62042,
"from": {
"name": "Agadir",
"country": "MA",
"latitude": 30.4356132246165,
"longitude": -9.55642929514572,
"code": "MAAGA"
},
"to": {
"name": "Auckland",
"country": "NZ",
"latitude": -36.846153687114,
"longitude": 174.76807098389,
"code": "NZAKL"
},
"currency": "USD",
"m3": null,
"mt": null,
"valid_date_from": "2018-11-20",
"valid_date_to": "2020-07-01",
"notes": null
},
{
"id": 170287,
"from": {
"name": "Algeciras",
"country": "ES",
"latitude": 36.1410956345708,
"longitude": -5.43813984121668,
"code": "ESALG"
},
"to": {
"name": "Chengdu",
"country": "CN",
"latitude": 30.4,
"longitude": 104.04,
"code": "CNCTU"
},
"currency": "USD",
"m3": null,
"mt": null,
"valid_date_from": "2020-05-06",
"valid_date_to": "2020-07-01",
"notes": null
},
{
"id": 62125,
"from": {
"name": "Boujdour",
"country": "MA",
"latitude": 26.3513445160565,
"longitude": -14.1317706757831,
"code": null
},
"to": {
"name": "Greymouth",
"country": "NZ",
"latitude": -42.4333333333,
"longitude": 171.216666667,
"code": "NZGMN"
},
"currency": "USD",
"m3": null,
"mt": null,
"valid_date_from": "2018-11-20",
"valid_date_to": "2020-07-01",
"notes": null
},
{
"id": 61873,
"from": {
"name": "Tuban",
"country": "ID",
"latitude": -6.9,
"longitude": 112.066666667,
"code": "IDTBN"
},
"to": {
"name": "Otago Harbour",
"country": "NZ",
"latitude": -45.8198151979374,
"longitude": 170.621991353989,
"code": "NZORR"
},
"currency": "USD",
"m3": null,
"mt": null,
"valid_date_from": "2018-11-20",
"valid_date_to": "2020-07-01",
"notes": null
},
{
"id": 62092,
"from": {
"name": "Al Hoceima",
"country": "MA",
"latitude": 35.2539257783724,
"longitude": -3.9164949299956,
"code": "MAAHU"
},
"to": {
"name": "Whangarei",
"country": "NZ",
"latitude": -35.8333333333,
"longitude": 174.5,
"code": "NZWRE"
},
"currency": "USD",
"m3": null,
"mt": null,
"valid_date_from": "2018-11-20",
"valid_date_to": "2020-07-01",
"notes": null
}
]
}
}
Create and update LCL rates
mutation {
lcl {
create(
profile: PROFILE_ID,
port_code_from: "UAODS",
port_code_to: "CNSHA",
currency: "USD",
m3: 5,
mt: 10,
valid_date_from: 1591003126,
valid_date_to: 1598951926,
notes: "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab atque culpa doloremque expedita explicabo libero, quibusdam recusandae rem tempore voluptate.")
update(
id: RATE_ID,
currency: "USD",
m3: 5,
mt: 10,
valid_date_from: 1591003126,
valid_date_to: 1598951926,
notes: "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab atque culpa doloremque expedita explicabo libero, quibusdam recusandae rem tempore voluptate.")
}
}
{
"data": {
"lcl": {
"create": true
"update": true
}
}
}