PrestaShop Order
PrestaShop Order connects your flow to your PrestaShop store’s orders. With it you can get the list of orders, the orders from the last 24 hours or one specific order with its products, and change an order’s status, for example to shipped or delivered.
It is useful to take orders to other systems, such as your invoicing or shipping software, and to update the store when those systems move the order forward.
When to use it
- Every morning you want a summary of the last day’s orders.
- You want to send each new order to your invoicing software with its products and amounts.
- When the carrier confirms delivery, you want to mark the order as delivered in the store.
- An AI agent helps customers and needs to check the status of their order.
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 orders, order states and order history. 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 Orders. |
| Query Type | Only in Get Orders. List returns a list of orders; By ID returns one specific order; Recent (24h) returns the orders from the last 24 hours, newest first. Default: List. |
| Order ID | The order’s number in PrestaShop. Required in Get Orders with By ID and in Update Order Status. |
| Max Results | Only in Get Orders with List or Recent (24h). The maximum number of orders to return. Default: 50. |
| New Order Status | Only in Update Order Status. The order’s new status. The list loads when you choose the credential, with the statuses set up in your store. |
Operations
| Operation | What it does |
|---|---|
Get Orders | Returns a list of orders (List), those from the last 24 hours (Recent (24h)) or one order with its products (By ID). |
Update Order Status | Changes an order’s status. The change is recorded in the order’s history, just as if you made it from the PrestaShop panel. |
Output
The Data output depends on the operation:
Get OrderswithListorRecent (24h): one item per order with its number, reference, current status number, amount paid (with and without tax), customer number, payment method and date.Get OrderswithBy ID: the same details plus discounts, shipping costs, the shipping and billing addresses, the date of the last change and the list of products with their quantity and price.Update Order Status: a confirmation with the order number and the number of the new status.
You can connect the result to your invoicing software, a spreadsheet, an email or an agent. To find out who placed an order, use the customer number with PrestaShop Customer. The component can also be connected to an Agent as a tool. See Tool Mode.
Example
A wine shop sends the warehouse team the previous day’s orders every morning.
- Add PrestaShop Order with the
Get Ordersoperation and the shop’s PrestaShop credential. - In Query Type choose
Recent (24h)and leave Max Results at 50. - Connect the Data output to an agent that prepares a summary with each order’s reference, amount and payment method.
- Email the summary to the warehouse and schedule the flow to run every day at 8:00.
Related components
- PrestaShop Customer: manage the store’s customers.
- PrestaShop Product: manage the catalogue’s products.
- PrestaShop Category: manage the catalogue’s categories.