API Documentation
Orders
Quotes
- POSTGet Quote by Emissions Mass
- POSTGet Quote for Air Freight Emissions
- POSTGet Quote for Flight Emissions
- POSTGet Quote for Ground Freight Emissions
- POSTGet Quote for Ground Transport Emissions
- POSTGet Quote for Office Space Emissions
- POSTGet Quote for Train Emissions
- POSTGet Vehicle Ride Credits Price Quote
Subaccounts
Checkout Sessions
Get List of Orders
Gets a list of orders in reverse chronological order up to the provided limit
number of orders per call.
Pagination is supported by passing the first order id
from a previous call into ending_before
to retrieve the
previous page, or the last order id
from a previous call into starting_after
to retrieve the next page.
curl --request GET \
--url https://api.cnaught.com/v1/orders \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "Gre28Fc35bt3",
"order_number": "47726-53238-46633-33562-7433",
"created_on": "2022-08-01T18:00:00.000000Z",
"metadata": "Customer metadata",
"description": "On behalf of Jane Smith",
"amount_kg": 10.5,
"state": "fulfilled",
"price_usd_cents": 2350,
"certificate_public_url": "https://registry.cnaught.com/orders/Gre28Fc35bt3",
"certificate_download_public_url": "https://registry.cnaught.com/api/certificates/Gre28Fc35bt3/pdf"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
If present, scopes the operation to the subaccount with given id. See Subaccounts for more info.
Query Parameters
Limits the number of orders returned, default is 20, max is 100
1 <= x <= 100
If specified, returns orders submitted before (earlier than) the order with this id, exclusive (order with this id is not included). Only one of starting_after and ending_before can be specified.
If specified, returns orders submitted after (later than) the order with this id, exclusive (order with this id is not included). Only one of starting_after and ending_before can be specified.
Response
Identifier that can be used to retrieve the order details
"Gre28Fc35bt3"
Hex representation derived from the order id that will be shown on the certificate
"47726-53238-46633-33562-7433"
Timestamp of when the order was created (in UTC)
Optional metadata that was provided with the order
512
"internal_order_id=12345"
Optional public description for the order that will be shown on the certificate, as provided when order was placed
512
"on behalf of Jane Smith"
Amount of credits purchased, in kg of CO₂e
10.5
The current state of the order.
placed
- the order has been placed, and is waiting to be matched against available credits in our system.fulfilled
- the order has been fulfilled by matching it against available credits in our system, which have been retired.canceled
- the order has been canceled
placed
, fulfilled
, cancelled
Amount charged for the credits purchased, in USD cents
2350
Callback URL to invoke when status of the order changes, if specified in the order
URL for the publicly accessible page showing order details and the certificate. This will be null if the order state is cancelled
"https://registry.cnaught.com/orders/ABCDE"
URL for downloading the certificate PDF. This will be null if the order state is cancelled
"https://registry.cnaught.com/api/certificates/ABCDE/pdf"
For fulfilled orders, a list of the projects that were used to fulfill the order
Details of the project for this allocation
Identifier that can be used to retrieve the project details
"Fc35bt3"
Name of the project
"Liling Landfill Gas Project"
A short summary of the project
"Lorem Ipsum"
A longer description of the project
"Lorem Ipsum Shmipsum"
Type of project, eg Afforrestation, Renewable Energy, etc
"REDD"
List of activity types for the project
["Landfill Gas", "Renewable Energy"]
The name of the company or organization sponsoring the project
"Charm Industrial"
The name of the registry on which the project's credits are registered
"Verra"
The id of the project within the registry
824
The full url to the project's documentation on the registry website
"https://registry.verra.org/app/projectDetail/VCS/824"
Location of the project
"Fujian Province, China"
Latitude for the location of the project
26.0833
Longitude for the location of the project
119.3
URL for the primary image of the project
"https://assets.cnaught.com/63a4ad4c853f90fd4c455107/64122d1dcf47f3840933826a_charm-industrial.jpg"
list of UN Sustainable Development Goals supported by this project; see https://sdgs.un.org/goals
[1, 4, 6]
The methodology used for the project
"VM0010"
The verifier of the project
"DNV GL"
Information about the permanence of the carbon removal
"100+ years"
The type of impact the project has (avoided emissions, removal, or mix of both)
"Avoided Emissions"
Information about the due diligence performed on the project
"Extensive verification process was conducted..."
Information about benefits beyond carbon reduction
"This project also supports local communities..."
Information about the risk of carbon reversal
"Low risk due to long-term conservation agreements..."
List of third-party labels or certifications
["Gold Standard", "Climate Action Reserve"]
List of notable buyers of credits from this project
Name of the buyer
"Microsoft"
URL to the buyer's logo
"https://assets.cnaught.com/logos/microsoft.png"
Alt text for the buyer's logo
"Microsoft logo"
Figure illustrating due diligence information
Description of the due diligence figure
"This chart shows the verification process..."
URL to the due diligence figure image
"https://assets.cnaught.com/figures/due-diligence.png"
Alt text for the due diligence figure image
"Due diligence verification process diagram"
List of news articles related to the project
Title of the news article
"New Carbon Capture Project Launched"
URL to the news article
"https://example.com/news/carbon-capture"
Author of the news article
"John Smith"
Publication date of the news article
"2023-01-15T00:00:00Z"
CNaught's perspective on the news article
"This article highlights the importance of..."
Amount (in kg CO₂e) of the order fulfilled from this project
1000
List of retirement records for this project allocation
The serial number range of the retired tranche block(s) from which an order's project allocation is taken. The format differs depending on the registry
"GS1-1-KE-GS5642-16-2018-20671-12345-12350"
The url to the retired tranche block(s) record on the project's registry
Id of the checkout session whose completion resulted in the creation of this order. Null if the order did not originate from a checkout session.
"zpQ6QSNRQh"
curl --request GET \
--url https://api.cnaught.com/v1/orders \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "Gre28Fc35bt3",
"order_number": "47726-53238-46633-33562-7433",
"created_on": "2022-08-01T18:00:00.000000Z",
"metadata": "Customer metadata",
"description": "On behalf of Jane Smith",
"amount_kg": 10.5,
"state": "fulfilled",
"price_usd_cents": 2350,
"certificate_public_url": "https://registry.cnaught.com/orders/Gre28Fc35bt3",
"certificate_download_public_url": "https://registry.cnaught.com/api/certificates/Gre28Fc35bt3/pdf"
}
]
}