---
updatedAt: 2026-04-21T06:46:22.000Z
agentTools:
  projectIndex: https://developer.qbitnetwork.com/llms.txt
---

# 模拟卡退款请求

用于在 `sandbox` 环境中模拟退款请求的简单接口。

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "测试",
    "description": "接口开发者文档",
    "version": "v3"
  },
  "externalDocs": {
    "description": "接口开发者",
    "url": "https://developer.qbitnetwork.com/"
  },
  "servers": [
    {
      "url": "https://api-sandbox.qbitnetwork.com",
      "description": "沙箱环境"
    }
  ],
  "paths": {
    "/open-api/v3/vcc/simulate/refund": {
      "post": {
        "tags": [
          "测试"
        ],
        "summary": "模拟卡退款请求",
        "description": "用于在 `sandbox` 环境中模拟退款请求的简单接口。",
        "operationId": "simulateRefund",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateRefundAndReversalRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulateAuthorizationResponse"
                },
                "example": {
                  "reasonCode": "APPROVE",
                  "responseCode": "APPROVE"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResult"
                },
                "example": {
                  "code": "40001",
                  "message": "Invalid parameter"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "SimulateRefundAndReversalRequest": {
        "required": [
          "amount",
          "cardId",
          "relatedTransactionId"
        ],
        "type": "object",
        "properties": {
          "cardId": {
            "type": "string",
            "description": "卡片 ID",
            "format": "uuid"
          },
          "amount": {
            "maximum": 10000,
            "type": "string",
            "description": "USD 金额",
            "example": "10"
          },
          "relatedTransactionId": {
            "type": "string",
            "description": "原始交易 ID",
            "format": "uuid"
          }
        }
      },
      "SimulateAuthorizationResponse": {
        "type": "object",
        "properties": {
          "reasonCode": {
            "type": "string",
            "description": "原因代码"
          },
          "responseCode": {
            "type": "string",
            "description": "响应代码"
          }
        },
        "description": "模拟授权响应"
      },
      "ErrorResult": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "错误码",
            "example": "400001"
          },
          "message": {
            "type": "string",
            "description": "错误信息",
            "example": "参数无效"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "description": "API密钥",
        "name": "x-access-token",
        "in": "header"
      }
    }
  }
}
```