Creating Orders
So far, we have only worked with fetching data via the Order API. This section explains how you can create an order using the API.
In order to perform these operations, ensure that you have the proper authentication (if necessary) and user permissions.
In order to create an order via the API, we’ll be using GraphQL mutations. The example mutation below takes information about the customer and the cart, as well as the payment details. Once an order is created, you get back the order ID.