---
title: "Get an array of metafield definitions"
method: GET
path: "/metafield_definitions/customers"
tags: ["Metafield Definitions"]
---

# Get an array of metafield definitions

`GET /metafield_definitions/customers`

## Request

- Base URL: `https://open.shopline.io/v1`
- URL: `https://open.shopline.io/v1/metafield_definitions/customers`
- Auth: HTTP bearer

To get information fo metafield definition attached to customers

## Response `200`

OK

- object
  - `items` MetafieldDefinition[]
    - `id` string: Metafield definition ID
    - `namespace` Namespace (unresolved $ref)
    - `key` Key (unresolved $ref)
    - `name` string: Name
    - `description` string: description
    - `field_type` FieldType (unresolved $ref)
    - `merchant_id` string: Merchant ID
    - `resource_type` 'product' | 'merchant' | 'customer' | 'order' | 'order_item' | 'cart_item': Resource type of the metafield definition
    - `metafield_type` 'merchant' | 'app': Type of metafield definition
    - `created_at` string
    - `updated_at` string

## Changes

- **2026-11-03** `d2518391b149`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/shoplineapp/apis/shopline-open-api/changes/metafield_definitions/customers/get.md)

---

[API](https://skmtc.dev/shoplineapp/apis/shopline-open-api.md) - [All operations](https://skmtc.dev/shoplineapp/apis/shopline-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shoplineapp/apis/shopline-open-api/revisions/d2518391b149?raw)
