younifyd
Menu

checkoutAndAccountsConfigurationUpdate

Updates a checkout and accounts configuration.

Use it in a workflow

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

Query

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

graphql
mutation CheckoutAndAccountsConfigurationUpdate($id: ID!, $configuration: CheckoutAndAccountsConfigurationInput!) {
  checkoutAndAccountsConfigurationUpdate(id: $id, configuration: $configuration) {
    configuration {
      branding {
        components
        designTokens
        surfaces
      }
      createdAt
      editedAt
      id
      isPublished
      name
      overrides {
        branding
        createdAt
        editedAt
        id
        name
        updatedAt
      }
      updatedAt
    }
    userErrors {
      code
      field
      message
      reason
    }
  }
}

Variables

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

idstringrequired

The ID of the configuration to update.

configurationobjectrequired

The intended changes to the configuration.

overridesarray<object>2 fields
brandingobject3 fields
json
{
  "id": "string",
  "configuration": {
    "overrides": [
      {
        "id": "string",
        "branding": "string"
      }
    ],
    "branding": {
      "designTokens": {
        "colors": "string",
        "typography": "string",
        "cornerRadius": "string"
      },
      "components": {
        "checkbox": "string",
        "choiceList": "string",
        "control": "string",
        "divider": "string",
        "favicon": "string",
        "shared": "string",
        "headingLevel1": "string",
        "headingLevel2": "string",
        "headingLevel3": "string",
        "merchandiseThumbnail": "string",
        "primaryButton": "string",
        "secondaryButton": "string"
      },
      "surfaces": {
        "checkout": "string",
        "customerAccounts": "string",
        "signIn": "string"
      }
    }
  }
}

Response

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

configurationobject
brandingobject3 fields
createdAtstring
editedAtstring
idstring
isPublishedboolean
namestring
overridesarray<object>
updatedAtstring
userErrorsarray<object>
codeobject
fieldobject
messageobject
reasonobject

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