Skip to main content
POST
/
retirements
/
from_oldest_credits
Create Retirement From Oldest Credits
curl --request POST \
  --url https://api.sandbox.isometric.com/registry/v0/retirements/from_oldest_credits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-client-secret: <x-client-secret>' \
  --data '
{
  "beneficiary_organisation_id": "<string>",
  "credit_quantity_kg": 123,
  "notes": "Retired with care.",
  "owner_organisation_id": "<string>",
  "retirement_purposes": [
    "corporate_targets"
  ],
  "supplier_id": "<string>",
  "vintage": 2022
}
'
{
  "beneficiary": {
    "domain": "isometric.com",
    "id": "<string>",
    "name": "<string>"
  },
  "credit_batch_size_total": {
    "credit_kgs": 123,
    "credits": 123
  },
  "id": "<string>",
  "notes": "<string>",
  "owner": {
    "domain": "isometric.com",
    "id": "<string>",
    "name": "<string>"
  },
  "purposes": [
    "corporate_targets"
  ],
  "retired_at": "2023-11-07T05:31:56Z",
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

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.

Required string length: 20 - 37
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. This field can handle bigint values.

notes
string | null
required

A publicly visible note stored with the credit retirement.

Maximum string length: 256
Example:

"Retired with care."

owner_organisation_id
string
required

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

Required string length: 20 - 37
retirement_purposes
enum<string>[]
required
Minimum array length: 1
Available options:
corporate_targets,
public_environmental_claims,
insetting,
regulatory_requirement,
other
supplier_id
string
required

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

Required string length: 20 - 37
vintage
integer | null

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

Required range: 1900 <= x <= 2100
Example:

2022

Response

Successful Response

beneficiary
Organisation · object
required
credit_batch_size_total
CreditQuantity · object
required
id
string
required
Required string length: 20 - 37
notes
string | null
required
owner
Organisation · object
required
purposes
enum<string>[]
required
Available options:
corporate_targets,
public_environmental_claims,
insetting,
regulatory_requirement,
other
retired_at
string<date-time>
required
url
string
required