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

# Block Sub-Account

> The endpoint blocks [sub-account](/glossary#sub-account).

After the block, every request signed with the sub-account's API key is refused with `401` and the message `This user is blocked`.

A block does not cancel the sub-account's open orders or pending withdrawals. After the block, a cancel request signed with the sub-account's key is refused too, so cancel any order that must not fill before sending the block. Deposits to the sub-account's addresses are still credited, and a transfer from the main account to the sub-account is not refused.

The endpoint refuses to block a sub-account that was never activated. A block on the main account applies to every one of its sub-accounts, and requests signed with the key of any of its sub-accounts are refused the same way.

<Warning>
Rate limit: 1000 requests/10 sec.
</Warning>

<Note>
The API does not cache the response.
</Note>


POST

Copy URL

Copy URL

## Used in these guides

* [Embedded Trading sub-account integration](https://docs.whitebit.com/guides/sub-account-integration.md) — managed sub-accounts, fee-share, and partner onboarding.
* [Embedded Trading FAQ](https://docs.whitebit.com/guides/embedded-trading-faq.md) — what the `401` on a blocked sub-account's key means.


## OpenAPI

````yaml openapi/private/main_api_v4.yaml POST /api/v4/sub-account/block
openapi: 3.0.3
info:
  title: WhiteBIT Private HTTP API V4
  description: |
    WhiteBIT Private HTTP API V4 for Main balance changes.

    Base URL: https://whitebit.com

    All endpoints return time in Unix-time format.
    All endpoints return either a JSON object or array.
    For receiving responses from API calls please use http method POST.
  version: 4.0.0
  contact:
    name: WhiteBIT Support
    email: support@whitebit.com
    url: https://whitebit.com
servers:
  - url: https://whitebit.com
    description: WhiteBIT Global Server
  - url: https://whitebit.eu
    description: WhiteBIT EU Server
  - url: https://whitebit.tr
    description: WhiteBIT TR Server
  - url: https://whitebit.ge
    description: WhiteBIT GE Server
security:
  - ApiKeyAuth: []
    PayloadAuth: []
    SignatureAuth: []
tags:
  - name: Main Account
    description: Main balance and related operations
  - name: Deposit
    description: Cryptocurrency and fiat deposit operations
  - name: Withdraw
    description: Cryptocurrency and fiat withdrawal operations
  - name: Transfer
    description: Balance transfer operations
  - name: Codes
    description: WhiteBIT codes operations
  - name: Crypto Lending - Fixed
    description: Fixed crypto lending plans
  - name: Crypto Lending - Flex
    description: Flexible crypto lending plans
  - name: Fees
    description: Fee information
  - name: Sub-Account
    description: Sub-account management
  - name: Sub-Account API Keys
    description: Sub-account API key management
  - name: Mining Pool
    description: Mining pool operations
  - name: Credit Line
    description: Credit line information
  - name: JWT
    description: JWT token management
  - name: Travel Rule
    description: Travel Rule compliance endpoints for deposits and withdrawals
paths:
  /api/v4/sub-account/block:
    post:
      tags:
        - Sub-Account
      summary: Block Sub-Account
      description: >
        The endpoint blocks [sub-account](/glossary#sub-account).


        After the block, every request signed with the sub-account's API key is
        refused with `401` and the message `This user is blocked`.


        A block does not cancel the sub-account's open orders or pending
        withdrawals. After the block, a cancel request signed with the
        sub-account's key is refused too, so cancel any order that must not fill
        before sending the block. Deposits to the sub-account's addresses are
        still credited, and a transfer from the main account to the sub-account
        is not refused.


        The endpoint refuses to block a sub-account that was never activated. A
        block on the main account applies to every one of its sub-accounts, and
        requests signed with the key of any of its sub-accounts are refused the
        same way.


        <Warning>

        Rate limit: 1000 requests/10 sec.

        </Warning>


        <Note>

        The API does not cache the response.

        </Note>
      operationId: blockSubAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - id
              properties:
                id:
                  type: string
                  description: Sub-account id
                  example: 8e667b4a-0b71-4988-8af5-9474dbfaeb51
            example:
              id: 8e667b4a-0b71-4988-8af5-9474dbfaeb51
      responses:
        '200':
          description: Sub-account blocked successfully
          content:
            application/json:
              schema:
                type: object
              example: {}
        '400':
          description: Request validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-TXC-APIKEY
      description: The public WhiteBIT API key.
    PayloadAuth:
      type: apiKey
      in: header
      name: X-TXC-PAYLOAD
      description: Base64-encoded JSON request body.
    SignatureAuth:
      type: apiKey
      in: header
      name: X-TXC-SIGNATURE
      description: >-
        HMAC-SHA512 signature of the payload, hex-encoded. Computed as
        hex(HMAC-SHA512(payload, api_secret)).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.