younifyd
Menu

Get customers/search

Get customers/search

GET/V1/customers/search

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Get customers/search action (under Customers).
  3. Fill in the fields below, then reference the result from later steps as {{getCustomersSearch.response.data}}.

Request

Query parameters

searchCriteria[filterGroups][0][filters][0][field]string

Field

searchCriteria[filterGroups][0][filters][0][value]string

Value

searchCriteria[filterGroups][0][filters][0][conditionType]string

Condition type

searchCriteria[sortOrders][0][field]string

Sorting field.

searchCriteria[sortOrders][0][direction]string

Sorting direction.

searchCriteria[pageSize]integer

Page size.

searchCriteria[currentPage]integer

Current page.

Response

Returns 200 with an object. Read it in later steps with {{getCustomersSearch.response.data.<field>}}.

itemsarray<object>

Customers list.

idinteger

Customer id

group_idinteger

Group id

default_billingstring

Default billing address id

default_shippingstring

Default shipping address id

confirmationstring

Confirmation

created_atstring

Created at time

updated_atstring

Updated at time

created_instring

Created in area

dobstring

In keeping with current security and privacy best practices, be sure you are aware of any potential legal and security risks associated with the storage of customers’ full date of birth (month, day, year) along with other personal identifiers (e.g., full name) before collecting or processing such data.

emailstringrequired

Email address

firstnamestringrequired

First name

lastnamestringrequired

Last name

middlenamestring

Middle name

prefixstring

Prefix

suffixstring

Suffix

genderinteger

Gender

store_idinteger

Store id

taxvatstring

Tax Vat

website_idinteger

Website id

addressesarray<object>21 fields

Customer addresses.

disable_auto_group_changeinteger

Disable auto group change flag.

extension_attributesobject4 fields

ExtensionInterface class for @see \Magento\Customer\Api\Data\CustomerInterface

custom_attributesarray<object>2 fields

Custom attributes values.

search_criteriaobject

Search criteria interface.

filter_groupsarray<object>required1 fields

A list of filter groups.

sort_ordersarray<object>2 fields

Sort order.

page_sizeinteger

Page size.

current_pageinteger

Current page.

total_countinteger

Total count.

json
{
  "items": [
    {
      "email": "string",
      "firstname": "string",
      "lastname": "string",
      "id": 0,
      "group_id": 0,
      "default_billing": "string",
      "default_shipping": "string",
      "confirmation": "string",
      "created_at": "string",
      "updated_at": "string",
      "created_in": "string",
      "dob": "string"
    }
  ],
  "search_criteria": {
    "filter_groups": [
      {
        "filters": [
          {
            "field": "string",
            "value": "string",
            "condition_type": "string"
          }
        ]
      }
    ],
    "sort_orders": [
      {
        "field": "string",
        "direction": "string"
      }
    ],
    "page_size": 0,
    "current_page": 0
  },
  "total_count": 0
}

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