Skip to main content
GET
/
v1
/
quotes
/
{quote_id}
Get Quote By Id
curl --request GET \
  --url https://api.example.com/v1/quotes/{quote_id}
{
    "quote_id": "09569fa2-b2b2-449d-af8b-24bc3694ecbc",
    "total_cost": "24.00",
    "provider_cost": "20.00",
    "service_cost": "4.00",
    "currency": "GBP",
    "emissions_in_kg": 1000,
    "portfolio": {
        "name": "Example Portfolio",
        "carbon_portfolio_summary": "Example Portfolio Summary",
        "carbon_portfolio_description": "Example Portfolio Description"
        "carbon_portfolio_image_url": "https://example.com"
        "carbon_provider": {
            "name": "Example Provider",
            "website": "https://example.com/"
        },
    }
}

Documentation Index

Fetch the complete documentation index at: https://docs.greener-choice.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

api-key
string
required
Authorisation requires an API key in the header of the request. Please see this page for more information.

Response Fields

quote_id
uuid
A unique ID assigned to the quote. This identifier is used to reference the quote within the system.
total_cost
decimal
The total cost required to offset the specified carbon emissions.
provider_cost
decimal
The base cost required by the carbon provider to offset the specified carbon emissions.
service_cost
decimal
The service fee applied to all carbon orders.
currency
string
The currency in which the cost is denominated. This field specifies the monetary unit used for the offsetting cost.
emissions_in_kg
long
The amount of carbon emissions to be offset, specified in kilograms.
portfolio
object
{
    "quote_id": "09569fa2-b2b2-449d-af8b-24bc3694ecbc",
    "total_cost": "24.00",
    "provider_cost": "20.00",
    "service_cost": "4.00",
    "currency": "GBP",
    "emissions_in_kg": 1000,
    "portfolio": {
        "name": "Example Portfolio",
        "carbon_portfolio_summary": "Example Portfolio Summary",
        "carbon_portfolio_description": "Example Portfolio Description"
        "carbon_portfolio_image_url": "https://example.com"
        "carbon_provider": {
            "name": "Example Provider",
            "website": "https://example.com/"
        },
    }
}