Menu
checkoutAndAccountsConfigurationUpdate
Updates a checkout and accounts configuration.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the checkoutAndAccountsConfigurationUpdate action (under Checkout).
- 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.
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.
{
"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}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?