Skip to content

Magento - Update Order

This module allows performing actions on orders: add comments, cancel, hold, invoice, create shipments, and refunds.

FieldTypeRequiredDescription
credentials_idstringYesCredentials ID
order_idstringYesOrder ID (entity_id)
actionstringNoAction to perform
statusstringNoNew status
commentstringNoOrder comment
notify_customerbooleanNoNotify the customer
visible_on_frontbooleanNoVisible to customer
tracking_numberstringNoTracking number
carrier_codestringNoCarrier code
carrier_titlestringNoCarrier name
capture_paymentbooleanNoCapture payment when invoicing
FieldDescription
store_urlMagento store base URL (e.g.: https://mystore.com)
access_tokenIntegration access token with sales write permissions
ValueDescription
(empty)Only add comment
cancelCancel order
holdHold order
unholdRelease order
invoiceCreate invoice
shipCreate shipment
refundCreate refund
CodeName
upsUPS
fedexFedEx
dhlDHL
uspsUSPS
customCustom
{
"success": true,
"order_id": "123",
"order": {},
"current_status": "processing",
"actions_performed": ["comment_added", "invoice_created"],
"invoice_id": 45,
"message": "Order 100000001 updated: comment_added, invoice_created"
}
{
"credentials_id": "magento_tienda",
"order_id": "123",
"action": "ship",
"tracking_number": "1Z999AA10123456784",
"carrier_code": "ups",
"carrier_title": "UPS",
"notify_customer": true
}
{
"credentials_id": "magento_tienda",
"order_id": "123",
"action": "cancel",
"comment": "Cancelled at customer request"
}
{
"credentials_id": "magento_tienda",
"order_id": "123",
"action": "invoice",
"capture_payment": true,
"notify_customer": true
}
  • Not all statuses allow all actions
  • The invoice requires the order to be in processing
  • Shipment requires the order to be invoiced
  • Refund requires the order to be invoiced
  • Comments are added to the order history
  • MagentoGetOrders - Get orders to update
  • MagentoGetCustomers - Get order customer data
  • MagentoGetProducts - Get order product data