GET

/tags

Bearer*

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"]
    }
  ]
}