Using DitchCarbon with Zapier

Howden manages Scope 3 PG&S emissions across 55 countries with DitchCarbon.
.webp)
Follow the guide below if you want to calculate the carbon footprint for following types of inbound Zapier data:1. Spend at a company2. Products3. Companies## 1. The carbon footprint of spend at a companySay you’ve connected your accounting software as the Trigger to one of your Zaps and you get inbound data whenever a new expense is created. The inbound data contains:1. The company name2. The total spendTo find the carbon footprint (in kilograms of CO2-equivalent emissions), choose the “Custom Request in Webhooks by Zapier” Action.On the “App & event” section, choose “Custom Request” on the “Event” dropdown. Click “Continue”.On the “Action” section, choose:- “GET” for the “Method” dropdown- “https://api.ditchcarbon.com/v1.0/calculate” for the “URL” dropdown- “False” for the “Data Pass-Through” dropdown- “Yes” for the “Unflatten” dropdownThen, insert the following into the “Data” field:```json{ "supplier": "FIELD", "amount": "FIELD" }```Place your cursor after the colon following “supplier”. An “Insert Data” dropdown should automatically open. Select the field of data from the Trigger of the Zap that represents the company name of your expense.Repeat this process for the “amount” field, selecting the field of data from the Trigger of the Zap that represents the total spend of your expense.Next, pay attention to the “Headers” section. You’ll need to create two:1. Key: “Authorization”, Value: “Bearer ”2. Key: “Content-Type”, Value: “application/json”Replace with your DitchCarbon API token, which you should be able to access from your account dashboard. Leave the other fields untouched.Once you press “Continue”, Zapier gives you the chance to test the Action. Press “Test Action” to have Zapier send an API request to our database containing a company name and your total spend at this company. You’ll see the carbon footprint (in kilograms of CO2-equivalent emissions) appear as the result.That’s it, you’re all done!Of course, you can specify more options alongside the company and your spend when you configure the Action. If you’re dealing with more than one currency, for example, change the value of the “Data” field to the following:```json{"supplier":"FIELD","amount":"FIELD",”amount_currency”:"FIELD"}```Then, as aforementioned, click through each field and select the appropriate data source from the “Insert Data” dropdown that should automatically open.For a full list of options for this API endpoint, visit <a href="https://ditchcarbon.com/docs">https://ditchcarbon.com/docs</a>.## In sustainable procurement, numbers matter.Give customers the emissions data they’re looking for.Try DitchCarbon for free.<a href="https://ditchcarbon.com/get-started/">Get a free API key</a>## 2. The carbon footprint of a product I’ve bought or am buyingSay you’ve connected your ToDo list app as a Trigger to one of your Zaps and you get inbound data whenever a new item is added to your “To-Buy” list. The inbound data contains:1. A manufacturer name2. A product nameTo find the carbon footprint if a purchase was made (in kilograms of CO2-equivalent emissions), choose the “Custom Request in Webhooks by Zapier” Action.On the “App & event” section, choose “Custom Request” on the “Event” dropdown. Click “Continue”.On the “Action” section, choose:- “GET” for the “Method” dropdown- “https://api.ditchcarbon.com/v1.0/product” for the “URL” dropdown- “False” for the “Data Pass-Through” dropdown- “Yes” for the “Unflatten” dropdownThen, insert the following into the “Data” field:```json{ "manufacturer": "FIELD", "name": "FIELD" }```Place your cursor after the colon following “manufacturer”. An “Insert Data” dropdown should automatically open. Select the field of data from the Trigger of the Zap that represents the manufacturer name of your “To-Buy” list item.Repeat this process for the “name” field, selecting the field of data from the Trigger of the Zap that represents the product name of your “To-Buy” list item.Next, pay attention to the “Headers” section. You’ll need to create two:1. Key: “Authorization”, Value: “Bearer ”2. Key: “Content-Type”, Value: “application/json”Replace with your DitchCarbon API token, which you should be able to access from your account dashboard. Leave the other fields untouched.Once you press “Continue”, Zapier gives you the chance to test the Action. Press “Test Action” to have Zapier send an API request to our database containing the manufacturer and product name. You’ll see the carbon footprint (in kilograms of CO2-equivalent emissions) appear as the result.That’s it, you’re all done!Of course, you can specify more options alongside the manufacturer and product name when you configure the Action. If you want to specify how many months the product would be used for, for example, change the value of the “Data” field to the following:```json{"manufacturer":"FIELD","name":"FIELD",”months”:"FIELD"}```Then, as aforementioned, click through each field and select the appropriate data source from the “Insert Data” dropdown that should automatically open.For a full list of options for this API endpoint, visit <a href="https://ditchcarbon.com/docs">https://ditchcarbon.com/docs</a>.## 3. The carbon footprint per £1 spent at a companySay you’ve connected your accounting software as the Trigger to one of your Zaps and you get inbound data whenever a new company is added as a supplier. The inbound data contains:1. A company nameTo find the carbon footprint (in kilograms of CO2-equivalent emissions) created by this company for every £1 spent, choose the “Custom Request in Webhooks by Zapier” Action.On the “App & event” section, choose “Custom Request” on the “Event” dropdown. Click “Continue”.On the “Action” section, choose:- “GET” for the “Method” dropdown- “https://api.ditchcarbon.com/v1.0/supplier” for the “URL” dropdown- “False” for the “Data Pass-Through” dropdown- “Yes” for the “Unflatten” dropdownThen, insert the following into the “Data” field:```json{ "name": "FIELD" }```Place your cursor after the colon following “name”. An “Insert Data” dropdown should automatically open. Select the field of data from the Trigger of the Zap that represents the company name of your supplier item.Next, pay attention to the “Headers” section. You’ll need to create two:1. Key: “Authorization”, Value: “Bearer ”2. Key: “Content-Type”, Value: “application/json”Replace with your DitchCarbon API token, which you should be able to access from your account dashboard. Leave the other fields untouched.Once you press “Continue”, Zapier gives you the chance to test the Action. Press “Test Action” to have Zapier send an API request to our database containing the company name. You’ll see the carbon footprint (in kilograms of CO2-equivalent emissions) per £1 spent appear as the result.That’s it, you’re all done!Of course, you can specify more options alongside the company name when you configure the Action. If you’re dealing with more than one currency, for example, change the value of the “Data” field to the following:```json{ "name": "FIELD", "currency": "FIELD" }```Then, as aforementioned, click through each field and select the appropriate data source from the “Insert Data” dropdown that should automatically open.For a full list of options for this API endpoint, visit <a href="https://ditchcarbon.com/docs">https://ditchcarbon.com/docs</a>.
Join the industry leaders and solve your Scope 3 emissions data challenge
See how DitchCarbon can transform your sustainability journey with auditable insights and verified data.

