# TreeMates as provider

During the setup process, you have the choice to select [TreeMates](https://www.treemates.net/en/) as your provider. TreeMates is an intermediary that works with various certified organizations to promote the reforestation of forests.

### Setup

To set up TreeMates, you need to go to `Extensions > My extensions > Apps` in the admin and then, for the Tree per Order (Cloud) app, right-click `...` > Configuration. Further down you will find the section `TreeMates donations`

![](/files/ricfZBW6iebe00Dizyrs)

#### API key

The most important setting is the `API key`. Without this key a communication with TreeMates is not possible.

To get the `API key`, you first need an active account at TreeMates. Now you can log in to <https://console.treemates.net/> and go directly to <https://console.treemates.net/api-keys>.

There you can generate a live key and then copy and paste it into the `API key` field.

![](/files/LcM158I1zAdHtwfr95jC)

#### Send certificate to customer

The `Send certificate to customer` checkbox determines whether the customer receives a donation certificate with a PDF by email. The certificate will only be sent if the order status is set to `Completed` and the associated tree planting is set to `Planted`.

#### Donate anonymously

The checkbox `Donate anonymously` determines whether customer data such as first name, last name and the email are transmitted to TreeMates. If the checkbox is activated, no donation certificate will be sent by email in any case.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shop-studio.io/shopware/extensions/tree-per-order/setup/treemates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
