Lune Docs Logo
Log inContact us

Future shipments by sea

Identify the vessel intended for transport to estimate CO₂e emissions for a scheduled future shipment.

Pre-requisites

Complete the following setup steps before using this guide:
/illustrations/stamp-key.png
Generate an API key and authenticate your account.
/illustrations/stamp-accounts.png
Set up Client Accounts to track emissions for your individual customers.
/illustrations/stamp-route.png
Review how to calculate emissions for multi-leg shipments using the API.

1. Gather shipment details

  • When setting the route for sea transport, the source and destination should be locations of existing ports, preferably in UN/LOCODE format. If the port locations can’t be identified, consider using the distance property for route instead.
  • To estimate emissions for a future shipment, you’ll need the scheduled departure and arrival dates as well as the carrier name. Lune uses this information to infer shipment details through carrier schedules.Include a vessel_inference object inside the method object to specify the projected departure date, arrival date, and carrier name.Lune can infer schedules up to 24 weeks into the future. For shipments that have already arrived, AIS tracking is used to gather data from up to two days in the past.```
  • Vessel inference input
  • 2. Make the API request

    To calculate emissions for sea shipments, use the /estimates/shipping/multi-leg/ endpoint. Send a POST request to this endpoint to create an emissions estimate.
  • Include the Authorization header with your API Key as a Bearer Token. To associate the emission calculation with a specific client account, add either a Lune-Account header or a client account object to your request.
  • Since this is a future shipment, we recommend setting is_shipment to false and updating the record using a PATCH request once the shipment has been confirmed.Once the shipment has been confirmed, setting is_shipment to true will enable tracking and analytics that you can share with your customers.
    Sample request
    The sample request below estimates emissions for a 10.36 tonne shipment traveling from the Port of Santos (BRSSZ) to the Port of Sines (PTSIE) with Maersk as the carrier.
  • Sample request
  • To interpret the results, go to the Multi-leg shipment guide. If your shipment has multiple legs involving different transport methods, refer to the relevant guides for constructing your multi-leg object.Success! You’ve successfully calculated emissions for the sea transport legs of your shipment. Another step toward a greener future!

    What to do next...

    Now that you’ve calculated an emission estimate using the methods above, here are some next steps to explore!