> 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.square.core.GetCustomer

- Component: `appmixer.square.core.GetCustomer`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.square 1.1.3](https://connectors.appmixer.com/connector/appmixer.square/1.1.3.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.square/1.1.3/component/appmixer.square.core.GetCustomer>

Retrieve detailed information for a specific customer by their Id.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Customer Id (`customer_id`) | text | The unique identifier for the customer. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Customer Id (`id`) | string | - |
| Created At (`created_at`) | string | - |
| Updated At (`updated_at`) | string | - |
| Given Name (`given_name`) | string | - |
| Family Name (`family_name`) | string | - |
| Email Address (`email_address`) | string | - |
| Address (`address`) | object | - |
| Phone Number (`phone_number`) | string | - |
| Reference Id (`reference_id`) | string | - |
| Note (`note`) | string | - |
| Preferences (`preferences`) | object | - |
| Creation Source (`creation_source`) | string | - |
| Group Ids (`group_ids`) | array | - |
| Segment Ids (`segment_ids`) | array | - |
| Version (`version`) | number | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.square.core.GetCustomer",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Retrieve detailed information for a specific customer by their Id.",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:square"
  },
  "quota": {
    "manager": "appmixer:square",
    "resources": "requests"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "customer_id": {
            "type": "string"
          }
        },
        "required": [
          "customer_id"
        ]
      },
      "inspector": {
        "inputs": {
          "customer_id": {
            "type": "text",
            "tooltip": "The unique identifier for the customer.",
            "label": "Customer Id",
            "index": 0
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Customer Id",
          "value": "id",
          "schema": {
            "type": "string",
            "example": "JDKYHBWT1D4F8MFH63DBMEN8Y4"
          }
        },
        {
          "label": "Created At",
          "value": "created_at",
          "schema": {
            "type": "string",
            "example": "2024-03-15T10:30:00.000Z"
          }
        },
        {
          "label": "Updated At",
          "value": "updated_at",
          "schema": {
            "type": "string",
            "example": "2024-03-15T12:45:00.000Z"
          }
        },
        {
          "label": "Given Name",
          "value": "given_name",
          "schema": {
            "type": "string",
            "example": "Amelia"
          }
        },
        {
          "label": "Family Name",
          "value": "family_name",
          "schema": {
            "type": "string",
            "example": "Earhart"
          }
        },
        {
          "label": "Email Address",
          "value": "email_address",
          "schema": {
            "type": "string",
            "example": "amelia.earhart@example.com"
          }
        },
        {
          "label": "Address",
          "value": "address",
          "schema": {
            "type": "object",
            "properties": {
              "address_line_1": {
                "type": "string",
                "title": "Address.Address Line 1"
              },
              "address_line_2": {
                "type": "string",
                "title": "Address.Address Line 2"
              },
              "locality": {
                "type": "string",
                "title": "Address.Locality"
              },
              "administrative_district_level_1": {
                "type": "string",
                "title": "Address.Administrative District Level 1"
              },
              "postal_code": {
                "type": "string",
                "title": "Address.Postal Code"
              },
              "country": {
                "type": "string",
                "title": "Address.Country"
              }
            },
            "example": {
              "address_line_1": "500 Electric Ave",
              "address_line_2": "Suite 200",
              "locality": "New York",
              "administrative_district_level_1": "NY",
              "postal_code": "10003",
              "country": "US"
            }
          }
        },
        {
          "label": "Phone Number",
          "value": "phone_number",
          "schema": {
            "type": "string",
            "example": "+12125551234"
          }
        },
        {
          "label": "Reference Id",
          "value": "reference_id",
          "schema": {
            "type": "string",
            "example": "YOUR_REFERENCE_ID"
          }
        },
        {
          "label": "Note",
          "value": "note",
          "schema": {
            "type": "string",
            "example": "VIP customer, prefers email contact"
          }
        },
        {
          "label": "Preferences",
          "value": "preferences",
          "schema": {
            "type": "object",
            "properties": {
              "email_unsubscribed": {
                "type": "boolean",
                "title": "Preferences.Email Unsubscribed"
              }
            },
            "example": {
              "email_unsubscribed": false
            }
          }
        },
        {
          "label": "Creation Source",
          "value": "creation_source",
          "schema": {
            "type": "string",
            "example": "THIRD_PARTY"
          }
        },
        {
          "label": "Group Ids",
          "value": "group_ids",
          "schema": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "590GKCQNG3EKQH4EBA1AGA6M50"
            ]
          }
        },
        {
          "label": "Segment Ids",
          "value": "segment_ids",
          "schema": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "GSJK28DCEJ3TT0M3SSRDEQ49W4"
            ]
          }
        },
        {
          "label": "Version",
          "value": "version",
          "schema": {
            "type": "number",
            "example": 3
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
