Menu
customerAddresses
Search for CustomerAddress entities.
Use it in a workflow
- Add a step and choose the Fluent Commerce connector.
- Pick the customerAddresses action (under Customer).
- Fill in the fields below, then reference the result from later steps as
{{customeraddresses.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.
query CustomerAddresses($after: String, $before: String, $city: [String], $companyName: [String], $country: [String], $createdOn: DateRange, $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) {
customerAddresses(
after: $after
before: $before
city: $city
companyName: $companyName
country: $country
createdOn: $createdOn
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
id
latitude
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.
{
"after": "string",
"before": "string",
"city": [
"string"
],
"companyName": [
"string"
],
"country": [
"string"
],
"createdOn": {
"from": "string",
"to": "string"
},
"first": 0,
"last": 0,
"latitude": [
0
],
"longitude": [
0
],
"name": [
"string"
],
"postcode": [
"string"
]
}
Response
Read the result with {{customeraddresses.response.data.data.customerAddresses}}. If the API returns errors, the step fails and they are at {{customeraddresses.response.data.errors}}.
Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?