CO2 by lines
API endpoint
1https://www.searates.com/graphql_co2
xxxxxxxxxx
{
co2ByLines(
codeFrom: "USCHI"
codeTo: "CNSHA"
shippingLine: "MAEU,APLU,MSCU,ONEY"
isRef: false
containerType: "ref40"
weight: 20
placeCo2: true
) {
transShipments {
type
co2 {
amount
price
}
departure {
date
placeName
unloCode
terminal
co2 {
amount
price
}
}
arrival {
date
placeName
unloCode
terminal
co2 {
amount
price
}
}
}
general {
amount
price
}
transitTime
scac
}
}
{"Authorization": "Bearer {token}"}
{
"error": {
"message": "Incorrect Token"
}
}
Query params
Property | Type | Description |
---|---|---|
codeFrom | string, required | UNLOCODE, example USCHI, CNSHA. |
codeTo | string, required | UNLOCODE, example USCHI, CNSHA |
shippingLine | string, required | Get list of available carriers - https://sirius.searates.com/schedule/available-carriers?by=points |
isRef | boolean | If the container is a refrigerator or a standard. |
containerType | string | A type of the container. This parameter defines the average container weight. |
weight | float | Transported cargo weight in tons. |
placeCo2 | boolean | Default false |
Response
Property | Type | Description |
---|---|---|
amount | float | The CO2 value in grams. |
price | float | The carbon offset compensation in USD. |