API Checkout Service
Use the Checkout Service API to create hosted checkout links for carbon credit purchases and retirements, then track payment and retirement status through the API.
The Checkout Service is a REST API that creates unique checkout links powered by Stripe. Your application sends a listing-based asset_price_source_id, quantity_tonnes, retirement metadata, and redirect URLs, and the API returns a hosted checkout URL. When the user opens that URL and completes payment, the retirement flow is initiated.
This is the fastest path for teams that want to offer carbon credit purchases and retirements without building their own payment collection flow.
When to use the Checkout Service
The Checkout Service is a good fit when you want to:
offer carbon credit purchases and retirements in your application
avoid building and maintaining a custom payment flow
use a hosted checkout experience instead of collecting payment details directly
get to market faster with a simpler integration
How it works
At a high level, the flow is:
Your application sends a checkout request with an
asset_price_source_id,quantity_tonnes, retirement metadata, and redirect URLsThe Checkout Service returns a hosted payment URL
The user opens the URL and completes payment
Your application reads the
payment_idfrom the success redirect URLYour application queries
/payments/{id}to confirm payment and retirement status
Core endpoints
The Checkout Service currently exposes these key endpoints:
POST /checkout— create a hosted checkout URLPOST /quotes— request a retirement quote for a given asset price source and quantityGET /payments/{id}— retrieve payment details and retirement status
Checkout request requirements
To create a checkout URL, send a request to POST /checkout with:
asset_price_source_idquantity_tonnesmetadata, including:beneficiary_nameretirement_message
cancel_urlsuccess_url
The success_url is suffixed with /<payment_id>. You can use that payment_id to query the /payments endpoint and confirm the result of the transaction.
Availability and access
The Carbonmark API Checkout Service is available for use.
Use the endpoint reference to implement the hosted checkout flow and retrieve payment status through the API.
Last updated