---
title: cartPrepareForCompletion - Storefront API
description: Prepare the cart for cart checkout completion.
api_version: 2026-04
source_url:
  html: https://shopify.dev/docs/api/storefront/latest/mutations/cartPrepareForCompletion
  md: https://shopify.dev/docs/api/storefront/latest/mutations/cartPrepareForCompletion.md
---

# cart​Prepare​For​Completion

mutation

Prepare the cart for cart checkout completion.

## Arguments

* cart​Id

  [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID)

  required

  The ID of the cart.

***

## Cart​Prepare​For​Completion​Payload returns

* result

  [Cart​Prepare​For​Completion​Result](https://shopify.dev/docs/api/storefront/latest/unions/CartPrepareForCompletionResult)

  The result of cart preparation for completion.

* user​Errors

  [\[Cart​User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartUserError)

  non-null

  The list of errors that occurred from executing the mutation.

***

## Examples

* ### cartPrepareForCompletion reference