v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Customer Metafields

Get metafields attached to specific customer

To get information of metafield attached to specific customer

get/customers/{customer_id}/metafields

Path parameters

customer_idstring required

Customer ID

Query parameters

filters[]string[]

Search criteria<br> In format of {namespace}.{key}:{value}<br> {namespace} - required<br> {key} - required<br> {value} - optional<br>

[
  "shopline.discount:10"
]

Response

OK

Example response

{
  "items": [
    {
      "id": "5ad86757e38809441400001b",
      "namespace": "sales",
      "key": "discount",
      "field_type": "number_integer",
      "field_value": 10,
      "created_at": "2021-12-01T03:12:11.666+00:00",
      "updated_at": "2021-12-02T09:35:12.555+00:00",
      "metafield_type": "merchant",
      "resource_id": "62f9f0c76f4ae6001e4b00f2",
      "resource_type": "product",
      "merchant_id": "66418472bcba497f92f3a168"
    }
  ]
}