API BULK Rates
This document describes API RATES. This API documentation allows you to record BULK rates.
https://sirius.searates.com/api/rates/index?key=YOUR_API_KEY_HERE
Property | Type | Description | |
---|---|---|---|
key
|
string, required | API key: hexadecimal number |
Get BULK rates
query {
bulk(profile: PROFILE_ID, limit: 10, offset: 0) {
id,
from {
name,
country,
latitude,
longitude,
code
},
to {
name,
country,
latitude,
longitude,
code
},
currency,
mt2500,
mt5000,
mt12500,
mt25000,
mt50000,
mt85000,
mt120000,
mt120000more
}
}
{
"data": {
"bulk": [
{
"id": 1108,
"from": {
"name": "Odessa",
"country": "UA",
"latitude": 46.4999995864331,
"longitude": 30.7307730194095,
"code": "UAODS"
},
"to": {
"name": "Brisbane",
"country": "AU",
"latitude": -27.466570973547,
"longitude": 153.183152365112,
"code": "AUBNE"
},
"currency": "USD",
"mt2500": null,
"mt5000": null,
"mt12500": null,
"mt25000": null,
"mt50000": null,
"mt85000": null,
"mt120000": null,
"mt120000more": null
},
{
"id": 1111,
"from": {
"name": "Odessa",
"country": "UA",
"latitude": 46.4999995864331,
"longitude": 30.7307730194095,
"code": "UAODS"
},
"to": {
"name": "Shanghai",
"country": "CN",
"latitude": 31.4000905769357,
"longitude": 121.497112503479,
"code": "CNSHA"
},
"currency": "USD",
"mt2500": 80,
"mt5000": 55,
"mt12500": null,
"mt25000": 38,
"mt50000": 35,
"mt85000": 31,
"mt120000": 29,
"mt120000more": 25
},
{
"id": 1104,
"from": {
"name": "Alger",
"country": "DZ",
"latitude": 36.7860157563818,
"longitude": 3.065035864099,
"code": "DZALG"
},
"to": {
"name": "Road Bay",
"country": "AI",
"latitude": null,
"longitude": null,
"code": null
},
"currency": "USD",
"mt2500": null,
"mt5000": null,
"mt12500": null,
"mt25000": null,
"mt50000": null,
"mt85000": null,
"mt120000": null,
"mt120000more": null
},
{
"id": 1105,
"from": {
"name": "Algeria",
"country": "DZ",
"latitude": 36.7811321711252,
"longitude": 3.06374837344045,
"code": "DZDZC"
},
"to": {
"name": "Ladkrabang",
"country": "AI",
"latitude": null,
"longitude": null,
"code": "AILAD"
},
"currency": "USD",
"mt2500": null,
"mt5000": null,
"mt12500": null,
"mt25000": null,
"mt50000": null,
"mt85000": null,
"mt120000": null,
"mt120000more": null
},
{
"id": 1106,
"from": {
"name": "Algeria",
"country": "DZ",
"latitude": 36.7811321711252,
"longitude": 3.06374837344045,
"code": "DZDZC"
},
"to": {
"name": "Road Bay",
"country": "AI",
"latitude": null,
"longitude": null,
"code": null
},
"currency": "USD",
"mt2500": null,
"mt5000": null,
"mt12500": null,
"mt25000": null,
"mt50000": null,
"mt85000": null,
"mt120000": null,
"mt120000more": null
},
{
"id": 1107,
"from": {
"name": "Alger",
"country": "DZ",
"latitude": 36.7860157563818,
"longitude": 3.065035864099,
"code": "DZALG"
},
"to": {
"name": "Ladkrabang",
"country": "AI",
"latitude": null,
"longitude": null,
"code": "AILAD"
},
"currency": "USD",
"mt2500": null,
"mt5000": null,
"mt12500": null,
"mt25000": null,
"mt50000": null,
"mt85000": null,
"mt120000": null,
"mt120000more": null
},
{
"id": 1226,
"from": {
"name": "Merak, Java",
"country": "ID",
"latitude": -5.90949503782066,
"longitude": 106.010983617174,
"code": "IDMRK"
},
"to": {
"name": "Mumbai",
"country": "IN",
"latitude": 19.0466569817611,
"longitude": 72.8372944033669,
"code": "INBOM"
},
"currency": "USD",
"mt2500": 33,
"mt5000": 30,
"mt12500": null,
"mt25000": 26,
"mt50000": 24,
"mt85000": null,
"mt120000": null,
"mt120000more": null
},
{
"id": 1227,
"from": {
"name": "Padang",
"country": "ID",
"latitude": -0.938139182384239,
"longitude": 100.351372757686,
"code": "IDPDG"
},
"to": {
"name": "Mumbai",
"country": "IN",
"latitude": 19.0466569817611,
"longitude": 72.8372944033669,
"code": "INBOM"
},
"currency": "USD",
"mt2500": 33,
"mt5000": 30,
"mt12500": null,
"mt25000": 26,
"mt50000": 24,
"mt85000": null,
"mt120000": null,
"mt120000more": null
},
{
"id": 1221,
"from": {
"name": "Belawan",
"country": "ID",
"latitude": 3.78778684527588,
"longitude": 98.7039311298789,
"code": "IDBLW"
},
"to": {
"name": "Mumbai",
"country": "IN",
"latitude": 19.0466569817611,
"longitude": 72.8372944033669,
"code": "INBOM"
},
"currency": "USD",
"mt2500": 33,
"mt5000": 30,
"mt12500": null,
"mt25000": 26,
"mt50000": 24,
"mt85000": null,
"mt120000": null,
"mt120000more": null
},
{
"id": 1222,
"from": {
"name": "Bitung",
"country": "ID",
"latitude": 1.44487001875418,
"longitude": 125.158996582031,
"code": "IDBIT"
},
"to": {
"name": "Mumbai",
"country": "IN",
"latitude": 19.0466569817611,
"longitude": 72.8372944033669,
"code": "INBOM"
},
"currency": "USD",
"mt2500": 33,
"mt5000": 30,
"mt12500": null,
"mt25000": 26,
"mt50000": 24,
"mt85000": null,
"mt120000": null,
"mt120000more": null
}
]
}
}
Create and update BULK rates
mutation {
bulk {
create(
profile: PROFILE_ID,
port_code_from: "UAODS",
port_code_to: "CNSHA",
currency: "USD",
mt2500: 15,
mt5000: 12,
mt12500: 11,
mt50000: 10,
mt85000: 10,
mt120000: 10,
mt120000more: 9
)
update(
id: RATE_ID,
currency: "USD",
mt2500: 15,
mt5000: 12,
mt12500: 11,
mt50000: 10,
mt85000: 10,
mt120000: 10,
mt120000more: 9
)
}
}
{
"data": {
"bulk": {
"create": true
"update": true
}
}
}