Get Quote for Train Emissions
Get a price quote for offsetting train carbon emissions. Will return the amount of CO₂e to offset and total price.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
If present, the quote is priced for the subaccount with the given id, which means it uses that subaccount's default portfolio if it has one. Pass the same subaccount id when you place the order, so that the price you were quoted is the price you are charged. Sending the header with a blank value is treated the same as leaving it out, and prices for the whole organization. An id that does not belong to your organization is rejected with a 400 invalid-subaccount. See Subaccounts for more info.
Body
Quote Parameters
Distance of train ride, in km
5
Optional ID of the portfolio to use for the quote. The quote will be for an order fulfilled from this portfolio. If not specified, the account's default portfolio will be used.
"a23bF6"
Optional source of the quote. Defaults to api if not specified, otherwise must be one of api or checkout.
Use api if the eventual order will be placed via the Order API. Use checkout if the order will be placed using the Checkout Session API.
"api"
"checkout"