# 统一下单

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/pay/unifiedOrder:
    post:
      summary: 统一下单
      deprecated: false
      description: >-
        商户业务系统通过统一下单接口发起支付收款订单，Jeepay支付网关会根据商户配置的支付通道路由支付通道完成支付下单。支付网关根据不同的支付方式返回对应的支付参数，业务系统使用支付参数发起收款。

        请求类型：application/json 或 application/x-www-form-urlencoded

        文档地址：https://ndpay.qyyapp.com/api/1.%E6%94%AF%E4%BB%98%E6%8E%A5%E5%8F%A3/1.html
      tags:
        - 支付网关/支付接口
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                mchNo:
                  type: string
                  description: 商户号
                appId:
                  type: string
                  description: 应用ID
                mchOrderNo:
                  type: string
                  description: 商户订单号
                wayCode:
                  type: string
                  description: 支付方式：https://ndpay.qyyapp.com/api/WayCode.html
                amount:
                  type: string
                  description: 支付金额,单位分
                currency:
                  type: string
                  description: 三位货币代码,人民币:cny
                clientIp:
                  type: string
                  description: 客户端IPV4地址
                subject:
                  type: string
                  description: 商品标题
                body:
                  type: string
                  description: 商品描述
                reqTime:
                  type: string
                  description: 请求接口时间,13位时间戳
                version:
                  type: string
                  description: 接口版本号，固定：1.0
                sign:
                  type: string
                  description: 签名值，详见签名算法 https://ndpay.qyyapp.com/api/rule.html
                signType:
                  type: string
                  description: 签名类型，目前只支持MD5方式
                notifyUrl:
                  type: string
                  description: 支付结果异步回调URL,只有传了该值才会发起回调
                returnUrl:
                  type: string
                  description: 支付结果同步跳转通知URL
                expiredTime:
                  type: string
                  description: 订单失效时间,单位秒,默认2小时.订单在(创建时间+失效时间)后失效
                channelExtra:
                  type: string
                  description: 特定渠道发起的额外参数,json格式字符串.详见渠道参数说明
                divisionMode:
                  type: string
                  description: 分账模式： 0-该笔订单不允许分账[默认], 1-支付成功按配置自动完成分账, 2-商户手动分账(解冻商户金额)
                extParam:
                  type: string
                  description: 商户扩展参数,回调时会原样返回
              required:
                - mchNo
                - appId
                - mchOrderNo
                - wayCode
                - amount
                - currency
                - clientIp
                - subject
                - body
                - reqTime
                - version
                - sign
                - signType
              x-apifox-orders:
                - mchNo
                - appId
                - mchOrderNo
                - wayCode
                - amount
                - currency
                - clientIp
                - subject
                - body
                - notifyUrl
                - returnUrl
                - expiredTime
                - channelExtra
                - divisionMode
                - extParam
                - reqTime
                - version
                - sign
                - signType
            example:
              mchNo: string
              appId: string
              mchOrderNo: string
              wayCode: string
              amount: string
              currency: string
              clientIp: string
              subject: string
              body: string
              reqTime: 0
              version: string
              sign: string
              signType: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 支付网关/支付接口
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/4173425/apis/api-156154095-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://pay.jeepay.vip
    description: 正式环境
security: []

```
