> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 地址支付闪兑订单退款

> 对闪兑地址支付单发起退款

## 概述

本页说明 `POST /payment/open/institution/v1/pay/address/refundconvert` 接口。完整的请求参数、响应结构与示例由上方关联的 OpenAPI 定义渲染。

对闪兑地址支付单发起退款，只支持闪兑地址支付单，若提供的参数对应到直付支付单，会返回错误

## 说明

* 认证方式使用 GatePay 标准签名请求头。
* 本页展示同一接口的机构路径版本。
* 除创建子账户、查询子账户详情、分页查询子账户外，机构侧请求需携带 `X-GatePay-On-Behalf-Of`。
* 通用签名规则请参见 [/api-reference/version/100/cn/common/securityAndSignature](/api-reference/version/100/cn/common/securityAndSignature)。


## OpenAPI

````yaml api-reference/version/100/cn/openapi/institution/address-payment-openapi.json POST /payment/open/institution/v1/pay/address/refundconvert
openapi: 3.0.1
info:
  title: GatePay 地址支付 API
  version: 1.0.0
  description: GatePay 地址支付接口（中文描述）
servers:
  - url: https://openplatform.gateapi.io
security: []
paths:
  /payment/open/institution/v1/pay/address/refundconvert:
    post:
      summary: 闪兑订单退款
      description: 对闪兑地址支付单发起退款
      parameters:
        - $ref: '#/components/parameters/X-GatePay-Certificate-ClientId'
        - $ref: '#/components/parameters/X-GatePay-Signature'
        - $ref: '#/components/parameters/X-GatePay-Timestamp'
        - $ref: '#/components/parameters/X-GatePay-Nonce'
        - $ref: '#/components/parameters/X-GatePay-On-Behalf-Of'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefundConvertRequest'
            example:
              refundRequestId: '483902480932841787'
              prepayId: '1665553233227833'
              refundOrderCurrency: BTC
              refundOrderAmount: '1.1'
              refundPayCurrency: USDT
              refundPayAmount: '1000.1'
              refundReason: refund test
              receiverId: 123456
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RefundConvertResponse'
              example:
                status: SUCCESS
                code: '00000'
                errorMessage: ''
                data:
                  refundRequestId: '483902480932841787'
                  prepayId: '1665553233227833'
                  orderCurrency: BTC
                  orderAmount: '2.2'
                  refundOrderAmount: '1.1'
                  payCurrency: USDT
                  payAmount: '44000'
                  refundPayAmount: '1000.1'
components:
  parameters:
    X-GatePay-Certificate-ClientId:
      name: X-GatePay-Certificate-ClientId
      in: header
      required: true
      description: 商户客户端ID
      schema:
        type: string
        example: 4186d0c6-6a35-55a9-8dc6-5312769dbff8
    X-GatePay-Signature:
      name: X-GatePay-Signature
      in: header
      required: true
      description: 签名
      schema:
        type: string
        example: 672d5650dcc9bb22ebf25fa16c28d03c0e159d742a9176d4340a5da326d75dc8
    X-GatePay-Timestamp:
      name: X-GatePay-Timestamp
      in: header
      required: true
      description: 时间戳（毫秒）
      schema:
        type: string
        example: '1672905655498'
    X-GatePay-Nonce:
      name: X-GatePay-Nonce
      in: header
      required: true
      description: 随机数
      schema:
        type: string
        example: '9578'
    X-GatePay-On-Behalf-Of:
      name: X-GatePay-On-Behalf-Of
      in: header
      required: true
      schema:
        type: string
      description: >-
        必填代理归属请求头。请填写本次请求的发起方账户 ID；在机构代理商户 API 中通常填写目标子账户 ID，在机构代扣与划转接口中可填写机构账户
        ID 或子账户 ID。
  schemas:
    RefundConvertRequest:
      type: object
      properties:
        refundRequestId:
          type: string
          description: 退款请求号
        prepayId:
          type: string
          description: 订单ID
        refundOrderCurrency:
          type: string
          description: 退款订单币种
        refundOrderAmount:
          type: string
          description: 退款订单币种对应退款金额
        refundPayCurrency:
          type: string
          description: 退款订单支付币种
        refundPayAmount:
          type: string
          description: 退款订单支付币种对应退款金额
        refundReason:
          type: string
          description: 退款原因
        receiverId:
          type: string
          description: 地址支付退款接收人在gate系统的user_id
    RefundConvertResponse:
      type: object
      description: 闪兑地址支付单退款响应
      properties:
        refundRequestId:
          type: string
          description: 商户退款请求ID
        prepayId:
          type: string
          description: 拟退款的订单id
        orderCurrency:
          type: string
          description: 订单币种
        orderAmount:
          type: string
          description: 订单金额
        refundOrderAmount:
          type: string
          description: 订单币种对应的退款金额
        payCurrency:
          type: string
          description: 用户支付币种
        payAmount:
          type: string
          description: 订单中用户应该支付的金额
        refundPayAmount:
          type: string
          description: 对应订单用户支付币种的退款金额
      required:
        - refundRequestId
        - prepayId
        - orderCurrency
        - orderAmount
        - refundOrderAmount
        - payCurrency
        - payAmount
        - refundPayAmount

````