> ## 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.

# Get deposit/withdraw history

> The endpoint retrieves the history of deposits and withdraws.

<Note>
A sub-account reads its own deposit and withdrawal history with its own API key.
</Note>

**Deposit status codes:**
- `Successful` - 3, 7
- `Canceled` - 4, 9 (status 9 sends no webhook)
- `Unconfirmed by user` - 5
- `On hold` - 21
- `Uncredited` - 22 (a deposit below the network minimum waits in this status; deposits to the same address add up and are credited together once the total reaches the minimum, otherwise the deposit is canceled with status 9 after 7 days)
- `Pending` - 15

The history also returns status 29 (`Credited, on hold`): the funds are credited, and part may stay held until the network fully confirms the deposit. Status 23 is also reported as `Pending`: the deposit is in progress and not final.

`Successful` (3, 7) and `Canceled` (4, 9) are final states. A deposit in status 5, 21, 22, 23 or 29 is not final and later ends as 3, 7, 4 or 9. A successful deposit (3, 7) does not later transition to `On hold` (21) or `Uncredited` (22).

**Travel Rule Deposit check status codes:**
- `Awaiting verification` - 27: the deposit is frozen because data required under the Travel Rule is missing. Where the Travel Rule API is enabled for the account, submit the data with [Submit deposit originator data](/api-reference/travel-rule/submit-deposit-verification); otherwise the account holder provides it at whitebit.com.
- `Confirmation in progress` - 28: The Travel Rule data provided by the user is currently being verified by WhiteBIT.

⚠️ Due to regulatory requirements in Turkey and [EU](/glossary#european-economic-area-eea), the system places every inbound crypto deposit on hold (frozen) until confirming the transaction's origin. The sender must provide certain details if the transaction is from another Virtual Asset Service Provider (VASP) or verify the address if from a self-hosted wallet. The system credits deposited funds to the account only after successful verification.

**Withdraw status codes:**
- `Pending` - 1, 2, 6, 10–17 (withdrawal in progress).
- `Successful` - 3, 7
- `Canceled` - 4 (final; the amount returns to the balance)
- `Unconfirmed by user` - 5
- `AML frozen` - 21
- `Partially successful` - 18

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

<Warning>
Requests with `limit` values above 100 return large payloads. Use high limits only when necessary and ensure the client application can handle large response sizes.
</Warning>

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

<Note>
Results are sorted newest first (descending by timestamp).
</Note>

<Note>
**No date filtering:** the endpoint does not accept `startDate` / `endDate` parameters, and pagination is capped at `offset + limit ≤ 10000` (requests beyond the cap return `Offset is too big. Please use offset + limit less than 10000.`). To read more than 10,000 records, narrow the result set with the available filters (`transactionMethod`, `ticker`, `status`) and paginate within each subset; for a complete history export beyond the cap, use the Report on the History page.
</Note>


POST

Copy URL

Copy URL

## Used in these guides

* [Payment Integration](https://docs.whitebit.com/guides/payment-integration.md) — crypto deposits, withdrawals, conversion, WhiteBIT Codes, and Express Withdraw.
* [Crypto-as-a-Service integration](https://docs.whitebit.com/guides/caas-integration.md) — reconciling end-user deposits and payouts against the account history.


## OpenAPI

````yaml openapi/private/main_api_v4.yaml POST /api/v4/main-account/history
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/main-account/history:
    post:
      tags:
        - Main Account
      summary: Get deposit/withdraw history
      description: >
        The endpoint retrieves the history of deposits and withdraws.


        <Note>

        A sub-account reads its own deposit and withdrawal history with its own
        API key.

        </Note>


        **Deposit status codes:**

        - `Successful` - 3, 7

        - `Canceled` - 4, 9 (status 9 sends no webhook)

        - `Unconfirmed by user` - 5

        - `On hold` - 21

        - `Uncredited` - 22 (a deposit below the network minimum waits in this
        status; deposits to the same address add up and are credited together
        once the total reaches the minimum, otherwise the deposit is canceled
        with status 9 after 7 days)

        - `Pending` - 15


        The history also returns status 29 (`Credited, on hold`): the funds are
        credited, and part may stay held until the network fully confirms the
        deposit. Status 23 is also reported as `Pending`: the deposit is in
        progress and not final.


        `Successful` (3, 7) and `Canceled` (4, 9) are final states. A deposit in
        status 5, 21, 22, 23 or 29 is not final and later ends as 3, 7, 4 or 9.
        A successful deposit (3, 7) does not later transition to `On hold` (21)
        or `Uncredited` (22).


        **Travel Rule Deposit check status codes:**

        - `Awaiting verification` - 27: the deposit is frozen because data
        required under the Travel Rule is missing. Where the Travel Rule API is
        enabled for the account, submit the data with [Submit deposit originator
        data](/api-reference/travel-rule/submit-deposit-verification); otherwise
        the account holder provides it at whitebit.com.

        - `Confirmation in progress` - 28: The Travel Rule data provided by the
        user is currently being verified by WhiteBIT.


        ⚠️ Due to regulatory requirements in Turkey and
        [EU](/glossary#european-economic-area-eea), the system places every
        inbound crypto deposit on hold (frozen) until confirming the
        transaction's origin. The sender must provide certain details if the
        transaction is from another Virtual Asset Service Provider (VASP) or
        verify the address if from a self-hosted wallet. The system credits
        deposited funds to the account only after successful verification.


        **Withdraw status codes:**

        - `Pending` - 1, 2, 6, 10–17 (withdrawal in progress).

        - `Successful` - 3, 7

        - `Canceled` - 4 (final; the amount returns to the balance)

        - `Unconfirmed by user` - 5

        - `AML frozen` - 21

        - `Partially successful` - 18


        <Warning>

        Rate limit: 200 requests/10 sec.

        </Warning>


        <Warning>

        Requests with `limit` values above 100 return large payloads. Use high
        limits only when necessary and ensure the client application can handle
        large response sizes.

        </Warning>


        <Note>

        The API does not cache the response.

        </Note>


        <Note>

        Results are sorted newest first (descending by timestamp).

        </Note>


        <Note>

        **No date filtering:** the endpoint does not accept `startDate` /
        `endDate` parameters, and pagination is capped at `offset + limit ≤
        10000` (requests beyond the cap return `Offset is too big. Please use
        offset + limit less than 10000.`). To read more than 10,000 records,
        narrow the result set with the available filters (`transactionMethod`,
        `ticker`, `status`) and paginate within each subset; for a complete
        history export beyond the cap, use the Report on the History page.

        </Note>
      operationId: getDepositWithdrawHistory
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - request
                - nonce
              properties:
                transactionMethod:
                  type: integer
                  description: >
                    Method. Example: **1** to display deposits / **2** to
                    display withdraws. Do not send this parameter in order to
                    receive both deposits and withdraws.
                  enum:
                    - 1
                    - 2
                  example: 1
                ticker:
                  type: string
                  description: 'Currency''s [ticker](/glossary#ticker). Example: BTC'
                  example: BTC
                address:
                  type: string
                  description: Can be used for filtering transactions by specific address.
                  example: 3ApEASLcrQtZpg1TsssFgYF5V5YQJAKvuE
                memo:
                  type: string
                  description: >-
                    Can be used for filtering transactions by specific
                    [memo](/glossary#memodestination-tag)
                  example: '48565488244493'
                addresses:
                  type: array
                  items:
                    type: string
                  maxItems: 20
                  description: >-
                    Can be used for filtering transactions by specific array of
                    addresses.
                  example:
                    - 3ApEASLcrQtZpg1TsssFgYF5V5YQJAKvuE
                unique_id:
                  type: string
                  description: Can be used for filtering transactions by specific unique id
                  example: '24529041'
                limit:
                  type: integer
                  minimum: 1
                  maximum: 500
                  default: 50
                  description: >-
                    LIMIT is a special clause used to limit records a particular
                    query can return. Default: 50, Min: 1, Max: 500
                  example: 100
                offset:
                  type: integer
                  minimum: 0
                  maximum: 10000
                  default: 0
                  description: >-
                    Use the OFFSET clause to return entries starting from a
                    particular line.
                  example: 0
                status:
                  type: array
                  items:
                    type: integer
                  description: >
                    Can be used for filtering transactions by status codes.


                    ⚠️ Caution: Use this parameter with the appropriate
                    `transactionMethod` and valid status codes for that method.
                    See the status code lists in the endpoint description above
                    for valid codes. Example: `"status": [3,7]`


                    A filter on the successful codes alone (`[3,7]`) leaves out
                    transactions in every other status, such as canceled,
                    on-hold or uncredited deposits. To follow a transaction to
                    its final status, omit `status`.
                  example:
                    - 3
                    - 7
                request:
                  type: string
                  description: Request signature
                  example: '{{request}}'
                nonce:
                  type: integer
                  description: Unique request identifier
                  example: 1594297865000
            example:
              transactionMethod: 1
              ticker: BTC
              offset: 0
              limit: 100
              request: '{{request}}'
              nonce: 1594297865000
      responses:
        '201':
          description: All validations succeeded and creating transaction is started
          content:
            application/json:
              schema:
                type: object
                properties:
                  limit:
                    type: integer
                  offset:
                    type: integer
                  records:
                    type: array
                    items:
                      $ref: '#/components/schemas/TransactionHistory'
                  total:
                    type: integer
                    description: >-
                      Total number of transactions, use this for calculating
                      'limit' and 'offset'
              example:
                limit: 100
                offset: 0
                records:
                  - address: 3ApEASLcrQtZpg1TsssFgYF5V5YQJAKvuE
                    unique_id: null
                    createdAt: 1593437922
                    currency: Bitcoin
                    ticker: BTC
                    method: 1
                    amount: '0.0006'
                    description: ''
                    memo: ''
                    fee: '0'
                    status: 15
                    network: null
                    transactionHash: >-
                      a275a514013e4e0f927fd0d1bed215e7f6f2c4c6ce762836fe135ec22529d886
                    transaction_id: 5e112b38-9652-11ed-a1eb-0242ac120002
                    details:
                      partial:
                        requestAmount: '50000'
                        processedAmount: '39000'
                        processedFee: '273'
                        normalizeTransaction: ''
                    confirmations:
                      actual: 1
                      required: 2
                total: 300
        '400':
          description: Request validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                invalidTicker:
                  summary: Invalid ticker
                  value:
                    code: 0
                    message: Validation failed
                    errors:
                      ticker:
                        - The selected ticker is invalid.
                invalidTransactionMethod:
                  summary: Invalid transaction method
                  value:
                    code: 0
                    message: Validation failed
                    errors:
                      transactionMethod:
                        - The selected transaction method is invalid.
                limitOffsetTooLarge:
                  summary: Limit or offset too large
                  value:
                    code: 0
                    message: Validation failed
                    errors:
                      limit:
                        - The limit may not be greater than 500.
                      offset:
                        - The offset may not be greater than 10000.
                limitOffsetTooSmall:
                  summary: Limit or offset too small
                  value:
                    code: 0
                    message: Validation failed
                    errors:
                      limit:
                        - The limit must be at least 1.
                      offset:
                        - The offset must be at least 0.
                invalidLimitOffset:
                  summary: Invalid limit or offset type
                  value:
                    code: 0
                    message: Validation failed
                    errors:
                      limit:
                        - The limit must be an integer.
                      offset:
                        - The offset must be an integer.
                invalidStatus:
                  summary: Invalid status
                  value:
                    code: 0
                    message: Validation failed
                    errors:
                      status:
                        - The selected status is invalid.
        '422':
          description: Inner validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInner'
components:
  schemas:
    TransactionHistory:
      type: object
      properties:
        address:
          type: string
          description: Deposit/Withdraw address
          example: 3ApEASLcrQtZpg1TsssFgYF5V5YQJAKvuE
        unique_id:
          type: string
          nullable: true
          description: >-
            Unique Id of deposit/withdraw. Unique per user. For a withdrawal or
            a fiat deposit, the `uniqueId` sent in the request; for a crypto
            deposit, the platform assigns the value.
          example: null
        createdAt:
          type: integer
          description: Timestamp of deposit/withdraw
          example: 1593437922
        currency:
          type: string
          description: Deposit/Withdraw currency full name
          example: Bitcoin
        ticker:
          type: string
          description: Deposit/Withdraw currency [ticker](/glossary#ticker)
          example: BTC
        method:
          type: integer
          description: 'Called method: 1 - deposit, 2 - withdraw'
          example: 1
        amount:
          type: string
          description: Amount of deposit/withdraw
          example: '0.0006'
        description:
          type: string
          description: Deposit/Withdraw description
          example: ''
        memo:
          type: string
          description: '[Memo](/glossary#memodestination-tag) for deposit/withdraw'
          example: ''
        fee:
          type: string
          description: '[Fee](/glossary#fee) for deposit/withdraw'
          example: '0'
        status:
          type: integer
          description: Transaction status (see endpoint description for status codes)
          example: 15
        network:
          type: string
          nullable: true
          description: Network if currency is multinetwork
          example: null
        transactionHash:
          type: string
          description: >-
            Deposit/Withdraw transaction hash. A single hash can map to multiple
            records (e.g. several outputs to a WhiteBIT address in one on-chain
            transaction); use `transaction_id` to distinguish them.
          example: 3b49d7b8cf7a4d3c1234567890abcdef
        transaction_id:
          type: string
          description: Transaction UUID. Unique across the whole system and never reused.
          example: 5e112b38-9652-11ed-a1eb-0242ac120002
        details:
          type: object
          nullable: true
          description: Additional details for the transaction
        confirmations:
          type: object
          nullable: true
          description: Confirmation details for crypto transactions
          properties:
            actual:
              type: integer
              description: Actual number of confirmations
              example: 3
            required:
              type: integer
              description: Required number of confirmations
              example: 6
    Error:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
    ErrorInner:
      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.