TanqoryDocs

cartCompletionAttempt

  • Query
  • Storefront

Returns the current state of a checkout completion started by cartSubmitForCompletion: still processing, needing a buyer action, failed, or done with the new order. Poll it with the attemptId from the submit.

Arguments

ArgumentTypeRequiredDefault
attemptIdString!Required

Returns

CartCompletionAttemptResult The state of a checkout completion attempt: processing, waiting for a buyer action, failed with errors, or succeeded with the new order.

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_STOREFRONT_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://$STORE_HOST/api/v1/stores/$STORE_ID/2026-10/graphql" \
  -H "X-Tanqory-Storefront-Access-Token: $TANQORY_STOREFRONT_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query CartCompletionAttempt($attemptId: String!) {\n  cartCompletionAttempt(attemptId: $attemptId) {\n    __typename\n  }\n}","variables":{"attemptId":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10