Carbon Footprint

Get the carbon footprint of shipped product.

POST https://api.transiteo.io/v1/greensrv/shipping

JSON Request Format

{
  “product”: {
    “identification”: {
        “type”: string,
        “value”: string
    },
    “weight”: number,
    “weight_unit”: string
  },
  “from_country”: string,
  “to_country”: string
}


Request fields

"products" / "identification" / "value"

You need to fill this field with a product's title, description, sku or barcode. We manage 5 languages (English, French, Spanish, Italian & Deutsch) Examples : TEXT : "Ballon de football" or "0711719407577" or SKU : "JHYU8_^ù/76YH" Type : string Required : yes

"products" / "identification" / "type"

You need to fill with "TEXT", "BARCODE" or "SKU" Type : string Required : yes

"weight"

You need to fill this field with the product weight. Examples : 3.40 Type : number Required : yes

"weight_unit"

You need to fill this field with the product weight unit. Examples : kg Type : string Required : yes

"to_country"

You need to fill this field with the ISO Alpha 2 or 3 Code of the country. Download the list of countries. Examples : "CHE" Type : string Required : yes

JSON Response Format

{
    “product”: {
        “identification”: {
            “type”: string,
            “value”: string
        },
        “weight”: number,
        “weight_unit”: string
    },
    “from_country”: string,
    “to_country”: string,
    “co2_shipping”: number,
    “timestamp”: 1646676552001
}

Response fields & values

"products" / "identification" / "value"

Same info than the request body Type : string

"products" / "identification" / "type"

Same info than the request body Type : string

"weight"

Same info than the request body Examples : 3.40 Type : number

"weight_unit"

Same info than the request body Examples : kg Type : string

"to_country"

Same info than the request body. Examples : "CHE" Type : string

"co2_shipping"

We provide the CO2 in kg for product shipping by plane. Examples : "3.54" Type : string

"timestamp"

We provide the result timestamp. Example : "1638440602271" Type : string

Last updated