Lune Docs Logo

Sustainability pages

Create a sustainability page

HTTP POST to /v1/sustainability-pagesCreate a public https://sustainability.lune.co/<slug> page to communicate your climate impact efforts.
Request body

The sustainability page status which determines whether it is visible to the public.

enabled
disabled

Pattern: ^[a-z0-9.-]+$

The sustainability page slug. The slug is used to identify the page publicly and should be unique.

The sustainability page title stat format.

by_volume
by_price

by_equivalent
by_supported_goals
by_custom_description

The sustainability page custom description. Only displayed when description is set to by_custom_description.

The sustainability page sections that will be displayed in the page. Only a single instance of each section type is allowed and the order is irrelevant.

The sustainability page section name.

bundles_breakdown
certificates
unsdg
Response

A Sustainability Page represents the entity which enables accounts or client accounts to share their impact publicly.

Upon the first retirement, the Sustainability Page displays certificates with proof of the retired carbon credits and beneficiary.

The sustainability page status which determines whether it is visible to the public.

enabled
disabled

Pattern: ^[a-z0-9.-]+$

The sustainability page slug. The slug is used to identify the page publicly and should be unique.

The sustainability page title stat format.

by_volume
by_price

by_equivalent
by_supported_goals
by_custom_description

The sustainability page custom description. Only displayed when description is set to by_custom_description.

The sustainability page sections that will be displayed in the page. Only a single instance of each section type is allowed and the order is irrelevant.

The sustainability page section name.

bundles_breakdown
certificates
unsdg
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

Update a sustainability page

HTTP PUT to /v1/sustainability-pagesUpdate the format, layout and status of your public https://sustainability.lune.co/<slug> page.
Request body

The sustainability page status which determines whether it is visible to the public.

enabled
disabled

Pattern: ^[a-z0-9.-]+$

The sustainability page slug. The slug is used to identify the page publicly and should be unique.

The sustainability page title stat format.

by_volume
by_price

by_equivalent
by_supported_goals
by_custom_description

The sustainability page custom description. Only displayed when description is set to by_custom_description.

The sustainability page sections that will be displayed in the page. Only a single instance of each section type is allowed and the order is irrelevant.

The sustainability page section name.

bundles_breakdown
certificates
unsdg
Response

A Sustainability Page represents the entity which enables accounts or client accounts to share their impact publicly.

Upon the first retirement, the Sustainability Page displays certificates with proof of the retired carbon credits and beneficiary.

The sustainability page status which determines whether it is visible to the public.

enabled
disabled

Pattern: ^[a-z0-9.-]+$

The sustainability page slug. The slug is used to identify the page publicly and should be unique.

The sustainability page title stat format.

by_volume
by_price

by_equivalent
by_supported_goals
by_custom_description

The sustainability page custom description. Only displayed when description is set to by_custom_description.

The sustainability page sections that will be displayed in the page. Only a single instance of each section type is allowed and the order is irrelevant.

The sustainability page section name.

bundles_breakdown
certificates
unsdg
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

Get the current account's sustainability page

HTTP GET to /v1/sustainability-pages/current-accountGet the configuration of the current account's sustainability page.
Response

A Sustainability Page represents the entity which enables accounts or client accounts to share their impact publicly.

Upon the first retirement, the Sustainability Page displays certificates with proof of the retired carbon credits and beneficiary.

The sustainability page status which determines whether it is visible to the public.

enabled
disabled

Pattern: ^[a-z0-9.-]+$

The sustainability page slug. The slug is used to identify the page publicly and should be unique.

The sustainability page title stat format.

by_volume
by_price

by_equivalent
by_supported_goals
by_custom_description

The sustainability page custom description. Only displayed when description is set to by_custom_description.

The sustainability page sections that will be displayed in the page. Only a single instance of each section type is allowed and the order is irrelevant.

The sustainability page section name.

bundles_breakdown
certificates
unsdg
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

Get a sustainability page

HTTP GET to /v1/sustainability-pages/public/{type}/{slug}
  • Public endpoint
  • Get the current account's public sustainability summary info.
    Query parameters

    The type of the sustainability page.

    live
    test

    The slug of the sustainability page.

    Response

    The public sustainability summary page for a given account.

    The sustainability page title format and info.

    The sustainability page logo URL.

    The name of the account for which the sustainability page is generated.

    Whether to include the certificates section in the sustainability page.

    The sustainability page bundle percentages and details.

    The volume of emissions offset via this bundle as a percentage of all offset emissions.

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

    The quantity of tCO2 offset via this bundle.

    The bundle's name

    A bundle's background colour in hexadecimal format

    A bundle's image URL

    A bundle's high resolution image URL

    A bundle's small thumbnail image URL

    The bundle's description

    Offset type classification

    emissions_reduction
    carbon_removal

    The bundle's carbon storage permanence.

    long_term
    short_term
    no_storage

    The list of supported UN Sustainable Development Goals (SDGs).

    The array is sorted by the goal number (the un_sdg_number field), ascending.

    The number which identifies the specific UN SDG.

    The total number of projects supporting this UN SDG.

    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

    Get a sustainability page

    HTTP GET to /v1/sustainability-pages/public/{organisation_id}/{type}/{handle}
  • Public endpoint
  • Get the current account's public sustainability summary info.
    Query parameters

    The unique identifier of the organisation this account belongs to

    The type of the sustainability page.

    live
    test

    The handle of the sustainability page's account.

    Response

    The public sustainability summary page for a given account.

    The sustainability page title format and info.

    The sustainability page logo URL.

    The name of the account for which the sustainability page is generated.

    Whether to include the certificates section in the sustainability page.

    The sustainability page bundle percentages and details.

    The volume of emissions offset via this bundle as a percentage of all offset emissions.

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

    The quantity of tCO2 offset via this bundle.

    The bundle's name

    A bundle's background colour in hexadecimal format

    A bundle's image URL

    A bundle's high resolution image URL

    A bundle's small thumbnail image URL

    The bundle's description

    Offset type classification

    emissions_reduction
    carbon_removal

    The bundle's carbon storage permanence.

    long_term
    short_term
    no_storage

    The list of supported UN Sustainable Development Goals (SDGs).

    The array is sorted by the goal number (the un_sdg_number field), ascending.

    The number which identifies the specific UN SDG.

    The total number of projects supporting this UN SDG.

    Errors
    This API operation can return the following errors:
    HTTP status codeError code
    404
    429