Lune Docs Logo

Quotes

Calculate an order quote by mass

HTTP POST to /v1/orders/by-mass/quoteThis endpoint does not create an order.It processes the order as if it were placed, returning estimated cost and bundles allocations.
Request body

Response

Currency code

Pattern: ^[0-9]+(\.[0-9]+)?$

Estimated quantity (tonnes CO2).

May be lower than requested_quantity.

Pattern: ^[0-9]+(\.[0-9]+)?$

Estimated offset cost

Unit: order quote currency

Pattern: ^[0-9]+(\.[0-9]+)?$

Estimated total cost inclusive of Lune fees.

Unit: order quote currency

Pattern: ^[0-9]+(\.[0-9]+)?$

Estimated commission

Bundles included in the quote including quantity and cost breakdown.

The bundle's unique identifier

The bundle's name

A bundle's image URL

Pattern: ^[0-9]+(\.[0-9]+)?$

Quantity for the specific bundle (tonnes CO2)

Pattern: ^[0-9]+(\.[0-9]+)?$

Bundle unit price per tonne CO2

Unit: order currency

Pattern: ^[0-9]+(\.[0-9]+)?$

Bundle unit price per tonne CO2 inclusive of fees.

Unit: order currency

Pattern: ^[0-9]+(\.[0-9]+)?$

The bundle's net offset cost being purchased.

Unit: order currency

If true, there is no inventory necessary to fully satisfy the order for this bundle.

Pattern: ^[0-9]+(\.[0-9]+)?$

Requested quantity for the specific bundle (tonnes CO2).

requested_quantity may be returned as part of an emission estimate response, in which case this property contains the equivalent value as the mass property.

Pattern: ^[0-9]+(\.[0-9]+)?$

Requested value of CO2 offsets to purchase in the account's currency.

Errors
This API operation can return the following errors:
HTTP status codeError code
400
api_version_invalid
400
bundle_selection_ratios_invalid
400
bundle_selection_bundle_invalid
400
order_value_invalid
400
bundle_id_invalid
400
id_invalid
400
distance_invalid
400
test_account_name_update_disallowed
400
bundle_selection_ratios_invalid_format
400
address_not_found

Calculate an order quote by value

HTTP POST to /v1/orders/by-value/quoteThis endpoint does not create an order.It processes the order as if it were placed, returning estimated cost and bundles allocations.
Request body

Pattern: ^[0-9]+(\.[0-9]+)?$

Maximum price of CO2 offsets to purchase (in the account's currency).

value must not be lower than the currency's minimum unit.

Bundle selection percentages.

The sum of all percentages must equal 100.

If not specified, the preconfigured allocation ratios are going to be used.

If, for each selection, percentage is not provided, the selection is divided equally (best effort) between bundles. percentage must be provided for all or none of the bundles.

Maps a bundle id to an allocation ratio

The bundle's unique identifier

Selects to which precision to truncate quantities specific to carbon offsetting.

g
kg
t
Response

Currency code

Pattern: ^[0-9]+(\.[0-9]+)?$

Estimated quantity (tonnes CO2).

May be lower than requested_quantity.

Pattern: ^[0-9]+(\.[0-9]+)?$

Estimated offset cost

Unit: order quote currency

Pattern: ^[0-9]+(\.[0-9]+)?$

Estimated total cost inclusive of Lune fees.

Unit: order quote currency

Pattern: ^[0-9]+(\.[0-9]+)?$

Estimated commission

Bundles included in the quote including quantity and cost breakdown.

The bundle's unique identifier

The bundle's name

A bundle's image URL

Pattern: ^[0-9]+(\.[0-9]+)?$

Quantity for the specific bundle (tonnes CO2)

Pattern: ^[0-9]+(\.[0-9]+)?$

Bundle unit price per tonne CO2

Unit: order currency

Pattern: ^[0-9]+(\.[0-9]+)?$

Bundle unit price per tonne CO2 inclusive of fees.

Unit: order currency

Pattern: ^[0-9]+(\.[0-9]+)?$

The bundle's net offset cost being purchased.

Unit: order currency

If true, there is no inventory necessary to fully satisfy the order for this bundle.

Pattern: ^[0-9]+(\.[0-9]+)?$

Requested order value inclusive of commission

Pattern: ^[0-9]+(\.[0-9]+)?$

Requested quantity of CO2 offsets to purchase in tonnes.

Errors
This API operation can return the following errors:
HTTP status codeError code
400
api_version_invalid
400
bundle_selection_ratios_invalid
400
bundle_selection_bundle_invalid
400
order_value_invalid
400
bundle_id_invalid
400
id_invalid
400
distance_invalid
400
test_account_name_update_disallowed
400
bundle_selection_ratios_invalid_format
400
address_not_found