younifyd
Menu

storeAddresses

Search for StoreAddress entities.

Use it in a workflow

  1. Add a step and choose the Fluent Commerce connector.
  2. Pick the storeAddresses action (under Store).
  3. Fill in the fields below, then reference the result from later steps as {{storeaddresses.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query StoreAddresses($after: String, $before: String, $city: [String], $companyName: [String], $country: [String], $createdOn: DateRange, $directions: [String], $first: Int, $last: Int, $latitude: [Float], $longitude: [Float], $name: [String], $postcode: [String], $ref: [String], $region: [String], $state: [String], $street: [String], $timeZone: [String], $type: [String], $updatedOn: DateRange) {
  storeAddresses(
    after: $after
    before: $before
    city: $city
    companyName: $companyName
    country: $country
    createdOn: $createdOn
    directions: $directions
    first: $first
    last: $last
    latitude: $latitude
    longitude: $longitude
    name: $name
    postcode: $postcode
    ref: $ref
    region: $region
    state: $state
    street: $street
    timeZone: $timeZone
    type: $type
    updatedOn: $updatedOn
  ) {
    edges {
      cursor
      node {
        city
        companyName
        country
        createdOn
        directions
        id
        latitude
        location
        longitude
        name
        postcode
        ref
        region
        state
        street
        timeZone
        type
        updatedOn
      }
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
    }
  }
}

Variables

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

afterstring

Returns the elements in the list that come after the specified global ID

beforestring

Returns the elements in the list that come before the specified global ID

cityarray<string>

City

companyNamearray<string>

Company name

countryarray<string>

Country

createdOnobject
fromstring
tostring
directionsarray<string>

Directions to store location (may be used for landmarks)

firstnumber

Returns the first n elements from the list

lastnumber

Returns the last n elements from the list

latitudearray<number>

Latitude

longitudearray<number>

Longitude

namearray<string>

Name

postcodearray<string>

Postcode

refarray<string>

Location reference

regionarray<string>

Region

statearray<string>

State

streetarray<string>

Street

timeZonearray<string>

Timezone

typearray<string>

Type of Address, to support legacy address, the value can be AGENT and ORDER

updatedOnobject
fromstring
tostring
json
{
  "after": "string",
  "before": "string",
  "city": [
    "string"
  ],
  "companyName": [
    "string"
  ],
  "country": [
    "string"
  ],
  "createdOn": {
    "from": "string",
    "to": "string"
  },
  "directions": [
    "string"
  ],
  "first": 0,
  "last": 0,
  "latitude": [
    0
  ],
  "longitude": [
    0
  ],
  "name": [
    "string"
  ]
}

Response

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

edgesarray<object>
cursorobject
nodeobject
pageInfoobject
hasNextPageboolean
hasPreviousPageboolean

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

Was this page helpful?