Skip to content

Shopify - Update Order

↩ Part of the Shopify integration.

This module allows updating fields of an existing order (notes, tags, shipping address) and executing administrative actions such as canceling, closing, or reopening orders.

FieldTypeRequiredDescription
credentials_idstringYesShopify credentials ID
order_idnumberYesOrder ID
actionstringNoAction: cancel, close, open
notestringNoOrder notes
tagsstringNoOrder tags
emailstringNoCustomer email
phonestringNoCustomer phone
shipping_address1stringNoShipping address
shipping_citystringNoShipping city
shipping_provincestringNoShipping province
shipping_countrystringNoShipping country
shipping_zipstringNoShipping postal code
shipping_first_namestringNoRecipient first name
shipping_last_namestringNoRecipient last name
cancel_reasonstringNoCancellation reason
notify_customerbooleanNoNotify customer
restockbooleanNoRestock on cancel
FieldDescription
shop_domainStore domain (my-store.myshopify.com)
access_tokenAdmin API access token
ActionDescription
cancelCancels the order
closeCloses the order (complete)
openReopens a closed order
ValueDescription
customerRequested by the customer
fraudFraudulent order
inventoryOut of stock
declinedPayment declined
otherOther reason
{
"success": true,
"order": {},
"order_id": 123456789,
"action": "cancelled",
"message": "Order 123456789 cancelled successfully"
}
{
"credentials_id": "shopify_tienda",
"order_id": 123456789,
"action": "cancel",
"cancel_reason": "customer",
"notify_customer": true,
"restock": true
}
{
"credentials_id": "shopify_tienda",
"order_id": 123456789,
"note": "Customer requests urgent shipping. Verified by phone."
}
{
"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: true returns products to inventory
  • notify_customer: true sends 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
  • ShopifyGetOrders - Get and search existing orders
  • ShopifyGetCustomers - Get order customer data
  • ShopifyGetProducts - Get product details in the order