{
  "openapi": "3.1.0",
  "info": {
    "title": "DePay 商户开放接口 N1",
    "version": "1.0.0-preview.13",
    "description": "HTTPS JSON，使用 RSA-SHA256 对原始请求和响应签名。启用、业务准入及授权范围由部署方决定。SDK 与签名规范见 docs/api/open-api.md。"
  },
  "servers": [
    {
      "url": "https://isou.ink",
      "description": "生产技术预览"
    }
  ],
  "security": [
    {
      "merchant": [],
      "key": [],
      "timestamp": [],
      "nonce": [],
      "signature": []
    }
  ],
  "paths": {
    "/api/depay/v1/payments": {
      "get": {
        "summary": "列出商户订单",
        "x-depay-scope": "merchant.orders",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "创建托管收银台订单",
        "x-depay-scope": "pay.create",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{16,128}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "merchant_order_no": {
                    "type": "string"
                  },
                  "amount_minor": {
                    "type": "string",
                    "pattern": "^[1-9][0-9]{0,10}$"
                  },
                  "currency": {
                    "type": "string",
                    "const": "CNY"
                  },
                  "subject": {
                    "type": "string"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "alipay",
                      "wxpay"
                    ]
                  },
                  "scenario": {
                    "type": "string",
                    "enum": [
                      "hosted",
                      "web",
                      "jump"
                    ]
                  },
                  "notify_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "return_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "expire_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "metadata": {
                    "type": "object"
                  }
                },
                "required": [
                  "merchant_order_no",
                  "amount_minor",
                  "subject"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "202": {
            "description": "请求已受理。资金或渠道结果应查询原资源",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/payments/lookup": {
      "get": {
        "summary": "按商户原订单号查询",
        "x-depay-scope": "pay.query",
        "parameters": [
          {
            "name": "merchant_order_no",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/payments/{id}": {
      "get": {
        "summary": "查询原订单",
        "x-depay-scope": "pay.query",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/payments/{id}/close": {
      "post": {
        "summary": "请求关闭原订单",
        "x-depay-scope": "pay.close",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{16,128}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "202": {
            "description": "请求已受理。资金或渠道结果应查询原资源",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/payments/{id}/refunds": {
      "post": {
        "summary": "提交原订单退款申请",
        "x-depay-scope": "pay.refund",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{16,128}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "merchant_refund_no": {
                    "type": "string"
                  },
                  "amount_minor": {
                    "type": "string",
                    "pattern": "^[1-9][0-9]{0,10}$"
                  },
                  "currency": {
                    "type": "string",
                    "const": "CNY"
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "required": [
                  "merchant_refund_no",
                  "amount_minor",
                  "reason"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "202": {
            "description": "请求已受理。资金或渠道结果应查询原资源",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/refunds/lookup": {
      "get": {
        "summary": "按商户原退款号查询",
        "x-depay-scope": "pay.refundquery",
        "parameters": [
          {
            "name": "merchant_refund_no",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/refunds/{id}": {
      "get": {
        "summary": "查询退款审核与执行",
        "x-depay-scope": "pay.refundquery",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/merchant": {
      "get": {
        "summary": "查询商户资料及准入",
        "x-depay-scope": "merchant.info",
        "parameters": [],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/transfers": {
      "post": {
        "summary": "提交代付申请",
        "x-depay-scope": "transfer.submit",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{16,128}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "merchant_transfer_no": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "bank",
                      "alipay",
                      "internal"
                    ]
                  },
                  "product_id": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{32}$"
                  },
                  "amount_minor": {
                    "type": "string",
                    "pattern": "^[1-9][0-9]{0,10}$"
                  },
                  "currency": {
                    "type": "string",
                    "const": "CNY"
                  },
                  "recipient_ref": {
                    "type": "string"
                  },
                  "account": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "bank_name": {
                    "type": "string"
                  },
                  "recipient_merchant_id": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{32}$"
                  },
                  "identity_type": {
                    "type": "string"
                  },
                  "scene_reports": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "info_type": {
                          "type": "string"
                        },
                        "info_content": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "info_type",
                        "info_content"
                      ]
                    }
                  },
                  "purpose": {
                    "type": "string"
                  }
                },
                "required": [
                  "merchant_transfer_no",
                  "type",
                  "product_id",
                  "amount_minor"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "202": {
            "description": "请求已受理。资金或渠道结果应查询原资源",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/transfers/lookup": {
      "get": {
        "summary": "按商户原代付号查询",
        "x-depay-scope": "transfer.query",
        "parameters": [
          {
            "name": "merchant_transfer_no",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/transfers/{id}": {
      "get": {
        "summary": "查询代付原单",
        "x-depay-scope": "transfer.query",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/transfers/{id}/proof": {
      "get": {
        "summary": "读取已完成代付的账本凭证",
        "x-depay-scope": "transfer.proof",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/balances": {
      "get": {
        "summary": "查询平台账本可用余额",
        "x-depay-scope": "transfer.balance",
        "parameters": [
          {
            "schema": {
              "enum": [
                "available",
                "direct_turnover"
              ],
              "type": "string"
            },
            "name": "account_type",
            "in": "query"
          },
          {
            "schema": {
              "const": "CNY",
              "type": "string"
            },
            "name": "currency",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/complaints": {
      "get": {
        "summary": "列出商户投诉",
        "x-depay-scope": "complain.list",
        "parameters": [
          {
            "name": "page_num",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pay_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "begin_date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/complaints/{id}": {
      "get": {
        "summary": "读取投诉及案卷",
        "x-depay-scope": "complain.detail",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/complaints/{id}/attachments": {
      "post": {
        "summary": "保存投诉附件",
        "x-depay-scope": "complain.upload",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{16,128}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "file_base64": {
                    "type": "string",
                    "contentEncoding": "base64"
                  },
                  "sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "purpose": {
                    "type": "string"
                  }
                },
                "required": [
                  "file_base64",
                  "sha256",
                  "purpose"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "202": {
            "description": "请求已受理。资金或渠道结果应查询原资源",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/complaints/{id}/attachments/{attachment}": {
      "get": {
        "summary": "读取有权访问的私有投诉附件",
        "x-depay-scope": "complain.image",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          },
          {
            "name": "attachment",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/complaints/{id}/actions": {
      "post": {
        "summary": "提交投诉处理记录",
        "x-depay-scope": "complain.actions",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{16,128}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "feedback",
                      "reply",
                      "refund_progress",
                      "complete",
                      "supplement"
                    ]
                  },
                  "content": {
                    "type": "string"
                  },
                  "expected_revision": {
                    "type": "integer",
                    "maximum": 4294967295,
                    "minimum": 1
                  },
                  "refund_id": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{32}$"
                  },
                  "attachment_ids": {
                    "type": "array",
                    "maxItems": 1,
                    "items": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{32}$"
                    }
                  },
                  "file_base64": {
                    "contentEncoding": "base64",
                    "type": "string"
                  },
                  "sha256": {
                    "pattern": "^[a-f0-9]{64}$",
                    "type": "string"
                  }
                },
                "required": [
                  "action",
                  "expected_revision"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "202": {
            "description": "请求已受理。资金或渠道结果应查询原资源",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/notification-deliveries/{id}/retry": {
      "post": {
        "summary": "请求重投原通知事件",
        "x-depay-scope": "notification.retry",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{16,128}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "reason": {
                    "type": "string"
                  }
                },
                "required": [
                  "reason"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "202": {
            "description": "请求已受理。资金或渠道结果应查询原资源",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/depay/v1/platform-keys": {
      "get": {
        "summary": "读取当前平台的公钥和指纹",
        "x-depay-scope": "public",
        "parameters": [],
        "responses": {
          "200": {
            "description": "查询成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "default": {
            "description": "统一业务错误，完整错误及重试规则见接入指南",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        },
        "security": []
      }
    }
  },
  "components": {
    "securitySchemes": {
      "merchant": {
        "type": "apiKey",
        "in": "header",
        "name": "X-DePay-Merchant"
      },
      "key": {
        "type": "apiKey",
        "in": "header",
        "name": "X-DePay-Key-Id"
      },
      "timestamp": {
        "type": "apiKey",
        "in": "header",
        "name": "X-DePay-Timestamp"
      },
      "nonce": {
        "type": "apiKey",
        "in": "header",
        "name": "X-DePay-Nonce"
      },
      "signature": {
        "type": "apiKey",
        "in": "header",
        "name": "X-DePay-Signature"
      }
    },
    "schemas": {
      "Result": {
        "type": "object",
        "required": [
          "request_id",
          "code",
          "message",
          "data"
        ],
        "properties": {
          "request_id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "data": {
            "type": [
              "object",
              "null"
            ]
          }
        }
      }
    }
  }
}
