younifyd
Menu

shopPolicyUpdate

Updates a shop policy.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the shopPolicyUpdate action (under Shop).
  3. Fill in the fields below, then reference the result from later steps as {{shoppolicyupdate.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 ShopPolicyUpdate($shopPolicy: ShopPolicyInput!) {
  shopPolicyUpdate(shopPolicy: $shopPolicy) {
    shopPolicy {
      body
      createdAt
      id
      title
      type
      updatedAt
      url
    }
    userErrors {
      code
      field
      message
    }
  }
}

Variables

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

shopPolicyobjectrequired

The properties to use when updating the shop policy.

typestringrequired

One ofREFUND_POLICYSHIPPING_POLICYPRIVACY_POLICYTERMS_OF_SERVICETERMS_OF_SALELEGAL_NOTICESUBSCRIPTION_POLICYCONTACT_INFORMATION

bodystringrequired
json
{
  "shopPolicy": {
    "type": "REFUND_POLICY",
    "body": "string"
  }
}

Response

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

shopPolicyobject
bodystring
createdAtstring
idstring
titlestring
typestring

One ofREFUND_POLICYSHIPPING_POLICYPRIVACY_POLICYTERMS_OF_SERVICETERMS_OF_SALELEGAL_NOTICESUBSCRIPTION_POLICYCONTACT_INFORMATION

updatedAtstring
urlstring
userErrorsarray<object>
codeobject
fieldobject
messageobject

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

shopPolicyUpdate — Shopify — Documentation