HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Update Customer tags

PUT https://open.shopline.io/v1/customers/{id}/tags

❗️

目前僅提供 APP token 使用,若打不通請改用 Add or Remove Customer tags

Only for developer center APP token. Please use Add or Remove Customer tags for staff Open API token.

To update customer tags with customer IDs.
Each tag mush have at least 3 characters and at most 40 characters.
Each customer can have at most 60 customer tags.
When update with invalid length of tags, the update will fail and the respond will be 422.
When the amount of customer tags exceed 60,
the update will fail and return the current valid tags of that customer with status code 200.

使用顧客ID更新顧客標籤。
每一個顧客標籤必須有最少3個字完及最多40個字完。
每一個顧客最多只能有60個顧客標籤。
若需更新的顧客標籤其中之一不符字完長度規範,更新不會成功及將回傳狀態碼422。 若需更新的顧客標籤超過60個時,
更新將不會成功,且仍會回傳狀態碼200及當前顧客的有效顧客標籤。

Sample Request

curl --request PUT \
     --url https://open.shoplineapp.com/v1/customers/id/tags \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json'

Path Parameters

id Required string Customer's ID
顧客ID

Request Params

tags Required Array of string array of tags to add / remove

Sample Response

{
  "tags": [
    "Custom tag I"
  ]
}