POST
/
quotes
/
ground-freight

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Subaccount-Id
string

If present, scopes the operation to the subaccount with given id. See Subaccounts for more info.

Body

application/json
freight_mass_kg
number
required

Mass of freight, in kg

distance_km
number
required

Distance of ground freight shipment, in km

portfolio_id
string | null

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.

source
string | null

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.

Response

200 - application/json
amount_kg
number

Amount of carbon credits the quote is for, in kilograms

price_usd_cents
number

Price charged for the credits, in cents (integer)