Create Retirement From Oldest Credits
Changed onRetire oldest available credits from a given supplier. If vintage is specified, this will retire the oldest credits from that vintage only.
Request
- Base URLhttps://api.isometric.com/registry/v0
- URLhttps://api.isometric.com/registry/v0/retirements/from_oldest_credits
- AuthHTTP bearer
Headers
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
}
}Changes
- info
added the new optional request property
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- breaking
the
/response property's maxLength was increased from36to37for the response status - breaking
the
response property's maxLength was increased from36to37for the response status - breaking
the
/response property's maxLength was increased from36to37for the response status - warning
added the new
insettingenum value to the/response property for the response status - info
added the new
insettingenum value to the request property/ - info
the
request property's maxLength was increased from36to37 - info
the
request property's maxLength was increased from36to37 - info
the
request property's maxLength was increased from36to37
- breaking