> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.shopify.customers.CountCustomers

- Component: `appmixer.shopify.customers.CountCustomers`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.shopify 4.1.0](https://connectors.appmixer.com/connector/appmixer.shopify/4.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.shopify/4.1.0/component/appmixer.shopify.customers.CountCustomers>

Count the customers of the store, optionally only those created or updated in a time range.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Created After (`createdAtMin`) | date-time | Count only customers created at or after this time. |
| Created Before (`createdAtMax`) | date-time | Count only customers created at or before this time. |
| Updated After (`updatedAtMin`) | date-time | Count only customers updated at or after this time. |
| Updated Before (`updatedAtMax`) | date-time | Count only customers updated at or before this time. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Count (`count`) | integer | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.shopify.customers.CountCustomers",
  "description": "Count the customers of the store, optionally only those created or updated in a time range.",
  "author": "Jimoh Damilola <jimoh@client.io>",
  "private": false,
  "auth": {
    "service": "appmixer:shopify",
    "scope": [
      "read_customers"
    ]
  },
  "quota": {
    "manager": "appmixer:shopify",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "createdAtMin": {
            "type": "string",
            "format": "date-time"
          },
          "createdAtMax": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtMin": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtMax": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "inspector": {
        "inputs": {
          "createdAtMin": {
            "type": "date-time",
            "label": "Created After",
            "index": 0,
            "tooltip": "Count only customers created at or after this time."
          },
          "createdAtMax": {
            "type": "date-time",
            "label": "Created Before",
            "index": 1,
            "tooltip": "Count only customers created at or before this time."
          },
          "updatedAtMin": {
            "type": "date-time",
            "label": "Updated After",
            "index": 2,
            "tooltip": "Count only customers updated at or after this time."
          },
          "updatedAtMax": {
            "type": "date-time",
            "label": "Updated Before",
            "index": 3,
            "tooltip": "Count only customers updated at or before this time."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "required": [
          "count"
        ],
        "properties": {
          "count": {
            "type": "integer",
            "title": "Count",
            "example": 42
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
