The Order modifications feature allows you to edit an order in different ways, either due to customer requests, product unavailability, or other reasons. These are the main order modifications that can be made:
- Add: Increase the number of items or add new products.
- Remove: Remove the partial or total number of items.
- Weight change: Adjust the weight assigned to items.
- Replace items: Replace items, including those priced by weight.
- Price change: Change the order total amount.
For detailed instructions on each action, read the How to modify orders documentation. This article covers other aspects of Order modifications and is structured as follows:
Modifications through the VTEX Admin and API
You can modify an order in two ways; see details in the table below:
How to modify | Description | Changeable status |
---|---|---|
Via the VTEX Admin | Modifications are made from the order details page, which can be accessed under Orders > All orders, by selecting the desired order.You can also access the order using the search bar at the top of the VTEX Admin. To do this, click the bar, select the Orders option, and use any of the following criteria:
|
|
Via API | Modifications using the endpoints: |
|
The order's change history is recorded on its details page in the History of changed items section. To view this information via API, use the Get order modifications history endpoint.
General characteristics
Order modifications has specific characteristics, as shown in the table below:
Characteristic | Description |
---|---|
Number of order modifications | There is no limit to how many times an order can be modified. |
Incomplete orders | You cannot modify incomplete orders — those lacking necessary information to be processed by the VTEX platform. |
Franchise accounts | You can modify orders where the seller is a franchise account. |
VTEX marketplace, certified, partner and external marketplaces | Modifying orders works differently across various marketplace scenarios on VTEX:
|
Reservation | In order modifications scenarios, item reservation is automatic. |
Inventory update | When you modify an order, the store's inventory is not updated automatically. The store must update the inventory in the VTEX Admin under Catalog > Inventory > Inventory Management or via API, using the Update inventory by SKU and warehouse endpoint. |
License Manager permission | For a user to be able to modify orders, their role must be associated with at least one of the following Licence Manager resources:
|
Price changes
When a modification to an order item increases or decreases the original amount of the purchase, the Orders module automatically communicates with Payments as follows:
- Lower price after a modification: The behavior depends on the payment status in the transaction flow.
- If the payment has already been settled (
settled
status), the payment gateway is notified to reverse the amount that must be returned to the customer. - If the payment hasn't been settled yet, the gateway is notified to update the order total.
- If the payment has already been settled (
- Higher price after a modification: A notification is sent to the payment gateway to request the customer to pay the additional amount.
See the table below for more information on payment and invoicing when modifying orders:
Characteristic | Description |
---|---|
Conditions for increasing the order amount | You can only increase the amount of an order when it meets the following criteria:
|
Modifications of settled order | In the transaction flow, the order can be modified to settled , provided it meets the following conditions:
finished cannot be modified. |
Shared transaction between sellers and marketplace | You can modify orders with more than one seller and payment in marketplaces, i.e., in split payment scenarios. |
Discounts | You cannot modify an order by applying discounts greater than or equal to the total amount of the original order. |
Invoice | For invoices, order modifications behave as follows:
|