For transferring credits this is THE endpoint to use. You can transfer credits from an organization, user or subaccount.
POSThttps://api.carbonregistry.com/v1/transfer
Authorization
Body
to*all of
The receiver's information.
If the entity Id is supplied (user / org / subaccount) then the credits are sent to the corresponding account for that id.
If you want to deliver the credits to some address on Polygon you can use the publicKey address and leave the id undefined.
Finally if you are unsure if the receiver of the credits own's a carbonregistry.com account you can pass in the receiver's email, the credits will be sent to an escrow account that stores the credits until the owner of the email signs in and claims the credits.
fromId*string
The entity that holds the credits - if not a subaccountId the default subaccount will be used.
Example: "123e4567-e89b-12d3-a456-426614174000"
credits*array of TransferCredit (object)
The credits to transfer
commentstring
An optional transaction comment
Example: "Transfer 2024"
receiptEmailsarray of EmailDto (object)
An optional list of emails to send the transaction receipt to
Response
Body
transactionId*string
The transaction id
Example: "123e4567-e89b-12d3-a456-426614174000"
success*boolean
Whether the transaction was successful or not
Example: true
Request
Response
Retire credits
For retiring credits this is THE endpoint to use. You can retire credits from an organization, user or subaccount.
POSThttps://api.carbonregistry.com/v1/retire
Authorization
Body
toall of
The receiver information
fromId*string
The entity that holds the credits
Example: "123e4567-e89b-12d3-a456-426614174000"
reason*string
The reason for retirement. This reason comes from a specified picklist.
Example: "Corsia"
beneficiaryName*string
The beneficiary for the retirement
Example: "Beff Jezos"
comment*string
A retirement comment
Example: "Retiring for flights 24'"
credit*all of
The credits to transfer
receiptEmailsarray of EmailDto (object)
An optional list of emails to send the transaction receipt to