POST
/
retirements
/
from_oldest_credits

Authorizations

Authorization
string
headerrequired

A JWT Bearer token header for authentication and authorization, in the format Authorization: Bearer <token>

Headers

x-client-secret
string
required

A secret token identifying the client connecting to the API

Body

application/json
beneficiary_organisation_id
string
required

The ID of the organisation that the credits will be retired in the name of, this can be the same as owner_organisation_id.

credit_quantity_kg
integer
required

A representation of a credit quantity as an integer kilogram amount. Where 1 unit represents 0.001 credits and 1 kilogram of CO₂e.

notes
string | null
required

A publicly visible note stored with the credit retirement.

owner_organisation_id
string
required

The ID of the organisation owns the credits to be retired. Typically this would be your own organisation ID.

retirement_purposes
enum<string>[]
required
Available options:
corporate_targets,
public_environmental_claims,
regulatory_requirement,
other
supplier_id
string
required

All credits in a retirement must originate from the same supplier.

vintage
integer | null

The year of the credits to be retired. If not provided, the oldest credits will be retired.

Response

200 - application/json
beneficiary
object
required
credit_batch_size_total
object
required
id
string
required
notes
string | null
required
owner
object
required
purposes
enum<string>[]
required
Available options:
corporate_targets,
public_environmental_claims,
regulatory_requirement,
other
retired_at
string
required
url
string
required