Skip to main content
POST
/
api
/
v1
/
merchant
/
tokens
/
{tokenId}
/
block
Block or unblock a specific token
curl --request POST \
  --url https://api-beta.pepay.io/api/v1/merchant/tokens/{tokenId}/block \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "blocked": true
}
'
{
  "success": true,
  "blocked": true
}

Authorizations

Authorization
string
header
required

JWT token for wallet authentication

Path Parameters

tokenId
integer
required

Supported token ID (positive integer).

Body

application/json
blocked
boolean

True to block the token, false to unblock

Response

Token block status updated successfully

success
boolean
Example:

true

blocked
boolean

Whether the token is now blocked.