Tags
Get Tags
Tags
Get Tags
This section describes endpoints that enable a third party to fetch and update a user's tags. This endpoint describes all attribute tags for the given user.
GET
/tags
Bearer*
curl --request GET \
--url https://api.thanx.com/tags \
--header 'Authorization: Bearer <token>'
Parameters
merchant_id
string
Only return tags for this merchant
Response
id
string
Tag ID
user_id
string
User ID
merchant_id
string
Merchant ID
key
string
Tag key
values
array(string)
Array of attribute tags
curl https://api.thanxsandbox.com/tags \
-X PUT \
$AUTH_HEADERS
-d '{
"tag": {
"key": "allergens",
"merchant_id": "weroifs",
"values": [
"gluten",
"soy",
"dairy",
"honey"
]
}
}'
{
"tags": [
{
"id": "92b7b0dac4",
"user_id": "werofsdf",
"merchant_id": "weroif",
"key": "allergens",
"values": ["gluten", "soy", "dairy"]
}
]
}
curl https://api.thanxsandbox.com/tags \
-X PUT \
$AUTH_HEADERS
-d '{
"tag": {
"key": "allergens",
"merchant_id": "weroifs",
"values": [
"gluten",
"soy",
"dairy",
"honey"
]
}
}'
{
"tags": [
{
"id": "92b7b0dac4",
"user_id": "werofsdf",
"merchant_id": "weroif",
"key": "allergens",
"values": ["gluten", "soy", "dairy"]
}
]
}