Tree Planting API Integration with Sage X3

September 4, 2023

Sage Platinum Club Winner

20+ Years Experience

UK&I + North America

First UK Sage X3 Partner

Content

Mysoft x Digital Humani

As part of Mysoft’s TREE initiative, we want to explore ways of tackling climate change and planting trees was an obvious positive action we could undertake. Beyond helping to absorb CO2 from the atmosphere over their lifetime, trees have other environmental benefits, such as helping to restore biodiversity and ecosystems that have been damaged by humans, as well as reducing soil erosion & degradation. 

As a Sage Business Partner, we wanted to do more than just commit to planting a limited number of trees in an ad hoc fashion. Instead, Mysoft wanted to integrate tree planting right into Sage X3, allowing our successes as a business to instantly translate into successes for the environment.

 

Selection of Tree Planting API Providers

 

Upon starting this project, our team was very aware that the tree-planting industry has been tainted with multiple examples of greenwashing. With that in mind, we started our evaluation of tree planting API providers with a set of criteria in mind. We discovered quickly that there are many options available, and through a narrowing process we ended up shortlisting three for comparison: More:Trees, Digital Humani and The Good API.

For comparing these different options, we established a few important criteria:

  • Donation Ratio: High percentage of donated money should actually go to tree planting.
  • Efficacy: The trees should actually get planted, not just say they are.
  • API quality: The API should be flexible and rich; we should be able to plant and retrieve previous planting data from the API. 
  • Visibility: There should be an easy to view dashboard from the API provider, providing transparency and visibility of outcomes.
  • Testing: They should provide a sandbox for testing on our development server, allowing us to build the best integration possible. 

Based on these criteria, Digital Humani stood out as the strongest contender. 

  • They take no money off the top of donations, all money is processed directly by one of their tree planting partners such as OneTreePlanted.
  • They provide the option to choose from many projects that have different partners allowing flexibility to choose a project we like the best with a planting company we view as reliable.
  • They have a detailed API that allows us to retrieve data such as the number of trees planted in a given month, the number of trees planted by user, etc.
  • They have a clear dashboard showing plants by day / month / year, with a log of each individual plant.
  • They have a separate sandbox dashboard and API to allow us to develop without any worries.

Additionally, they have some other benefits outside of our criteria such as being able to get certificates for trees planted if the project partner is OneTreePlanted, and they are a registered charity in Canada.

 

Development of the Tree Planting API with Sage X3

 

Having decided on the API provider we began to familiarise ourselves with their API, running tests of tree planting manually to ensure we understood the technology and process using the sandbox.  Once we were satisfied that the API would be appropriate for our use case we began the process of creating the Sage X3 integration. 

After discussions with the internal team at Mysoft, we decided it was best to calculate the number of trees to be planted based on what was invoiced, so when we succeed as a company the environment succeeds too. For invoices, we came up with three different options for the criteria – total invoice value, quantity of certain products, and value of certain products. We also decided to include formula fields to give us more flexibility on what triggers the tree planting. We already, at this stage, had it in mind that other Sage X3 users might be interested in this API; so we specified it with the flexibility for both Mysoft and the potential other businesses. Once this decision was taken, we set to work on the development tasks to make it happen. 

The goal was to amend as little of standard X3 as possible to help keep the integration simple – making it easy to roll out and support.

 

The Complete Solution; From Sage X3 to Tree Planting

 

At the end of Phase 1, our solution has 4 new Sage X3 functions: Projects, Campaigns, Campaign Groups, and Process Tree Planting:

 

Digital Humani Project imported into Sage X3

Projects

Projects is a simple table view that imports all the tree-planting projects currently available via Digital Humani from the list of providers; the projects are tied to a planting partner and a location round the globe – giving people the choice of where to plant and with whom.

 

 

 

Tree Planting Campaigns & Groups

Tree planting campaigns

The campaign screen includes all the criteria for planting 1 tree. We can set the sales-to-planting ratio here, for example, 0.1 of a quantity will plant 10 trees for every 1 unit.

All campaigns are tied to a planting project with Digital Humani.

Campaigns are organised into Campaign Groups which are applied to the customer.

 

 

Tree Planting Triggers

Tree planting requests are generated when a new sales invoice has been created where the customer has a campaign group defined. The number of trees to plant gets updated if the invoice is modified up until the invoice is posted.

 

Manually process tree planting requests

Process Tree Planting Requests

 

Finally, we have to plant the trees. For this, we use our Press Tree Planting function. This is a simple tick box with an ‘OK’ button to process all outstanding tree-planting requests.

Typically, this will run on the X3 Batch Server (Scheduler) and will not need to be run manually but is useful to have the option to run it manually from the menu. We created a Batch Task that processes all planting requests at the end of the day.

 

Digital Humani Dashboard

 

The dashboard created by Digital Humani is a great place to view all the planting done so far. In this example, you can see two days where we pushed a bulk set of manual plant requests. 

 

Mysoft’s Future with Tree Planting

 

Having built the integration, and proven that it works, we have begun to appreciate the potential for this solution. There are approximately 7,000 Sage X3 sites around the world today; if one in ten sites installed this and set the API up, we would have added another 700 companies to the tree planting project. If each of these planted 1,000 trees per year, we could plant 700,000 trees per year via Sage X3! The potential for this solution to scale and affect meaningful change in the world is startling. 

If you use a Sage X3 and are interested in using our Tree-API, please get in touch and we will gladly make it available to you. 

Mysoft looks forward to growing together with you!

Read more.

The Cost of Not Knowing
Technology

The Cost of Not Knowing

From disappearing stock visibility to spreadsheet-dependent forecasting and rising logistics costs, our conversations at the Total Supply Chain Summit highlighted an important challenge: businesses have more data than ever, but that doesn’t necessarily mean they have the information they need.

October 19, 2026

Start Now: A Practical Approach to AI in Business.
Technology

Start Now: A Practical Approach to AI in Business.

Where should businesses start with AI? Jamie Watts, Managing Director at Mysoft, shares how AI is already creating value and four practical steps organisations can take to start adopting it responsibly…

October 1, 2026

Mysoft welcomes Cooper Turner Beck as a Sage X3 customer.
Case Studies

Mysoft welcomes Cooper Turner Beck as a Sage X3 customer.

A global leader in safety-critical fastener solutions, Cooper Turner Beck has chosen Mysoft to support its Sage X3 journey, following a competitive selection process against other Sage X3 vendors. With specialist Sage X3 implementation, support and ongoing value-added services, Mysoft is proud to be working with Cooper Turner Beck as they continue to strengthen their business systems for future growth.

September 30, 2026

Next Step

The AI Readiness Assessment places your organisation on the maturity ladder and identifies the specific gaps standing between you and a credible AI strategy.

Your Challenges

Growth Bottleneck

When your back office can't keep pace

AI Mandate

Board has asked for a credible AI strategy

Scale Ambition

Infrastructure for 2X, 3X+ growth

Compliance Event

Acquisition, audit, or regulatory change

Who we serve

CFO & Finance Director

AI strategy, close cycle, scalable infrastructure

COO & Operations Director

Integrated operational ERP and supply chain

CTO & IT Director

Architecture, integration, security, and TCO

CEO & Board

Investment case, governance, strategic finance

AI Transformation Stages

The Journey - Overview

How we take you from stage 1 to stage 4

Stage 1 — Operational Foundation

Building the platform your business deserves

Stage 2 — Intelligent Automation

Remove the manual transactional layer

Stage 3 — AI Augmented Finance

Intelligence at the speed of the business

Stage 4 — Agentic Finance Governance

Finance at scale without headcount growth

Frameworks & Tools

Agentic Finance Governence

Board-defensible AI governance

Finance Operations Review

Structured discovery process

ISV Partner Ecosystem

Netstock, Nectari, Avalara and more

Platforms

Compare Platforms

Sage Intacct vs Sage X3, find your fit

Sage Intacct

AI-enabled, cloud-native finance solution

Sage X3

AI-driven, scalable, comprehensive ERP

X3CloudDocs

AI document and workflow automation

Full Ecosystem

Netstock, Nectari, Avalara and more

Release Hub

Information on each release of our platforms

Services

Sage X3 Implementation

Structured delivery for successful implementation

Support Services

Expert support that keeps you moving

Localisation & Legislation

Local compliance for global operations

Upgrade to Sage X3 or Intacct

Looking to upgrade your ERP or FMS to Sage?

Sectors

Manufacturing & Distribution

Solutions for complex operations

Food & Beverage

FEFO, traceability, compliance, and scalability

Chemical & Pharmaceutical

Formula management, regulatory and quality control

Professional Services

Project accounting, revenue recognition

SaaS & Subscription Business

Subscription billing, revenue recognition

Financial Services

Multi-entity, regulated environments

Charities & Not-for-Profit

Fund accounting, SORP compliance

Content

Content Hub

Selection of blogs and content

Video Hub

Selection of Mysoft & Sage videos

Events & Webinars

Events, roundtables & webinars

Whitepapers & Guides

In-depth PDF DLCs

Demo Hub

On-demand demos

Bootcamps & Insights

AI Bootcamp

AI in plain English for finance

ERP Bootcamp

ERP selection and implementation

FMS Bootcamp

Financial management systems

Cloud Migration Bootcamp

Moving your ERP to the cloud

Strategic Insights

Agentic AI. Reality versus hype

In Focus & Resources

SaaS & Technology Finance

In-focus, ARR, revenue recognition

Master Data Management

In focus, the AI data foundation

AI ready finance guide

Free download asset

ERP Selection Framework

Six stage evaluation process

CFO Strategy

Finance as a growth enabler

Operational Transformation

AI in AP, AR and beyond

Who we are

Our Story

Over 20 years, first Sage X3 partner

Meet the Team

50+ in-house Sage experts

Careers

Join Mysoft

Refer an Organisation to Mysoft

Know any company that might benefit from our services?

Contact us

Start a conversation with our team

Credentials

Sage Tech Partner & Platinum Club

Only UK Tech & Business partner with the highest partner tier badge

Community & Giving Back

Supporting local initiatives