> ## Documentation Index
> Fetch the complete documentation index at: https://developer.embedly.ng/llms.txt
> Use this file to discover all available pages before exploring further.

# Restrict by AccountID

> The endpoint restricts a specified wallet based on the account ID and restriction type.

## Path Parameters

<ParamField path="accountId" type="string" required>
  Unique identifier for the account
</ParamField>

<ParamField path="restrictionType" type="string" required>
  Type of restriction to apply
</ParamField>

<ResponseExample>
  ```json 200 Success theme={null}
  {
  	"code": "200",
  	"success": true,
  	"message": "Wallet restriction applied successfully.",
  	"data": {
  		// Additional data fields if applicable
  	}
  }
  ```

  ```json 400 Bad Request theme={null}
  {
  	"code": "-1",
  	"success": false,
  	"message": "The restriction type is invalid",
  	"data": null
  }
  ```

  ```json 404 Not Found theme={null}
  {
  	"code": "404",
  	"success": false,
  	"message": "Account not found",
  	"data": null
  }
  ```

  ```json 401 Unauthorized theme={null}
  {
  	"code": "401",
  	"success": false,
  	"message": "Unauthorized access",
  	"data": null
  }
  ```

  ```json 500 Internal Server Error theme={null}
  {
  	"code": "500",
  	"success": false,
  	"message": "An unexpected error occurred",
  	"data": null
  }
  ```
</ResponseExample>
