PrestaShop Customer
PrestaShop Customer connects your flow to your PrestaShop store’s customers. With it you can get the list of customers or find one by number or email, add new customers, change their details or newsletter subscription, delete them, and look up a shipping or billing address.
It is useful when your customer data also lives in another tool, such as a CRM or an email platform, and you want both systems to match.
When to use it
- A customer signs up in your CRM and you want to add them to the store as well.
- Every week you want to send your email platform the customers who agree to receive the newsletter.
- An AI agent answers questions and needs to find a customer by email.
- A customer asks to leave and you want to deactivate or delete their account.
Configuration
You need a PrestaShop credential with your store’s address and a PrestaShop web service key. You create the key in the PrestaShop admin panel, under Advanced Parameters > Webservice, by enabling the web service and giving the key access to customers and addresses. See Credentials.
| Field | What it does |
|---|---|
| Credential (required) | The PrestaShop credential used to access your store. |
| Operation | What the component does. See Operations. Default: Get Customers. |
| Query Type | Only in Get Customers. List returns a list of customers; By ID finds a customer by number; By Email finds them by email. Default: List. |
| Customer ID | The customer’s number in PrestaShop. Required in Get Customers with By ID, Update Customer and Delete Customer. |
| Search Email | Only in Get Customers with By Email. The email of the customer you are looking for. |
| Max Results | Only in Get Customers with List. The maximum number of customers to return. Default: 50. |
| First Name (required) | Only in Create Customer and Update Customer. The customer’s first name. |
| Last Name (required) | Only in Create Customer and Update Customer. The customer’s last name. |
| Email (required) | Only in Create Customer and Update Customer. The customer’s email. It must be a valid address. |
| Password (required) | Only in Create Customer and Update Customer. The password of the customer’s account. In Update Customer, the one you enter becomes the customer’s new password; leave it empty to keep the current one. |
| Newsletter Subscription | Only in Create Customer and Update Customer. Whether the customer receives the newsletter. Default: off. |
| Active | Only in Create Customer and Update Customer. Whether the customer’s account is active. Default: on. |
| Address ID | Only in Get Address. The number of the address you want to look up. |
Operations
| Operation | What it does |
|---|---|
Get Customers | Returns a list of customers (List), one customer by number (By ID) or by email (By Email). |
Create Customer | Adds a new customer to the store. |
Update Customer | Changes an existing customer’s details. Newsletter Subscription and Active are always applied, so check their values. |
Delete Customer | Deletes the customer with that number. |
Get Address | Returns an address’s details: the customer it belongs to, the address name, street, postcode, city, country and phone. |
Output
The Data output depends on the operation:
Get Customers: the customer’s number, first name, last name, email, whether they are active, whether they receive the newsletter, and the sign-up date. WithListyou get one item per customer; withBy Emailyou get the first customer with that email.Create Customer: a confirmation with the new customer’s number, name and email.Update CustomerandDelete Customer: a confirmation with the customer number.Get Address: the address details.
You can connect the result to your CRM, a spreadsheet or an agent. The component can also be connected to an Agent as a tool, so the agent finds customers when it needs to. See Tool Mode.
Example
A cosmetics shop wants its email platform to always have up-to-date subscribers.
- Add PrestaShop Customer with the
Get Customersoperation, Query Type set toListand the shop’s PrestaShop credential. - Raise Max Results to the number of customers you have.
- Connect the Data output to a step that keeps only the customers who receive the newsletter.
- Send those customers to your email platform and schedule the flow to run every Monday.
Good practices
- To find a specific customer, use
By Email: it is the detail other tools usually have. - If you only want a customer to stop buying, turn off Active instead of deleting them: that way you keep their order history.
Related components
- PrestaShop Order: look up orders and change their status.
- PrestaShop Product: manage the catalogue’s products.
- PrestaShop Category: manage the catalogue’s categories.