# 卡片充值

> 向已有卡片充值指定金额。

```yaml
openapi: 3.1.0
info:
  title: 卡片充值
  version: 1.0.0
  description: 向已有卡片充值指定金额。
paths:
  /api/v1/merchant/card/deposit:
    post:
      summary: 卡片充值
      description: 向已有卡片充值指定金额。
      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_003
      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 deposit fails.
                        zh: 充值失败时返回 `null`。
              examples:
                success:
                  summary: 成功
                  value:
                    respCode: "20000"
                    respMsg: success
                    data:
                      operateRecordId: 200002
```
