Carbon Offsets on Demand

Our Sustainability as a Service platform makes carbon offsets available for everyday activities like ecommerce deliveries, ridesharing, and much more.

Home hero
Purple bg pattern
curl https://api.cloverly.com/2019-03-beta/purchases/vehicle \
-X POST \
-d '{"distance":{"value":55,"units":"km"},"fuel_efficiency":{"value":25,"units":"mpg","of":"gasoline"}}' \
-H "Content-type: application/json" \
-H "Authorization: Bearer public_key:47800ea0ee541b4c"require 'faraday'
conn = Faraday.new(:url => 'https://api.cloverly.com')
conn.post do |req|
  req.url '/2019-03-beta/purchases/vehicle'
  req.body = '{"distance":{"value":55,"units":"km"},"fuel_efficiency":{"value":25,"units":"mpg","of":"gasoline"}}'
  req.headers['Content-Type'] = 'application/json'
  req.headers['Authorization'] = 'Bearer public_key:47800ea0ee541b4c'
endconst request = require('request');
const options = {
    method: 'post',
    url: 'https://api.cloverly.com/2019-03-beta/purchases/vehicle',
    body: JSON.stringify({"distance":{"value":55,"units":"km"},"fuel_efficiency":{"value":25,"units":"mpg","of":"gasoline"}}),
  headers: {
    'Content-type': 'application/json',
    'Authorization': 'Bearer private_key:f3c4ade49330aeda'
  }
};
request(options, function(error, response, body) {
  console.log(body);
});
package main

import "net/http"
import "io/ioutil"
import "fmt"
import "bytes"

func main() {
  client := &http.Client{}

  var requestData = []byte(`{"distance":{"value":55,"units":"km"},"fuel_efficiency":{"value":25,"units":"mpg","of":"gasoline"}}`)
  req, _ := http.NewRequest("POST", "https://api.cloverly.com/2019-03-beta/purchases/vehicle", bytes.NewBuffer(requestData))
  req.Header.Add("Content-type", "application/json")
  req.Header.Add("Authorization", "Bearer private_key:f3c4ade49330aeda")

  resp, _ := client.Do(req)

  defer resp.Body.Close()
  body, _ := ioutil.ReadAll(resp.Body)

  fmt.Printf(string(body[:]))
}
import requests
url = 'https://api.cloverly.com/2019-03-beta/purchases/vehicle'
headers = {'Content-type': 'application/json', 'Authorization': 'Bearer private_key:f3c4ade49330aeda'}
data = '{"distance":{"value":55,"units":"km"},"fuel_efficiency":{"value":25,"units":"mpg","of":"gasoline"}}'
r = requests.post(url, headers=headers, data=data)
print(r.text)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.cloverly.com/2019-03-beta/purchases/vehicle");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"distance":{"value":55,"units":"km"},"fuel_efficiency":{"value":25,"units":"mpg","of":"gasoline"}}');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/json', 'Authorization: Bearer private_key:f3c4ade49330aeda'));
$r = curl_exec($ch);
curl_close($ch);
echo $r;

                        

Clover iconCloverly API

Common internet activities, like package deliveries from ecommerce purchases, carry a carbon footprint. Our API lets you or your customers green those online transactions.

Retail icon

Ecommerce Integrations

Cloverly works with your favorite ecommerce platforms. Once you sign up for a Cloverly account and receive a production API key, you can quickly install one of our ecommerce plugins. Your customers will be greening their orders in no time!

Magento

Our Magento plugin allows your customers to green their ecommerce orders with a simple opt-in checkbox.

Shopify

Our Shopify plugin allows your customers to green their ecommerce orders with a simple opt-in checkbox.

Blog icon

Cloverly Blog

Discover how we're helping companies green their everyday transactions.