Shopify - Update Order
Description
Section titled “Description”This module allows updating fields of an existing order (notes, tags, shipping address) and executing administrative actions such as canceling, closing, or reopening orders.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
credentials_id | string | Yes | Shopify credentials ID |
order_id | number | Yes | Order ID |
action | string | No | Action: cancel, close, open |
note | string | No | Order notes |
tags | string | No | Order tags |
email | string | No | Customer email |
phone | string | No | Customer phone |
shipping_address1 | string | No | Shipping address |
shipping_city | string | No | Shipping city |
shipping_province | string | No | Shipping province |
shipping_country | string | No | Shipping country |
shipping_zip | string | No | Shipping postal code |
shipping_first_name | string | No | Recipient first name |
shipping_last_name | string | No | Recipient last name |
cancel_reason | string | No | Cancellation reason |
notify_customer | boolean | No | Notify customer |
restock | boolean | No | Restock on cancel |
Credentials
Section titled “Credentials”| Field | Description |
|---|---|
shop_domain | Store domain (my-store.myshopify.com) |
access_token | Admin API access token |
Available Actions
Section titled “Available Actions”| Action | Description |
|---|---|
cancel | Cancels the order |
close | Closes the order (complete) |
open | Reopens a closed order |
Cancellation Reasons (cancel_reason)
Section titled “Cancellation Reasons (cancel_reason)”| Value | Description |
|---|---|
customer | Requested by the customer |
fraud | Fraudulent order |
inventory | Out of stock |
declined | Payment declined |
other | Other reason |
Output
Section titled “Output”{ "success": true, "order": {}, "order_id": 123456789, "action": "cancelled", "message": "Order 123456789 cancelled successfully"}Usage Example
Section titled “Usage Example”Cancel order
Section titled “Cancel order”{ "credentials_id": "shopify_tienda", "order_id": 123456789, "action": "cancel", "cancel_reason": "customer", "notify_customer": true, "restock": true}Add note to order
Section titled “Add note to order”{ "credentials_id": "shopify_tienda", "order_id": 123456789, "note": "Customer requests urgent shipping. Verified by phone."}Fix shipping address
Section titled “Fix shipping address”{ "credentials_id": "shopify_tienda", "order_id": 123456789, "shipping_address1": "Calle Correcta 123", "shipping_city": "Madrid", "shipping_province": "Madrid", "shipping_country": "Spain", "shipping_zip": "28001"}- Canceling an order is irreversible (it can only be reopened, not “uncancelled”)
- When canceling,
restock: truereturns products to inventory notify_customer: truesends an email to the customer about the cancellation- Closed orders can be reopened, but cancelled orders cannot
- The shipping address can only be modified if the order has not been shipped
- Some fields (like product lines) cannot be modified after creating the order
Related Nodes
Section titled “Related Nodes”- ShopifyGetOrders - Get and search existing orders
- ShopifyGetCustomers - Get order customer data
- ShopifyGetProducts - Get product details in the order