Skip to content

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.

FieldWhat it does
Credential (required)The PrestaShop credential used to access your store.
OperationWhat the component does. See Operations. Default: Get Customers.
Query TypeOnly 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 IDThe customer’s number in PrestaShop. Required in Get Customers with By ID, Update Customer and Delete Customer.
Search EmailOnly in Get Customers with By Email. The email of the customer you are looking for.
Max ResultsOnly 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 SubscriptionOnly in Create Customer and Update Customer. Whether the customer receives the newsletter. Default: off.
ActiveOnly in Create Customer and Update Customer. Whether the customer’s account is active. Default: on.
Address IDOnly in Get Address. The number of the address you want to look up.

Operations

OperationWhat it does
Get CustomersReturns a list of customers (List), one customer by number (By ID) or by email (By Email).
Create CustomerAdds a new customer to the store.
Update CustomerChanges an existing customer’s details. Newsletter Subscription and Active are always applied, so check their values.
Delete CustomerDeletes the customer with that number.
Get AddressReturns 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. With List you get one item per customer; with By Email you get the first customer with that email.
  • Create Customer: a confirmation with the new customer’s number, name and email.
  • Update Customer and Delete 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.

  1. Add PrestaShop Customer with the Get Customers operation, Query Type set to List and the shop’s PrestaShop credential.
  2. Raise Max Results to the number of customers you have.
  3. Connect the Data output to a step that keeps only the customers who receive the newsletter.
  4. 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.