You can use the orderSubmit function to finalize and submit your cart, which will then be converted into an order. This function takes the ID of the cart you want to submit.After submitting the cart, the function provides the resulting Order as the output.
Copy
mutation SubmitCart($id: ID!) { orderSubmit(id: $id) { id # Query the fields you need from Order type }}
Contains details about the finalized order, including items, addresses, payment details, and other relevant information. You can refer to the Order type in the schema for a complete list of fields and their descriptions.