Carbon Footprint
Carbon Footprint API
The Footprint endpoint calculates and returns the carbon footprint(s) for one or more products within a single transaction, given a well-formed JSON request containing required properties, as shown in the examples below. Note that all footprint requests must include your API key from your Cooler account.
Parameters
KEY
TYPE
DESCRIPTION
EXAMPLE
productName*
string
name or title of the product
Samsung A7 Galaxy
productDescription*
string
*product description
Keep up with life with your fast paced life with a phone that fits you, like the Samsung Galaxy A14 5G from Total by Verizon. With the speed of 5G and a powerful Galaxy processor, you can experience your day virtually lag-free.
productPrice*
number
price of the product
500
postalCode
string
postal code of the product when it ships to the customer or your store
49503
newProduct
boolean
new=true, used=false
true
externalId
string
your system’s product id
your_product_id
Reponse Data
Code Examples
The following code examples use our test key—remember to replace the key with your own in your own code when calling the endpoints for production.
Javascript
Curl
Last updated