# Withdraw card balance

> Withdraw a card's available balance to the Onerway account.

```yaml
openapi: 3.1.0
info:
  title: Withdraw card balance
  version: 1.0.0
  description: Withdraw a card's available balance to the Onerway account.
paths:
  /api/v1/merchant/card/returnCardBalance:
    post:
      summary: Withdraw card balance
      description: Withdraw a card's available balance to the Onerway account.
      parameters:
        - name: ApiKey
          in: header
          required: true
          description: Issuing API key request header assigned by Onerway.
          schema:
            type: string
            description: Issuing API key request header assigned by Onerway.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                clientRequestId:
                  type: string
                  description: Idempotent request ID for this card withdrawal operation.
                cardId:
                  type: integer
                  description: Card ID whose available balance is withdrawn.
                amount:
                  type: number
                  description: Withdrawal amount from the card.
                  x-onerway-constraints:
                    - kind: rule
                      text: Must be greater than 0 and support up to 2 decimal places.
              required:
                - clientRequestId
                - cardId
                - amount
            examples:
              default:
                summary: Withdraw card balance
                value:
                  amount: 50
                  cardId: 100001
                  clientRequestId: REQ_20260101_004
      responses:
        "200":
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  respCode:
                    type: string
                    description: Business response code. `20000` means success.
                  respMsg:
                    type: string
                    description: Response message.
                  data:
                    type:
                      - object
                      - "null"
                    properties:
                      operateRecordId:
                        type: integer
                        description: Operation record ID.
                    description: Card withdrawal operation result.
                    x-onerway-value:
                      nullable: true
                      when:
                        en: Returned as `null` when the card withdrawal fails.
                        zh: 卡片提现失败时返回 `null`。
              examples:
                success:
                  summary: Success
                  value:
                    respCode: "20000"
                    respMsg: success
                    data:
                      operateRecordId: 200003
```
