younifyd
Menu

locationAdd

Adds a new Location where you can stock inventory and fulfill orders. Locations represent physical places like warehouses, retail stores, or fulfillment centers.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the locationAdd action (under Location).
  3. Fill in the fields below, then reference the result from later steps as {{locationadd.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 LocationAdd($input: LocationAddInput!) {
  locationAdd(input: $input) {
    location {
      activatable
      address {
        address1
        address2
        city
        country
        countryCode
        formatted
        latitude
        longitude
        phone
        province
        provinceCode
        zip
      }
      addressVerified
      createdAt
      deactivatable
      deactivatedAt
      deletable
      fulfillmentService {
        callbackUrl
        fulfillmentOrdersOptIn
        handle
        id
        inventoryManagement
        location
        requiresShippingMethod
        serviceName
        trackingSupport
        type
      }
      fulfillsOnlineOrders
      hasActiveInventory
      hasUnfulfilledOrders
      id
      isActive
      isFulfillmentService
      isPrimary
      legacyResourceId
      localPickupSettingsV2 {
        instructions
        pickupTime
      }
      name
      shipsInventory
      suggestedAddresses {
        address1
        address2
        city
        country
        countryCode
        formatted
        province
        provinceCode
        zip
      }
      updatedAt
    }
    userErrors {
      code
      field
      message
    }
  }
}

Variables

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

inputobjectrequired

The properties of the location to add.

namestringrequired
addressobjectrequired7 fields
fulfillsOnlineOrdersboolean
metafieldsarray<object>5 fields
json
{
  "input": {
    "name": "string",
    "address": {
      "countryCode": "AF",
      "address1": "string",
      "address2": "string",
      "city": "string",
      "phone": "string",
      "zip": "string",
      "provinceCode": "string"
    },
    "fulfillsOnlineOrders": false,
    "metafields": [
      {
        "id": "string",
        "namespace": "string",
        "key": "string",
        "value": "string",
        "type": "string"
      }
    ]
  }
}

Response

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

locationobject
activatableboolean
addressobject12 fields
addressVerifiedboolean
createdAtstring
deactivatableboolean
deactivatedAtstring
deletableboolean
fulfillmentServiceobject10 fields
fulfillsOnlineOrdersboolean
hasActiveInventoryboolean
hasUnfulfilledOrdersboolean
idstring
isActiveboolean
isFulfillmentServiceboolean
isPrimaryboolean
legacyResourceIdstring
localPickupSettingsV2object2 fields
namestring
shipsInventoryboolean
suggestedAddressesarray<object>
updatedAtstring
userErrorsarray<object>
codeobject
fieldobject
messageobject

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