The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Update Order State from ERP",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "update-order-state",
"options": {
"responseMode": "lastNode",
"responseContentType": "application/json"
}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
-760,
-120
],
"name": "Receive ERP Webhook"
},
{
"parameters": {
"resource": "order",
"operation": "getAll",
"filterType": "manual",
"filters": {
"conditions": [
{
"field": "reference",
"value": "={{ $json.body.orderReference }}"
}
]
},
"options": {}
},
"type": "n8n-nodes-prestashopadvanced.prestashop",
"typeVersion": 1,
"position": [
-540,
-120
],
"id": "e327a46a-ad36-4eb9-b67c-130033d5d689",
"name": "Search order by reference"
},
{
"parameters": {
"resource": "order",
"operation": "changeStatus",
"orderId": "={{ $json.orders[0].id }}",
"orderStateId": "={{ $('Receive ERP Webhook').item.json.body.orderStateId }}"
},
"type": "n8n-nodes-prestashopadvanced.prestashop",
"typeVersion": 1,
"position": [
-320,
-120
],
"name": "Change order state"
},
{
"parameters": {
"options": {},
"responseBody": "={ \"success\": true }"
},
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
-100,
-120
],
"name": "Success Response"
}
],
"connections": {
"Receive ERP Webhook": {
"main": [
[
{
"node": "Search order by reference",
"type": "main",
"index": 0
}
]
]
},
"Change order state": {
"main": [
[
{
"node": "Success Response",
"type": "main",
"index": 0
}
]
]
},
"Search order by reference": {
"main": [
[
{
"node": "Change order state",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "1d0d39c2-8cf5-4c94-a632-cc2a74acbca8"
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Update Order State from ERP. Uses n8n-nodes-prestashopadvanced. Webhook trigger; 4 nodes.
Source: https://github.com/prestaalba/n8n-nodes-prestashopadvanced/blob/0deaa5c2b1b21c6ea81f5c4591cd9098f3ff001b/examples/change-order-state-from-webhook.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Shopify Order Data to Airtable
This workflow provides a robust, end-to-end automated pipeline for managing e-commerce orders. It bridges the gap between your storefront and your fulfillment team by handling inventory validation, mu
This n8n workflow helps Shopify store owners and teams automatically confirm orders via WhatsApp. It checks if the customer's number is valid using Rapiwa API, sends a personalized message, and logs e
What Problem Does It Solve? Keeping product data consistent between Shopify and Odoo is a major operational challenge. Manually creating new products in Odoo every time they are added to Shopify is sl