趣支付API接口文档
    趣支付API接口文档
    • 接口签名说明
    • 编码对照表
    • 退款
      POST
    • 支付下单
      POST
    • 支付回调
      POST

      支付下单

      POST
      https://api.pay.qwan.cn/index/trade/create
      用户端/交易
      最后修改时间:2025-02-20 02:13:02
      责任人:未设置

      请求参数

      Body 参数application/json
      mch_id
      integer <int64>
      商户号
      必需
      order_sn
      string 
      商户订单号
      必需
      amount
      integer <int64>
      金额(单位:分)
      必需
      pay_type
      string 
      支付方式
      必需
      subject
      string 
      商品标题
      必需
      notify_url
      string 
      异步通知地址
      可选
      expire_at
      integer <int64>
      交易失效时间
      可选
      delay_settle
      integer <int64>
      可选
      是否延迟结算1.否2.是
      appid
      string 
      微信appid
      可选
      openid
      string 
      微信openid
      可选
      sign
      string 
      签名
      必需
      示例
      {
          "mch_id": 0,
          "order_sn": "string",
          "amount": 0,
          "pay_type": "string",
          "subject": "string",
          "notify_url": "string",
          "expire_at": 0,
          "delay_settle": 0,
          "appid": "string",
          "openid": "string",
          "sign": "string"
      }

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://api.pay.qwan.cn/index/trade/create' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "mch_id": 0,
          "order_sn": "string",
          "amount": 0,
          "pay_type": "string",
          "subject": "string",
          "notify_url": "string",
          "expire_at": 0,
          "delay_settle": 0,
          "appid": "string",
          "openid": "string",
          "sign": "string"
      }'

      返回响应

      🟢200成功
      application/json
      A successful response.
      Body
      pay_info
      string 
      支付信息
      必需
      示例
      {
          "pay_info": "string"
      }
      上一页
      退款
      下一页
      支付回调
      Built with