Chặn ví tĩnh

Chặn ví tĩnh

POST

https://api.fps.pro/invoices/wallet/ban

Định dạng yêu cầuapplication/json

wallet_id

required

uuid

ID ví tĩnh

Ví dụ yêu cầu

curl --request POST 'https://api.fps.pro/invoices/wallet/ban' \
  --header 'Content-Type: application/json' \
  --header 'X-Client-Id: YOUR_CLIENT_ID' \
  --header 'X-Timestamp: 1720000000' \
  --header 'X-Signature: YOUR_HMAC_SHA256_SIGNATURE' \
  --data '{
  "wallet_id": "6fd3f87a-c090-4702-82f9-e70c1323ef92"
}'

Phản hồi thành công

{
  "status": 200,
  "message": "wallet banned"
}

Lỗi

Danh sách lỗi ủy quyền chi tiết nằm trong Ủy quyền - Lỗi

{
  "status": 422,
  "message": "Validation Error",
  "errors": [
    {
      "field": "wallet_id",
      "message": "wallet_id must be UUID"
    }
  ]
}
{
  "status": 404,
  "message": "Wallet not found"
}
{
  "status": 500,
  "message": "Internal Server Error"
}