Offsets

Add one line to a cart

Name carbonguru_id (an item this account analysed, optionally with its session_id) or carbon_kg with a name (an ad-hoc footprint). A session_id on its own names no footprint and is refused, which is what the shipped route does. Adding charges nothing; subscription_mode monthly makes the line recurring and it still charges nothing until a person completes the checkout in a browser. The answer is the named cart, read back.

post/v1/offsets/cart/items

Request

  • Base URL: https://carbonguru.io
  • URL: https://carbonguru.io/v1/offsets/cart/items
  • Auth: HTTP bearer

Request body

type'offset' | 'removal' required
carbonguru_idstring

An item this account analysed.

session_idstring

The analysis session the item belongs to. A companion to the two identities, never one itself.

carbon_kgnumber
namestring

Required with carbon_kg.

subscription_mode'onetime' | 'monthly'

Response

The named cart, read back.

Changes

No recorded changes to this operation across all 1 revision of this API.