# 卡片提现

> 将卡片可用余额提现到 Onerway 账户。

```yaml
openapi: 3.1.0
info:
  title: 卡片提现
  version: 1.0.0
  description: 将卡片可用余额提现到 Onerway 账户。
paths:
  /api/v1/merchant/card/returnCardBalance:
    post:
      summary: 卡片提现
      description: 将卡片可用余额提现到 Onerway 账户。
      parameters:
        - name: ApiKey
          in: header
          required: true
          description: Onerway 分配的发卡 API key 请求 Header。
          schema:
            type: string
            description: Onerway 分配的发卡 API key 请求 Header。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                clientRequestId:
                  type: string
                  description: 本次卡片提现操作的幂等请求 ID。
                cardId:
                  type: integer
                  description: 需要提现可用余额的卡片 ID。
                amount:
                  type: number
                  description: 从卡片提现的金额。
                  x-onerway-constraints:
                    - kind: rule
                      text: 必须大于 0，最多支持 2 位小数。
              required:
                - clientRequestId
                - cardId
                - amount
            examples:
              default:
                summary: 卡片提现
                value:
                  amount: 50
                  cardId: 100001
                  clientRequestId: REQ_20260101_004
      responses:
        "200":
          description: 成功
          content:
            application/json:
              schema:
                type: object
                properties:
                  respCode:
                    type: string
                    description: 业务响应码；`20000` 表示成功。
                  respMsg:
                    type: string
                    description: 响应信息。
                  data:
                    type:
                      - object
                      - "null"
                    properties:
                      operateRecordId:
                        type: integer
                        description: 操作记录 ID。
                    description: 卡片提现操作结果。
                    x-onerway-value:
                      nullable: true
                      when:
                        en: Returned as `null` when the card withdrawal fails.
                        zh: 卡片提现失败时返回 `null`。
              examples:
                success:
                  summary: 成功
                  value:
                    respCode: "20000"
                    respMsg: success
                    data:
                      operateRecordId: 200003
```
