younifyd
Menu

shopResourceFeedbackCreate

The ResourceFeedback object lets your app report the status of shops and their resources. For example, if your app is a marketplace channel, then you can use resource feedback to alert merchants that they need to…

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the shopResourceFeedbackCreate action (under Shop).
  3. Fill in the fields below, then reference the result from later steps as {{shopresourcefeedbackcreate.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 ShopResourceFeedbackCreate($input: ResourceFeedbackCreateInput!) {
  shopResourceFeedbackCreate(input: $input) {
    feedback {
      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
      }
      channel {
        accountId
        accountName
        activeRegions
        app
        handle
        id
        marketsCount
        name
        navigationItems
        overviewPath
        resourceFeedback
        specificationHandle
        supportsFuturePublishing
      }
      feedbackGeneratedAt
      link {
        label
        url
      }
      messages {
        field
        message
      }
      state
    }
    userErrors {
      code
      field
      message
    }
  }
}

Variables

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

inputobjectrequired

The fields required to create shop feedback.

feedbackGeneratedAtstringrequired
messagesarray<string>
statestringrequired

One ofACCEPTEDREQUIRES_ACTION

channelIdstring
json
{
  "input": {
    "feedbackGeneratedAt": "string",
    "state": "ACCEPTED",
    "messages": [
      "string"
    ],
    "channelId": "string"
  }
}

Response

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

feedbackobject
appobject35 fields
channelobject13 fields
feedbackGeneratedAtstring
linkobject2 fields
messagesarray<object>
statestring

One ofACCEPTEDREQUIRES_ACTION

userErrorsarray<object>
codeobject
fieldobject
messageobject

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