Submit Cart

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.

mutation SubmitCart($id: ID!) {
  orderSubmit(id: $id) {
    id
    # Query the fields you need from Order type
  }
}

Example:

{
    "id": "cart_ZMe6Bb4GqqUe3BWV"
}

Input Parameters for orderSubmit

  • id: The ID of the cart you want to submit.

Types

Order

  • 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.