Skip to main content

Emission estimate

An emission estimate result. The value returned is in CO2e – it accounts for both CO2 and non-CO2 emissions.

  • Endpoints
  • The Emission estimate object
    amountstring^[0-9]+(\.[0-9]+)?$required

    unitenumrequired

    Unit, t for tonne, kg for kilogram, g for gram

    Enum:
    • g
    • kg
    • t

    metadataobject

    An arbitrary dictionary (key-value pairs) to store application-specific information.

    Lune doesn't use this information for order processing. Its purpose is for the API clients to be able to attach arbitrary information (to an order for example) and then retrieve it.


    idempotency_keystring

    Account-unique identifier provided by the client.

    idempotency_key has two purposes:

    1. Clients can safely retry estimate requests without accidentally performing the same operation multiple times.
    2. Clients can use idempotency_key to reconcile estimates with entities on their system.
  • EmissionEstimate
  • {
      "mass": {
        "amount": "40.501",
        "unit": "t"
      },
      "idempotency_key": "5bd808a954e"
    }