younifyd
Menu

Get customers/companies

Get customers/companies

GET/V1/customers/companies

Use it in a workflow

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

Request

Query parameters

criteria[filterGroups][0][filters][0][field]string

Field

criteria[filterGroups][0][filters][0][value]string

Value

criteria[filterGroups][0][filters][0][conditionType]string

Condition type

criteria[sortOrders][0][field]string

Sorting field.

criteria[sortOrders][0][direction]string

Sorting direction.

criteria[pageSize]integer

Page size.

criteria[currentPage]integer

Current page.

Response

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

itemsarray<object>

Company customer attributes list

customer_idinteger

Customer ID.

company_idinteger

Company ID.

job_titlestring

Job title.

statusinteger

Customer status.

telephonestring

Telephone.

is_defaultboolean

Is default

extension_attributesobject

ExtensionInterface class for @see \Magento\Company\Api\Data\CompanyCustomerInterface

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": [
    {
      "customer_id": 0,
      "company_id": 0,
      "job_title": "string",
      "status": 0,
      "telephone": "string",
      "is_default": false,
      "extension_attributes": {}
    }
  ],
  "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.

Get customers/companies — Adobe Commerce — Documentation