Updates an order.
The updateOrder() function returns a Promise that resolves when the specified order's information is updated.
Currently, the following fields can be updated:
order.buyerInfo.emailorder.buyerLanguageorder.weightUnitorder.billingInfo.addressorder.billingInfo.contactDetailsorder.archivedorder.attributionSourceorder.seenByAHumanorder.recipientInfo.addressorder.recipientInfo.contactDetailsorder.shippingInfo.logistics.shippingDestination.addressorder.shippingInfo.logistics.shippingDestination.contactDetailsTo update a field's value, include the new value in the order object in the method parameters.
To remove a field's value, pass null.
Note: Removing buyerInfo or contactDetails fields results in an error.
To update an order's payment status, use updatePaymentStatus( ).
This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:
Order ID.
There are 2 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.