This endpoint simply creates a new cart list for the customer, which will include the same items as any previous order. When customers are signed in to their account, they have the option to easily place a repeated order with one click. As a result, the customer will be sent to the checkout page with a new cart list that includes the previous order's items.Payload authenticated
#
CreateCartFromOrderPayload
The id of the order to be re-ordered.
Response#
order.createOrderFromCart.success
Usage#
To allow the customer to place the same order again, the developer may call the createCartFromOrder()
method along with the order_id
.Events#
This endpoint may trigger two events, the onOrderCreated and onOrderCreationFailed events.onOrderCreated#
This event is triggered when the request of placing the same order again is done without having any errors coming back from the backend.onOrderCreationFailed#
This event is triggered when the request of placing the same order again is not completed and an error has occurred. Modified at 2024-02-18 12:50:14