younifyd
Menu

cartCompletionAttempt

A poll for the status of the cart checkout completion and order creation.

Use it in a workflow

  1. Add a step and choose the Shopify Storefront connector.
  2. Pick the cartCompletionAttempt action (under Cart).
  3. Fill in the fields below, then reference the result from later steps as {{cartcompletionattempt.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query CartCompletionAttempt($attemptId: String!) {
  cartCompletionAttempt(attemptId: $attemptId)
}

Variables

Pass these as a JSON object in the step's Variables field.

attemptIdstringrequired

The ID of the attempt.

json
{
  "attemptId": "string"
}

Response

Read the result with {{cartcompletionattempt.response.data.data.cartCompletionAttempt}}. If the API returns errors, the step fails and they are at {{cartcompletionattempt.response.data.errors}}.

actionobject

This field can return one of several different object shapes — properties from every possible shape are shown together.

redirectUrlstring
idstring
errorsarray<object>
codeobject
messageobject
pollDelaynumber
completedAtstring
orderIdstring
orderUrlstring

Need more? See the Shopify Storefront guide for connection setup and behaviour shared by every action.

Was this page helpful?