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
}

Documentation Index

Fetch the complete documentation index at: https://docs-alpha.pepay.io/llms.txt

Use this file to discover all available pages before exploring further.

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.