v2
latestOpenAPI 3.1.02026-08-054181117.0 KBCreate Retirement From Oldest Credits
Retire oldest available credits from a given supplier. If vintage is specified, this will retire the oldest credits from that vintage only.
post/retirements/from_oldest_credits
Headers
x-client-secretstring required
A secret token identifying the client connecting to the API
Example:Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP
A secret token identifying the client connecting to the API
Request body
Example request
{
"owner_organisation_id": "org_1GB56M1ST1S0GVNA",
"beneficiary_organisation_id": "org_1GB56M1ST1S0GVNA",
"supplier_id": "spl_1CC712KFS1S0YKPS",
"notes": "Retired with care.",
"credit_quantity_kg": 1000,
"vintage": 2022,
"order_id": "ord_1FAN3S3WV1S0B842"
}Response
Successful Response
Example response
{
"id": "ret_1FYBH4QDT1S0SVKF",
"beneficiary": {
"id": "org_1GB56M1ST1S0GVNA",
"name": "Isometric",
"domain": "isometric.com"
},
"owner": {
"id": "org_1GB56M1ST1S0GVNA",
"name": "Isometric",
"domain": "isometric.com"
},
"credit_batch_size_total": {
"credits": 125.632,
"credit_kgs": 125632
}
}