PATCH

Update Order


Updates an order's properties.

Currently, only the following fields can be updated:

  • buyerInfo.email
  • buyerLanguage
  • weightUnit
  • billingInfo.address
  • billingInfo.contactDetails
  • archived
  • attributionSource
  • seenByAHuman
  • recipientInfo.address
  • recipientInfo.contactDetails
  • shippingInfo.logistics.shippingDestination.address
  • shippingInfo.logistics.shippingDestination.contactDetails
  • extendedFields

To update a field's value, include the new value in the order object in the body params. To remove a field's value, pass null.

Notes:

  • Removing buyerInfo or contactDetails results in an error.
  • archived can be set to true or false, but its value can't be removed. For example, to unarchive an order, pass archived: false.
  • To change the address an order is shipped to, update shippingInfo.logistics.shippingDestination. This also updates recipientInfo to match, unless recipientInfo was previously set independently. Updating only recipientInfo changes the final recipient's details without changing the shipping destination. For pickup orders, shippingDestination holds the pickup location, while recipientInfo identifies the final recipient.
  • To modify pricing or line items, use the Draft Orders API.

To update an order's payment status, use Update Payment Status.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Orders
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/ecom/v1/orders/{order.id}

Errors
428Failed Precondition

There are 2 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?