cURL
curl --request PUT \ --url https://api.bspk.com/api/platform/v1/shoppers/{shopper_ref}/metafields \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "metafields": [ { "namespace": "custom", "key": "loyalty_tier", "value": "gold", "value_type": "single_line_text_field", "is_list": false } ] } '
[ { "id": 123, "namespace": "<string>", "key": "<string>", "value": "<string>", "value_type": "<string>", "is_list": true, "created_at": "<string>", "updated_at": "<string>", "json_value": null } ]
Creates or updates metafields for the specified shopper. Metafields are matched by namespace and key.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Shopper external ID
Show child attributes
Successful upsert, returns all metafields