> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# PrestaShop connector

- Connector: `appmixer.prestashop`
- Version: 1.0.1
- Components: 13 (1 trigger, 12 actions)

Integration with the PrestaShop Webservice API. Retrieve customers, contacts, orders, products, stock and returns, react to abandoned carts and send messages or notes back to customers.

- Connector page: <https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1>
- Source code: <https://github.com/clientIO/appmixer-connectors/tree/dev/src/appmixer/prestashop>
- Download package: <https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/download>

## Authentication

**Type:** API Key

**Fields:**

- `Shop URL` (text): The base URL of your PrestaShop store, e.g. **https://www.myshop.com**. The Webservice API is exposed under _/api_.
- `Webservice Key` (text): Enable the Webservice in your PrestaShop back office (Advanced Parameters -> Webservice) and generate a key with access to the required resources.

## Triggers (1)

- [Abandoned Cart](https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/component/appmixer.prestashop.core.AbandonedCart.md) (`appmixer.prestashop.core.AbandonedCart`): Triggers when a cart is abandoned (a cart that has not been converted into an order) and pulls the cart contents.

## Actions (12)

- [Create Note](https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/component/appmixer.prestashop.core.CreateNote.md) (`appmixer.prestashop.core.CreateNote`): Create an internal (private) note on a customer service thread. The note is stored as a private customer message and is not shown to the customer.
- [Attach Message To Customer](https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/component/appmixer.prestashop.core.AttachMessage.md) (`appmixer.prestashop.core.AttachMessage`): Attach a message back to a customer by posting it to an existing customer service thread. Use this to send a reply that is visible to the customer.
- [Find Orders](https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/component/appmixer.prestashop.core.FindOrders.md) (`appmixer.prestashop.core.FindOrders`): Return the list of orders (order history) for a given customer. Returns a maximum of 100 orders.
- [Find Returns](https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/component/appmixer.prestashop.core.FindReturns.md) (`appmixer.prestashop.core.FindReturns`): Get all information related to the return journey of merchandise, optionally filtered by order or customer. The journey is reconstructed from the order state history (PrestaShop does not expose RMA records through the Webservice API): every state change related to a return or refund is reported with its date. Inspects a maximum of 100 orders.
- [Get Contact](https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/component/appmixer.prestashop.core.GetContact.md) (`appmixer.prestashop.core.GetContact`): Retrieve a store contact and all of its associated data by ID. Contacts are the customer-service contacts configured in your PrestaShop back office.
- [Get Customer](https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/component/appmixer.prestashop.core.GetCustomer.md) (`appmixer.prestashop.core.GetCustomer`): Retrieve a customer and all associated data by ID, including the customer group they belong to and the reduction configured for that group.
- [Get Order](https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/component/appmixer.prestashop.core.GetOrder.md) (`appmixer.prestashop.core.GetOrder`): Get all information about an order by ID: the carrier, the order detail rows, the current and historical states and the associated customer.
- [Get Order States](https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/component/appmixer.prestashop.core.GetOrderStates.md) (`appmixer.prestashop.core.GetOrderStates`): Get the state history of an order (e.g. delivered, in progress, shipping updates) with resolved state names, plus the current state and the associated customer.
- [Get Product](https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/component/appmixer.prestashop.core.GetProduct.md) (`appmixer.prestashop.core.GetProduct`): Retrieve a single product by its ID, including all details such as price, reference and descriptions.
- [Get Stock Availability](https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/component/appmixer.prestashop.core.GetStockAvailability.md) (`appmixer.prestashop.core.GetStockAvailability`): Get the stock availability for a product by its product ID. Returns the total available quantity as well as the per-combination stock records.
- [List Products](https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/component/appmixer.prestashop.core.ListProducts.md) (`appmixer.prestashop.core.ListProducts`): Get a list of all products from the shop with their related information. Returns a maximum of 100 products.
- [Make API Call](https://connectors.appmixer.com/connector/appmixer.prestashop/1.0.1/component/appmixer.prestashop.core.MakeApiCall.md) (`appmixer.prestashop.core.MakeApiCall`): Performs an arbitrary authorized call to the PrestaShop Webservice API.

## Changelog

### 1.0.2

- Quote CSV cells that hold a comma, a double quote or a line break and map cells by header column when exporting results to a file.

### 1.0.1

- MakeApiCall: Request Headers and Query Parameters set in the Designer are now sent. They were silently dropped: the key-value field stores its rows as a JSON object string, which the component did not parse.

### 1.0.0

- Initial release.
