> Source: https://help.wastenot.io/connectors/prestashop

# PrestaShop

Connect your PrestaShop store to WasteNot to sync order and refund activity. Build audiences based on purchase and refund behavior to optimize your ad targeting.

## Prerequisites

Before connecting PrestaShop, you will need:

* A PrestaShop store with the Webservice (API) enabled
* A Webservice API key
* Your store URL

### Enabling the Webservice and creating a key

1. In your PrestaShop admin, go to **Advanced Parameters > Webservice**
2. Set **Enable PrestaShop's webservice** to **Yes** and save
3. Click **Add new webservice key** and generate a key
4. Grant **View (GET)** permission for these resources: **orders**, **order_slip**, **customers**, and **addresses**
5. Save, then copy the **Key**

See the [PrestaShop guide to creating API access](https://devdocs.prestashop-project.org/9/webservice/tutorials/creating-access/) for more detail.

## Connecting PrestaShop

1. [Add a new PrestaShop data source](https://app.wastenot.io/integrations/connectors/new/prestashop)
   in WasteNot
2. Enter a **Name** for the data source
3. Enter your **Store URL** (e.g. `https://store.example.com`)
4. Paste your **API Key**
5. If your store is multistore, enter the **Shop ID** to sync
6. Click **Connect**

WasteNot will begin syncing your store data automatically.

## What gets synced

* **Order** — A customer placed an order
* **Refund** — A credit memo (refund) was issued for an order

## Frequently asked questions

### Can I connect multiple stores?

Yes. Add a separate PrestaShop data source for each store. For a multistore install, create one data source per shop and set the **Shop ID** on each.

### My refund data source shows "Failed" status

The API key most likely does not have **View (GET)** permission for the **order_slip** resource. Grant it in **Advanced Parameters > Webservice**, then reconnect the data source in [Data Sources](https://app.wastenot.io/integrations).

### My data source shows "Failed" status

This usually means the API key was revoked, copied incorrectly, or is missing a required permission. Confirm the key has View access to orders, order_slip, customers, and addresses, then update the data source in [Data Sources](https://app.wastenot.io/integrations).
