set_customer_metafield
Upsert a customer metafield in Shopify using customer ID, key, value, and optional namespace/type.
Instructions
Create or update a customer metafield using metafieldsSet (upsert).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes | The numeric Shopify customer ID (or GID). | |
| namespace | No | Metafield namespace. | |
| key | Yes | Metafield key. | |
| value | Yes | Metafield value. | |
| type | No | Metafield type (required when creating new). |