PATCH
/
wallets
/
wallet
/
restrict
/
account
/
{accountId}
/
type
/
{restrictionType}
curl --request PATCH \
  --url https://waas-staging.cafeone.ng/api/v1/wallets/wallet/restrict/account/{accountId}/type/{restrictionType} \
  --header 'x-api-key: <api-key>'

Path Parameters

accountId
string
required

Unique identifier for the account

restrictionType
string
required

Type of restriction to apply

Sample Response

✅ Success Response
Status Code: 200 OK


{
  "code": "200",
  "success": true,
  "message": "Wallet restriction applied successfully.",
  "data": {
    // Additional data fields if applicable
  }
}

❌ Error Responses

Status Code: 400 Bad Request
{
  "code": "-1",
  "success": false,
  "message": "The restriction type is invalid",
  "data": null
}

Status Code: 404 Not Found

{
  "code": "404",
  "success": false,
  "message": "Account not found",
  "data": null
}

Status Code: 401 Unauthorized

{
  "code": "401",
  "success": false,
  "message": "Unauthorized access",
  "data": null
}

Status Code: 500 Internal Server Error

{
  "code": "500",
  "success": false,
  "message": "An unexpected error occurred",
  "data": null
}