POST
/
api
/
loyalty
/
badges
/
{id}
/
revoke
curl --request POST \
  --url https://admin.snagsolutions.io/api/loyalty/badges/{id}/revoke \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "userId": "123e4567-e89b-12d3-a456-426614174333",
  "walletAddress": "0x1234567890abcdef1234567890abcdef12345678"
}'
{
  "message": "<string>",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "loyaltyBadgeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "active"
  }
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

UUID of the badge (converted to lowercase)

Example:

"123e4567-e89b-12d3-a456-426614174333"

Body

application/json
Body
userId
string

UUID of the user (converted to lowercase)

Example:

"123e4567-e89b-12d3-a456-426614174333"

walletAddress
string

Validated and formatted wallet address

Example:

"0x1234567890abcdef1234567890abcdef12345678"

Response

200
application/json
200

Response returned upon successful update of the user badge

message
string
required

The message returned upon update of the badge

data
object
required