younifyd
Menu

channelCreate

Creates a Channel representing a connection between the shop and an external selling platform account.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the channelCreate action (under Channel).
  3. Fill in the fields below, then reference the result from later steps as {{channelcreate.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 ChannelCreate($input: ChannelCreateInput!) {
  channelCreate(input: $input) {
    channel {
      accountId
      accountName
      activeRegions
      app {
        apiKey
        appStoreAppUrl
        appStoreDeveloperUrl
        availableAccessScopes
        banner
        description
        developerName
        developerType
        developerUrl
        embedded
        failedRequirements
        features
        feedback
        handle
        icon
        id
        installUrl
        installation
        isPostPurchaseAppInUse
        launchUrl
        navigationItems
        optionalAccessScopes
        previouslyInstalled
        pricingDetails
        pricingDetailsSummary
        privacyPolicyUrl
        publicCategory
        published
        requestedAccessScopes
        screenshots
        shopifyDeveloped
        title
        uninstallMessage
        uninstallUrl
        webhookApiVersion
      }
      handle
      id
      marketsCount {
        count
        precision
      }
      name
      navigationItems {
        id
        title
        url
      }
      overviewPath
      resourceFeedback {
        app
        channel
        feedbackGeneratedAt
        link
        messages
        state
      }
      specificationHandle
      supportsFuturePublishing
    }
    userErrors {
      code
      field
      message
    }
  }
}

Variables

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

inputobjectrequired

The input fields for creating the channel.

handlestring
specificationHandlestringrequired
accountIdstringrequired
accountNamestringrequired
json
{
  "input": {
    "specificationHandle": "string",
    "accountId": "string",
    "accountName": "string",
    "handle": "string"
  }
}

Response

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

channelobject
accountIdstring
accountNamestring
activeRegionsarray<object>
appobject35 fields
handlestring
idstring
marketsCountobject2 fields
namestring
navigationItemsarray<object>
overviewPathstring
resourceFeedbackobject6 fields
specificationHandlestring
supportsFuturePublishingboolean
userErrorsarray<object>
codeobject
fieldobject
messageobject

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

Was this page helpful?
channelCreate — Shopify — Documentation