Skip to main content
e-Buy Docs
View All
Search
Shelves
Books
Log in
Info
Content
Books
e-Buy PaaS API
支付API
预支付接口
预支付接口
基本信息
接口名称:
预支付接口
状 态:
已完成
接口路径:
POST
/paas/micro/cashier/prePay
更新时间:
2025-03-17 23:27:50
Mock地址:
https://apimock.e-buychina.com/mock/587/paas/micro/cashier/prePay
请求参数
Headers:
参数名称
参数值
是否必填
Content-Type
application/json
是
Body:
参数名称
类型
必填
默认值
备注
其他信息
uuid
string
是
请求序列号
最大长度:50
最小长度:1
Mock:@now('yyyyMMdd')-@string('lower',32)
appId
string
是
请求AppId
最大长度:50
最小长度:1
Mock:@natural
action
string
是
请求action
最大长度:50
最小长度:1
Mock:prePay
timestamp
number
是
请求时间戳
Mock:@timestamp
lang
string
是
语言
最大长度:50
最小长度:1
Mock:zh_CN
signType
string
是
签名算法,固定sha256
最大长度:10
最小长度:1
Mock:sha256
sign
string
是
签名
最大长度:500
最小长度:1
Mock:@string
content
object
是
请求报文
useScene
string
是
终端使用场
最大长度:32
最小长度:1
Mock:@string(1, 32)
storeInfo
object
否
门店信息
deviceNo
string
否
设备号
最大长度:32
最小长度:5
Mock:@natural(5, 32)
shopNo
string
是
门店号
最大长度:32
最小长度:5
Mock:@natural(5, 32)
areaCode
string
否
门店行政区划码
最大长度:6
最小长度:6
Mock:@string(6,6)
name
string
否
门店名称
最大长度:20
最小长度:4
Mock:@word(4, 20)
orderId
string
否
业务订单号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机
最大长度:64
最小长度:1
Mock:@natural(1, 32)
orderTitle
string
否
订单标题
最大长度:20
最小长度:5
Mock:@title(5, 20)
orderDesc
string
否
订单描述,可以用作区分订单来源、订单类别
最大长度:2000
Mock:@csentence
goodsDetail
array
是
商品信息
goodsId
string
是
商品ID,外部编号
最大长度:32
最小长度:32
Mock:@natural
goodsCode
string
否
商品编码,内部编号
最大长度:32
Mock:@natural
goodsName
string
否
商品名称
最大长度:50
最小长度:5
Mock:@word(5, 50)
goodsNum
number
是
数量
Mock:@integer(1, 100)
priceSale
number
是
售价,单位元
Mock:@float(0, 10000, 0, 2)
spec
string
否
产品规格
最大长度:5
最小长度:1
Mock:@word(1, 5)
category
string
否
产品品类
最大长度:10
最小长度:1
Mock:@word(1, 10)
units
string
否
单位
最大长度:2
最小长度:1
Mock:@word(1,2)
incentiveFlag
string
否
优惠标识 (枚举)
最大长度:10
Mock:@word
extendInfo
object
否
附加信息
originalData
string
否
异步通知时原样返回
最大长度:200
Mock:@string
totalAmount
number
是
单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到
Mock:100
oriOrderAmount
number
否
单位元,订单原始总金额
Mock:110
incentiveAmount
number
否
单位元,可参与优惠的金额
Mock:10
currency
string
是
币种
最大长度:5
最小长度:3
Mock:CNY
payMethod
array
是
支付方式
assetType
string
是
资产类型,枚举。preAuth预授权,cash电子钱包,points积分必填。coupon优惠券,cashcard现金卡。储值卡、优惠券非必填
最大长度:20
最小长度:1
Mock:@string
points
number
否
assetType是points,此必填。使用积分数
Mock:@string
cardCoupons
string
否
assetType是coupon、cashcard,此必填。卡或者券码列表,格式:"cardCoupon01|secret01" '|'分隔。secret01 是卡密或码密。
最大长度:255
Mock:@string
payWay
string
否
assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等
最大长度:10
Mock:@string
amount
number
否
消费金额。支付
积分
卡 消费金额必填
Mock:@integer
goodsId
string
否
资产指定适用产品id
最大长度:50
Mock:@string
thirdUserId
string
否
用户id
Mock:@string
useLimit
string
否
资产使用限制规则码
Mock:@string
返回数据
参数名称
类型
必填
默认值
备注
其他信息
uuid
string
是
请求序列号
最大长度:50
最小长度:1
Mock:@now('yyyyMMdd')-@string('lower',32)
success
boolean
是
交易成功与否
Mock:@boolean
action
string
是
交易类型
最大长度:50
最小长度:1
Mock:prePay
timestamp
number
是
返回时间戳
Mock:@timestamp
errorCode
string
是
错误码
最大长度:50
Mock:@word
errorMessage
string
是
错误描述
最大长度:50
Mock:@csentence
signType
string
是
签名类型
最大长度:20
Mock:sha256
sign
string
是
签名值
最大长度:500
Mock:@natural
content
object
是
返回报文
outTradeNo
string
是
外部订单号
最大长度:128
最小长度:32
Mock:@natural(32, 128)
paidAmount
string
是
支付成功总金额。totalAmount - paidAmount > 0 表示用户需要另外支付金额
最大长度:10
最小长度:1
Mock:@string
userPaid
string
是
用户实付总金额
最大长度:10
最小长度:1
Mock:@string
merchantAmount
string
是
商户实收金额
最大长度:10
最小长度:1
Mock:@string
cardPaid
object
否
cashcard 支付结果
paidAmount
string
是
此资产支付成功金额
最大长度:10
最小长度:1
Mock:@string
tenderCode
string
否
商户收入映射码
最大长度:20
discountCode
string
否
商户优惠映射码
最大长度:20
merchantAmount
string
是
商户实收金额
最大长度:10
最小长度:1
userAmount
string
是
用户实付金额
最大长度:10
最小长度:1
cardResult
array
否
卡使用结果
couponPaid
object
否
coupon支付结果
paidAmount
string
是
此资产支付成功金额
最大长度:10
最小长度:1
Mock:@string
tenderCode
string
否
商户收入映射码
最大长度:20
Mock:@string
discountCode
string
否
商户优惠映射码
最大长度:20
Mock:@string
merchantAmount
string
是
商户实收金额
最大长度:10
最小长度:1
Mock:@string
userAmount
string
是
用户实付金额
最大长度:10
最小长度:1
Mock:@string
couponResult
array
否
券使用结果
pointsPaid
object
否
积分支付结果
paidAmount
string
是
此资产支付成功金额
最大长度:10
最小长度:1
Mock:@string
pointsCount
string
是
使用积分数
最大长度:10
最小长度:1
Mock:@string
tenderCode
string
否
商户收入映射码
最大长度:20
Mock:@string
discountCode
string
否
商户优惠映射码
最大长度:20
Mock:@string
merchantAmount
string
是
商户实收金额
最大长度:10
最小长度:1
Mock:@string
cashPaid
object
否
电子钱包用户支付结果
paidAmount
string
是
此资产支付成功金额
Mock:@string
userAmount
string
是
用户实付金额
Mock:@string
merchantAmount
string
是
商户实收金额
Mock:@string
tenderCode
string
否
商户收入映射码
discountCode
string
否
商户优惠映射码
备注
变更历史
变更日期
变更内容
2023-03-30
{"path":"\/prePay","params":[]}
{"path":"\/prePay","params":[]}
[{"required":"1","name":"Content-Type","value":"application\/json"}]
[{"required":"1","name":"Content-Type","value":"application\/json"}]
{"req_body_type":"json"}
{"req_body_type":"json"}
{"res_body_type":"json"}
{"res_body_type":"json"}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"appId":{"type":"string","mock":{"mock":"@natural"},"description":"请求AppId","minLength":1,"maxLength":50},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"请求action","minLength":1,"maxLength":50},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"请求时间戳","minimum":0,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"lang":{"type":"string","mock":{"mock":"zh_CN"},"description":"语言","minLength":1,"maxLength":50},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名算法,固定sha256","minLength":1,"maxLength":10},"sign":{"type":"string","mock":{"mock":"@string"},"description":"签名","minLength":1,"maxLength":500},"content":{"type":"object","properties":{"useScene":{"type":"string","description":"终端使用场","mock":{"mock":"@string(1, 32)"},"minLength":1,"maxLength":32},"storeInfo":{"type":"object","properties":{"deviceNo":{"type":"string","description":"设备号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"shopNo":{"type":"string","description":"门店号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"areaCode":{"type":"string","description":"门店行政区划码","mock":{"mock":"@string(6,6)"},"minLength":6,"maxLength":6},"name":{"type":"string","description":"门店名称","mock":{"mock":"@word(4, 20)"},"minLength":4,"maxLength":20}},"required":["shopNo"],"description":"门店信息"},"orderId":{"type":"string","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":64,"description":"业务订单号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机"},"orderTitle":{"type":"string","description":"订单标题","mock":{"mock":"@title(5, 20)"},"minLength":5,"maxLength":20},"orderDesc":{"type":"string","description":"订单描述,可以用作区分订单来源、订单类别","mock":{"mock":"@csentence"},"minLength":0,"maxLength":2000},"goodsDetail":{"type":"array","items":{"type":"object","properties":{"goodsId":{"type":"string","description":"商品ID,外部编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"goodsCode":{"type":"string","mock":{"mock":"@natural"},"description":"商品编码,内部编号","minLength":0,"maxLength":32},"goodsName":{"type":"string","description":"商品名称","mock":{"mock":"@word(5, 50)"},"minLength":5,"maxLength":50},"goodsNum":{"type":"number","description":"数量","mock":{"mock":"@integer(1, 100)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"priceSale":{"type":"number","description":"售价,单位元","mock":{"mock":"@float(0, 10000, 0, 2)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"spec":{"type":"string","description":"产品规格","mock":{"mock":"@word(1, 5)"},"minLength":1,"maxLength":5},"category":{"type":"string","description":"产品品类","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10},"units":{"type":"string","description":"单位","mock":{"mock":"@word(1,2)"},"minLength":1,"maxLength":2},"incentiveFlag":{"type":"string","description":"优惠标识 (枚举)","mock":{"mock":"@word"},"minLength":0,"maxLength":10}},"required":["goodsId","goodsNum","priceSale"]},"description":"商品信息"},"extendInfo":{"type":"object","properties":{"originalData":{"type":"string","mock":{"mock":"@string"},"description":"异步通知时原样返回","minLength":0,"maxLength":200}},"description":"附加信息","required":[]},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"oriOrderAmount":{"type":"number","description":"单位元,订单原始总金额","mock":{"mock":"110"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"incentiveAmount":{"type":"number","description":"单位元,可参与优惠的金额","mock":{"mock":"10"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"currency":{"type":"string","description":"币种","mock":{"mock":"CNY"},"minLength":3,"maxLength":5},"payMethod":{"type":"array","items":{"type":"object","properties":{"assetType":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":20,"description":"资产类型,枚举。preAuth预授权,cash电子钱包,points积分必填。coupon优惠券,cashcard现金卡。储值卡、优惠券非必填"},"points":{"type":"number","mock":{"mock":"@string"},"description":"assetType是points,此必填。使用积分数","minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"cardCoupons":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":255,"description":"assetType是coupon、cashcard,此必填。卡或者券码列表,格式:\\"cardCoupon01|secret01\\" \'|\'分隔。secret01 是卡密或码密。"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","description":"消费金额。支付/积分/卡 消费金额必填","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true},"goodsId":{"type":"string","mock":{"mock":"@string"},"description":"资产指定适用产品id","minLength":0,"maxLength":50},"thirdUserId":{"type":"string","mock":{"mock":"@string"},"description":"用户id"},"useLimit":{"type":"string","mock":{"mock":"@string"},"description":"资产使用限制规则码"}},"required":["assetType"]},"description":"支付方式"}},"required":["goodsDetail","totalAmount","payMethod","useScene","currency"],"description":"请求报文"}},"required":["uuid","appId","action","timestamp","content","lang","sign","signType"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"appId":{"type":"string","mock":{"mock":"@natural"},"description":"请求AppId","minLength":1,"maxLength":50},"action":{"type":"string","mock":{"mock":"prePay"},"description":"请求action","minLength":1,"maxLength":50},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"请求时间戳","minimum":0,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"lang":{"type":"string","mock":{"mock":"zh_CN"},"description":"语言","minLength":1,"maxLength":50},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名算法,固定sha256","minLength":1,"maxLength":10},"sign":{"type":"string","mock":{"mock":"@string"},"description":"签名","minLength":1,"maxLength":500},"content":{"type":"object","properties":{"useScene":{"type":"string","description":"终端使用场","mock":{"mock":"@string(1, 32)"},"minLength":1,"maxLength":32},"storeInfo":{"type":"object","properties":{"deviceNo":{"type":"string","description":"设备号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"shopNo":{"type":"string","description":"门店号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"areaCode":{"type":"string","description":"门店行政区划码","mock":{"mock":"@string(6,6)"},"minLength":6,"maxLength":6},"name":{"type":"string","description":"门店名称","mock":{"mock":"@word(4, 20)"},"minLength":4,"maxLength":20}},"required":["shopNo"],"description":"门店信息"},"orderId":{"type":"string","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":64,"description":"业务订单号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机"},"orderTitle":{"type":"string","description":"订单标题","mock":{"mock":"@title(5, 20)"},"minLength":5,"maxLength":20},"orderDesc":{"type":"string","description":"订单描述,可以用作区分订单来源、订单类别","mock":{"mock":"@csentence"},"minLength":0,"maxLength":2000},"goodsDetail":{"type":"array","items":{"type":"object","properties":{"goodsId":{"type":"string","description":"商品ID,外部编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"goodsCode":{"type":"string","mock":{"mock":"@natural"},"description":"商品编码,内部编号","minLength":0,"maxLength":32},"goodsName":{"type":"string","description":"商品名称","mock":{"mock":"@word(5, 50)"},"minLength":5,"maxLength":50},"goodsNum":{"type":"number","description":"数量","mock":{"mock":"@integer(1, 100)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"priceSale":{"type":"number","description":"售价,单位元","mock":{"mock":"@float(0, 10000, 0, 2)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"spec":{"type":"string","description":"产品规格","mock":{"mock":"@word(1, 5)"},"minLength":1,"maxLength":5},"category":{"type":"string","description":"产品品类","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10},"units":{"type":"string","description":"单位","mock":{"mock":"@word(1,2)"},"minLength":1,"maxLength":2},"incentiveFlag":{"type":"string","description":"优惠标识 (枚举)","mock":{"mock":"@word"},"minLength":0,"maxLength":10}},"required":["goodsId","goodsNum","priceSale"]},"description":"商品信息"},"extendInfo":{"type":"object","properties":{"originalData":{"type":"string","mock":{"mock":"@string"},"description":"异步通知时原样返回","minLength":0,"maxLength":200}},"description":"附加信息","required":[]},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"oriOrderAmount":{"type":"number","description":"单位元,订单原始总金额","mock":{"mock":"110"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"incentiveAmount":{"type":"number","description":"单位元,可参与优惠的金额","mock":{"mock":"10"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"currency":{"type":"string","description":"币种","mock":{"mock":"CNY"},"minLength":3,"maxLength":5},"payMethod":{"type":"array","items":{"type":"object","properties":{"assetType":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":20,"description":"资产类型,枚举。preAuth预授权,cash电子钱包,points积分必填。coupon优惠券,cashcard现金卡。储值卡、优惠券非必填"},"points":{"type":"number","mock":{"mock":"@string"},"description":"assetType是points,此必填。使用积分数","minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"cardCoupons":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":255,"description":"assetType是coupon、cashcard,此必填。卡或者券码列表,格式:\\"cardCoupon01|secret01\\" \'|\'分隔。secret01 是卡密或码密。"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","description":"消费金额。支付/积分/卡 消费金额必填","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true},"goodsId":{"type":"string","mock":{"mock":"@string"},"description":"资产指定适用产品id","minLength":0,"maxLength":50},"thirdUserId":{"type":"string","mock":{"mock":"@string"},"description":"用户id"},"useLimit":{"type":"string","mock":{"mock":"@string"},"description":"资产使用限制规则码"}},"required":["assetType"]},"description":"支付方式"}},"required":["goodsDetail","totalAmount","payMethod","useScene","currency"],"description":"请求报文"}},"required":["uuid","appId","action","timestamp","content","lang","sign","signType"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"success":{"type":"boolean","mock":{"mock":"@boolean"},"description":"交易成功与否"},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"交易类型","maxLength":50,"minLength":1},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"返回时间戳","minimum":1,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"errorCode":{"type":"string","mock":{"mock":"@word"},"description":"错误码","maxLength":50,"minLength":0},"errorMessage":{"type":"string","mock":{"mock":"@csentence"},"description":"错误描述","maxLength":50,"minLength":0},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名类型","maxLength":20,"minLength":0},"sign":{"type":"string","mock":{"mock":"@natural"},"description":"签名值","maxLength":500,"minLength":0},"content":{"type":"object","properties":{"outTradeNo":{"type":"string","description":"外部订单号","mock":{"mock":"@natural(32, 128)"},"minLength":32,"maxLength":128},"paidAmount":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":10,"description":"支付成功总金额。totalAmount - paidAmount > 0 表示用户需要另外支付金额"},"userPaid":{"type":"string","mock":{"mock":"@string"},"description":"用户实付总金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"cardPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"cardResult":{"type":"array","items":{"type":"string"},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"couponResult":{"type":"array","items":{"type":"string"},"description":"券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount"]},"pointsPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"pointsCount":{"type":"string","mock":{"mock":"@string"},"description":"使用积分数","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10}},"description":"积分支付结果","required":["paidAmount","merchantAmount","pointsCount"]},"cashPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额"},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额"},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额"},"tenderCode":{"type":"string","description":"商户收入映射码"},"discountCode":{"type":"string","description":"商户优惠映射码"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount"]}},"required":["outTradeNo","paidAmount","userPaid","merchantAmount"],"description":"返回报文"}},"required":["uuid","success","action","timestamp","errorCode","errorMessage","signType","sign","content"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"success":{"type":"boolean","mock":{"mock":"@boolean"},"description":"交易成功与否"},"action":{"type":"string","mock":{"mock":"prePay"},"description":"交易类型","maxLength":50,"minLength":1},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"返回时间戳","minimum":1,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"errorCode":{"type":"string","mock":{"mock":"@word"},"description":"错误码","maxLength":50,"minLength":0},"errorMessage":{"type":"string","mock":{"mock":"@csentence"},"description":"错误描述","maxLength":50,"minLength":0},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名类型","maxLength":20,"minLength":0},"sign":{"type":"string","mock":{"mock":"@natural"},"description":"签名值","maxLength":500,"minLength":0},"content":{"type":"object","properties":{"outTradeNo":{"type":"string","description":"外部订单号","mock":{"mock":"@natural(32, 128)"},"minLength":32,"maxLength":128},"paidAmount":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":10,"description":"支付成功总金额。totalAmount - paidAmount > 0 表示用户需要另外支付金额"},"userPaid":{"type":"string","mock":{"mock":"@string"},"description":"用户实付总金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"cardPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"cardResult":{"type":"array","items":{"type":"string"},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"couponResult":{"type":"array","items":{"type":"string"},"description":"券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount"]},"pointsPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"pointsCount":{"type":"string","mock":{"mock":"@string"},"description":"使用积分数","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10}},"description":"积分支付结果","required":["paidAmount","merchantAmount","pointsCount"]},"cashPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额"},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额"},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额"},"tenderCode":{"type":"string","description":"商户收入映射码"},"discountCode":{"type":"string","description":"商户优惠映射码"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount"]}},"required":["outTradeNo","paidAmount","userPaid","merchantAmount"],"description":"返回报文"}},"required":["uuid","success","action","timestamp","errorCode","errorMessage","signType","sign","content"]}
2022-03-04
{"path":"\/prePay","params":[]}
{"path":"\/prePay","params":[]}
[{"required":"1","name":"Content-Type","value":"application\/json"}]
[{"required":"1","name":"Content-Type","value":"application\/json"}]
{"req_body_type":"json"}
{"req_body_type":"json"}
{"res_body_type":"json"}
{"res_body_type":"json"}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"appId":{"type":"string","mock":{"mock":"@natural"},"description":"请求AppId","minLength":1,"maxLength":50},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"请求action","minLength":1,"maxLength":50},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"请求时间戳","minimum":0,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"lang":{"type":"string","mock":{"mock":"zh_CN"},"description":"语言","minLength":1,"maxLength":50},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名算法,固定sha256","minLength":1,"maxLength":10},"sign":{"type":"string","mock":{"mock":"@string"},"description":"签名","minLength":1,"maxLength":500},"content":{"type":"object","properties":{"userInfo":{"type":"object","properties":{"userId":{"type":"string","description":"用户ID","mock":{"mock":"@natural(32)"},"minLength":32,"maxLength":32},"platform":{"type":"string","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10,"description":"平台标识,MERCHANT 商户会员平台,服务商账户模式(WECHAT_SP服务商openid,WECHAT_O微信openid),直连账户模式(MERCHANT_O商户微信openid)ALIPAY支付宝会员,EBUY 易百会员"}},"required":["userId"],"description":"用户信息"},"useScene":{"type":"string","description":"终端使用场","mock":{"mock":"@string(1, 32)"},"minLength":1,"maxLength":32},"storeInfo":{"type":"object","properties":{"deviceNo":{"type":"string","description":"设备号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"shopNo":{"type":"string","description":"门店号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"areaCode":{"type":"string","description":"门店行政区划码","mock":{"mock":"@string(6,6)"},"minLength":6,"maxLength":6},"name":{"type":"string","description":"门店名称","mock":{"mock":"@word(4, 20)"},"minLength":4,"maxLength":20}},"required":["shopNo"],"description":"门店信息"},"orderId":{"type":"string","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":64,"description":"业务订单号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机"},"orderTitle":{"type":"string","description":"订单标题","mock":{"mock":"@title(5, 20)"},"minLength":5,"maxLength":20},"orderDesc":{"type":"string","description":"订单描述,可以用作区分订单来源、订单类别","mock":{"mock":"@csentence"},"minLength":0,"maxLength":2000},"goodsDetail":{"type":"array","items":{"type":"object","properties":{"goodsId":{"type":"string","description":"商品ID,外部编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"goodsCode":{"type":"string","mock":{"mock":"@natural"},"description":"商品编码,内部编号","minLength":0,"maxLength":32},"goodsName":{"type":"string","description":"商品名称","mock":{"mock":"@word(5, 50)"},"minLength":5,"maxLength":50},"goodsNum":{"type":"number","description":"数量","mock":{"mock":"@integer(1, 100)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"priceSale":{"type":"number","description":"售价,单位元","mock":{"mock":"@float(0, 10000, 0, 2)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"spec":{"type":"string","description":"产品规格","mock":{"mock":"@word(1, 5)"},"minLength":1,"maxLength":5},"category":{"type":"string","description":"产品品类","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10},"units":{"type":"string","description":"单位","mock":{"mock":"@word(1,2)"},"minLength":1,"maxLength":2},"incentiveFlag":{"type":"string","description":"优惠标识 (枚举)","mock":{"mock":"@word"},"minLength":0,"maxLength":10}},"required":["goodsId","goodsNum","priceSale"]},"description":"商品信息"},"extendInfo":{"type":"object","properties":{"originalData":{"type":"string","mock":{"mock":"@string"},"description":"异步通知时原样返回","minLength":0,"maxLength":200}},"description":"附加信息","required":[]},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"oriOrderAmount":{"type":"number","description":"单位元,订单原始总金额","mock":{"mock":"110"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"incentiveAmount":{"type":"number","description":"单位元,可参与优惠的金额","mock":{"mock":"10"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"currency":{"type":"string","description":"币种","mock":{"mock":"CNY"},"minLength":3,"maxLength":5},"payMethod":{"type":"array","items":{"type":"object","properties":{"assetType":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":20,"description":"资产类型,枚举。preAuth预授权,cash电子钱包,points积分必填。coupon优惠券,cashcard现金卡。储值卡、优惠券非必填"},"points":{"type":"number","mock":{"mock":"@string"},"description":"assetType是points,此必填。使用积分数","minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"cardCoupons":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":255,"description":"assetType是coupon、cashcard,此必填。卡或者券码列表,格式:\\"cardCoupon01|secret01\\" \'|\'分隔。secret01 是卡密或码密。"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","description":"消费金额。支付/积分/卡 消费金额必填","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true},"goodsId":{"type":"string","mock":{"mock":"@string"},"description":"资产指定适用产品id","minLength":0,"maxLength":50},"thirdUserId":{"type":"string","mock":{"mock":"@string"},"description":"用户id"},"useLimit":{"type":"string","mock":{"mock":"@string"},"description":"资产使用限制规则码"}},"required":["assetType"]},"description":"支付方式"}},"required":["goodsDetail","totalAmount","payMethod","useScene","currency"],"description":"请求报文"}},"required":["uuid","appId","action","timestamp","content","lang","sign","signType"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"appId":{"type":"string","mock":{"mock":"@natural"},"description":"请求AppId","minLength":1,"maxLength":50},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"请求action","minLength":1,"maxLength":50},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"请求时间戳","minimum":0,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"lang":{"type":"string","mock":{"mock":"zh_CN"},"description":"语言","minLength":1,"maxLength":50},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名算法,固定sha256","minLength":1,"maxLength":10},"sign":{"type":"string","mock":{"mock":"@string"},"description":"签名","minLength":1,"maxLength":500},"content":{"type":"object","properties":{"useScene":{"type":"string","description":"终端使用场","mock":{"mock":"@string(1, 32)"},"minLength":1,"maxLength":32},"storeInfo":{"type":"object","properties":{"deviceNo":{"type":"string","description":"设备号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"shopNo":{"type":"string","description":"门店号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"areaCode":{"type":"string","description":"门店行政区划码","mock":{"mock":"@string(6,6)"},"minLength":6,"maxLength":6},"name":{"type":"string","description":"门店名称","mock":{"mock":"@word(4, 20)"},"minLength":4,"maxLength":20}},"required":["shopNo"],"description":"门店信息"},"orderId":{"type":"string","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":64,"description":"业务订单号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机"},"orderTitle":{"type":"string","description":"订单标题","mock":{"mock":"@title(5, 20)"},"minLength":5,"maxLength":20},"orderDesc":{"type":"string","description":"订单描述,可以用作区分订单来源、订单类别","mock":{"mock":"@csentence"},"minLength":0,"maxLength":2000},"goodsDetail":{"type":"array","items":{"type":"object","properties":{"goodsId":{"type":"string","description":"商品ID,外部编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"goodsCode":{"type":"string","mock":{"mock":"@natural"},"description":"商品编码,内部编号","minLength":0,"maxLength":32},"goodsName":{"type":"string","description":"商品名称","mock":{"mock":"@word(5, 50)"},"minLength":5,"maxLength":50},"goodsNum":{"type":"number","description":"数量","mock":{"mock":"@integer(1, 100)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"priceSale":{"type":"number","description":"售价,单位元","mock":{"mock":"@float(0, 10000, 0, 2)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"spec":{"type":"string","description":"产品规格","mock":{"mock":"@word(1, 5)"},"minLength":1,"maxLength":5},"category":{"type":"string","description":"产品品类","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10},"units":{"type":"string","description":"单位","mock":{"mock":"@word(1,2)"},"minLength":1,"maxLength":2},"incentiveFlag":{"type":"string","description":"优惠标识 (枚举)","mock":{"mock":"@word"},"minLength":0,"maxLength":10}},"required":["goodsId","goodsNum","priceSale"]},"description":"商品信息"},"extendInfo":{"type":"object","properties":{"originalData":{"type":"string","mock":{"mock":"@string"},"description":"异步通知时原样返回","minLength":0,"maxLength":200}},"description":"附加信息","required":[]},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"oriOrderAmount":{"type":"number","description":"单位元,订单原始总金额","mock":{"mock":"110"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"incentiveAmount":{"type":"number","description":"单位元,可参与优惠的金额","mock":{"mock":"10"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"currency":{"type":"string","description":"币种","mock":{"mock":"CNY"},"minLength":3,"maxLength":5},"payMethod":{"type":"array","items":{"type":"object","properties":{"assetType":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":20,"description":"资产类型,枚举。preAuth预授权,cash电子钱包,points积分必填。coupon优惠券,cashcard现金卡。储值卡、优惠券非必填"},"points":{"type":"number","mock":{"mock":"@string"},"description":"assetType是points,此必填。使用积分数","minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"cardCoupons":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":255,"description":"assetType是coupon、cashcard,此必填。卡或者券码列表,格式:\\"cardCoupon01|secret01\\" \'|\'分隔。secret01 是卡密或码密。"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","description":"消费金额。支付/积分/卡 消费金额必填","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true},"goodsId":{"type":"string","mock":{"mock":"@string"},"description":"资产指定适用产品id","minLength":0,"maxLength":50},"thirdUserId":{"type":"string","mock":{"mock":"@string"},"description":"用户id"},"useLimit":{"type":"string","mock":{"mock":"@string"},"description":"资产使用限制规则码"}},"required":["assetType"]},"description":"支付方式"}},"required":["goodsDetail","totalAmount","payMethod","useScene","currency"],"description":"请求报文"}},"required":["uuid","appId","action","timestamp","content","lang","sign","signType"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"success":{"type":"boolean","mock":{"mock":"@boolean"},"description":"交易成功与否"},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"交易类型","maxLength":50,"minLength":1},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"返回时间戳","minimum":1,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"errorCode":{"type":"string","mock":{"mock":"@word"},"description":"错误码","maxLength":50,"minLength":0},"errorMessage":{"type":"string","mock":{"mock":"@csentence"},"description":"错误描述","maxLength":50,"minLength":0},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名类型","maxLength":20,"minLength":0},"sign":{"type":"string","mock":{"mock":"@natural"},"description":"签名值","maxLength":500,"minLength":0},"content":{"type":"object","properties":{"outTradeNo":{"type":"string","description":"外部订单号","mock":{"mock":"@natural(32, 128)"},"minLength":32,"maxLength":128},"paidAmount":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":10,"description":"支付成功总金额。totalAmount - paidAmount > 0 表示用户需要另外支付金额"},"userPaid":{"type":"string","mock":{"mock":"@string"},"description":"用户实付总金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"cardPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"cardResult":{"type":"array","items":{"type":"string"},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"couponResult":{"type":"array","items":{"type":"string"},"description":"券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount"]},"pointsPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"pointsCount":{"type":"string","mock":{"mock":"@string"},"description":"使用积分数","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10}},"description":"积分支付结果","required":["paidAmount","merchantAmount","pointsCount"]},"cashPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额"},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额"},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额"},"tenderCode":{"type":"string","description":"商户收入映射码"},"discountCode":{"type":"string","description":"商户优惠映射码"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount"]}},"required":["outTradeNo","paidAmount","userPaid","merchantAmount"],"description":"返回报文"}},"required":["uuid","success","action","timestamp","errorCode","errorMessage","signType","sign","content"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"success":{"type":"boolean","mock":{"mock":"@boolean"},"description":"交易成功与否"},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"交易类型","maxLength":50,"minLength":1},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"返回时间戳","minimum":1,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"errorCode":{"type":"string","mock":{"mock":"@word"},"description":"错误码","maxLength":50,"minLength":0},"errorMessage":{"type":"string","mock":{"mock":"@csentence"},"description":"错误描述","maxLength":50,"minLength":0},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名类型","maxLength":20,"minLength":0},"sign":{"type":"string","mock":{"mock":"@natural"},"description":"签名值","maxLength":500,"minLength":0},"content":{"type":"object","properties":{"outTradeNo":{"type":"string","description":"外部订单号","mock":{"mock":"@natural(32, 128)"},"minLength":32,"maxLength":128},"paidAmount":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":10,"description":"支付成功总金额。totalAmount - paidAmount > 0 表示用户需要另外支付金额"},"userPaid":{"type":"string","mock":{"mock":"@string"},"description":"用户实付总金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"cardPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"cardResult":{"type":"array","items":{"type":"string"},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"couponResult":{"type":"array","items":{"type":"string"},"description":"券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount"]},"pointsPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"pointsCount":{"type":"string","mock":{"mock":"@string"},"description":"使用积分数","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10}},"description":"积分支付结果","required":["paidAmount","merchantAmount","pointsCount"]},"cashPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额"},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额"},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额"},"tenderCode":{"type":"string","description":"商户收入映射码"},"discountCode":{"type":"string","description":"商户优惠映射码"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount"]}},"required":["outTradeNo","paidAmount","userPaid","merchantAmount"],"description":"返回报文"}},"required":["uuid","success","action","timestamp","errorCode","errorMessage","signType","sign","content"]}
2022-03-04
{"path":"\/prePay","params":[]}
{"path":"\/prePay","params":[]}
[{"required":"1","name":"Content-Type","value":"application\/json"}]
[{"required":"1","name":"Content-Type","value":"application\/json"}]
{"req_body_type":"json"}
{"req_body_type":"json"}
{"res_body_type":"json"}
{"res_body_type":"json"}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"appId":{"type":"string","mock":{"mock":"@natural"},"description":"请求AppId","minLength":1,"maxLength":50},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"请求action","minLength":1,"maxLength":50},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"请求时间戳","minimum":0,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"lang":{"type":"string","mock":{"mock":"zh_CN"},"description":"语言","minLength":1,"maxLength":50},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名算法,固定sha256","minLength":1,"maxLength":10},"sign":{"type":"string","mock":{"mock":"@string"},"description":"签名","minLength":1,"maxLength":500},"content":{"type":"object","properties":{"userInfo":{"type":"object","properties":{"userId":{"type":"string","description":"用户ID","mock":{"mock":"@natural(32)"},"minLength":32,"maxLength":32},"platform":{"type":"string","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10,"description":"平台标识,MERCHANT 商户会员平台,服务商账户模式(WECHAT_SP服务商openid,WECHAT_O微信openid),直连账户模式(MERCHANT_O商户微信openid)ALIPAY支付宝会员,EBUY 易百会员"}},"required":["userId"],"description":"用户信息"},"useScene":{"type":"string","description":"终端使用场","mock":{"mock":"@string(1, 32)"},"minLength":1,"maxLength":32},"storeInfo":{"type":"object","properties":{"deviceNo":{"type":"string","description":"设备号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"shopNo":{"type":"string","description":"门店号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"areaCode":{"type":"string","description":"门店行政区划码","mock":{"mock":"@string(6,6)"},"minLength":6,"maxLength":6},"name":{"type":"string","description":"门店名称","mock":{"mock":"@word(4, 20)"},"minLength":4,"maxLength":20}},"required":["shopNo"],"description":"门店信息"},"orderId":{"type":"string","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":64,"description":"业务订单号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机"},"orderTitle":{"type":"string","description":"订单标题","mock":{"mock":"@title(5, 20)"},"minLength":5,"maxLength":20},"orderDesc":{"type":"string","description":"订单描述,可以用作区分订单来源、订单类别","mock":{"mock":"@csentence"},"minLength":0,"maxLength":2000},"goodsDetail":{"type":"array","items":{"type":"object","properties":{"goodsId":{"type":"string","description":"商品ID,外部编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"goodsCode":{"type":"string","mock":{"mock":"@natural"},"description":"商品编码,内部编号","minLength":0,"maxLength":32},"goodsName":{"type":"string","description":"商品名称","mock":{"mock":"@word(5, 50)"},"minLength":5,"maxLength":50},"goodsNum":{"type":"number","description":"数量","mock":{"mock":"@integer(1, 100)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"priceSale":{"type":"number","description":"售价,单位元","mock":{"mock":"@float(0, 10000, 0, 2)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"spec":{"type":"string","description":"产品规格","mock":{"mock":"@word(1, 5)"},"minLength":1,"maxLength":5},"category":{"type":"string","description":"产品品类","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10},"units":{"type":"string","description":"单位","mock":{"mock":"@word(1,2)"},"minLength":1,"maxLength":2},"incentiveFlag":{"type":"string","description":"优惠标识 (枚举)","mock":{"mock":"@word"},"minLength":0,"maxLength":10}},"required":["goodsId","goodsNum","priceSale"]},"description":"商品信息"},"extendInfo":{"type":"object","properties":{"originalData":{"type":"string","mock":{"mock":"@string"},"description":"异步通知时原样返回","minLength":0,"maxLength":200}},"description":"附加信息","required":[]},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"oriOrderAmount":{"type":"number","description":"单位元,订单原始总金额","mock":{"mock":"110"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"incentiveAmount":{"type":"number","description":"单位元,可参与优惠的金额","mock":{"mock":"10"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"currency":{"type":"string","description":"币种","mock":{"mock":"CNY"},"minLength":3,"maxLength":5},"payMethod":{"type":"array","items":{"type":"object","properties":{"assetType":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":20,"description":"资产类型,枚举。preAuth预授权,cash电子钱包,points积分必填。coupon优惠券,cashcard现金卡。储值卡、优惠券非必填"},"points":{"type":"number","mock":{"mock":"@string"},"description":"assetType是points,此必填。使用积分数","minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"cardCoupons":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":255,"description":"assetType是coupon、cashcard,此必填。卡或者券码列表,格式:\\"cardCoupon01|secret01\\" \'|\'分隔。secret01 是卡密或码密。"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","description":"消费金额。支付/积分/卡 消费金额必填","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true},"goodsId":{"type":"string","mock":{"mock":"@string"},"description":"资产指定适用产品id","minLength":0,"maxLength":50}},"required":["assetType"]},"description":"支付方式"}},"required":["goodsDetail","totalAmount","payMethod","useScene","currency"],"description":"请求报文"}},"required":["uuid","appId","action","timestamp","content","lang","sign","signType"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"appId":{"type":"string","mock":{"mock":"@natural"},"description":"请求AppId","minLength":1,"maxLength":50},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"请求action","minLength":1,"maxLength":50},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"请求时间戳","minimum":0,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"lang":{"type":"string","mock":{"mock":"zh_CN"},"description":"语言","minLength":1,"maxLength":50},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名算法,固定sha256","minLength":1,"maxLength":10},"sign":{"type":"string","mock":{"mock":"@string"},"description":"签名","minLength":1,"maxLength":500},"content":{"type":"object","properties":{"userInfo":{"type":"object","properties":{"userId":{"type":"string","description":"用户ID","mock":{"mock":"@natural(32)"},"minLength":32,"maxLength":32},"platform":{"type":"string","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10,"description":"平台标识,MERCHANT 商户会员平台,服务商账户模式(WECHAT_SP服务商openid,WECHAT_O微信openid),直连账户模式(MERCHANT_O商户微信openid)ALIPAY支付宝会员,EBUY 易百会员"}},"required":["userId"],"description":"用户信息"},"useScene":{"type":"string","description":"终端使用场","mock":{"mock":"@string(1, 32)"},"minLength":1,"maxLength":32},"storeInfo":{"type":"object","properties":{"deviceNo":{"type":"string","description":"设备号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"shopNo":{"type":"string","description":"门店号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"areaCode":{"type":"string","description":"门店行政区划码","mock":{"mock":"@string(6,6)"},"minLength":6,"maxLength":6},"name":{"type":"string","description":"门店名称","mock":{"mock":"@word(4, 20)"},"minLength":4,"maxLength":20}},"required":["shopNo"],"description":"门店信息"},"orderId":{"type":"string","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":64,"description":"业务订单号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机"},"orderTitle":{"type":"string","description":"订单标题","mock":{"mock":"@title(5, 20)"},"minLength":5,"maxLength":20},"orderDesc":{"type":"string","description":"订单描述,可以用作区分订单来源、订单类别","mock":{"mock":"@csentence"},"minLength":0,"maxLength":2000},"goodsDetail":{"type":"array","items":{"type":"object","properties":{"goodsId":{"type":"string","description":"商品ID,外部编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"goodsCode":{"type":"string","mock":{"mock":"@natural"},"description":"商品编码,内部编号","minLength":0,"maxLength":32},"goodsName":{"type":"string","description":"商品名称","mock":{"mock":"@word(5, 50)"},"minLength":5,"maxLength":50},"goodsNum":{"type":"number","description":"数量","mock":{"mock":"@integer(1, 100)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"priceSale":{"type":"number","description":"售价,单位元","mock":{"mock":"@float(0, 10000, 0, 2)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"spec":{"type":"string","description":"产品规格","mock":{"mock":"@word(1, 5)"},"minLength":1,"maxLength":5},"category":{"type":"string","description":"产品品类","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10},"units":{"type":"string","description":"单位","mock":{"mock":"@word(1,2)"},"minLength":1,"maxLength":2},"incentiveFlag":{"type":"string","description":"优惠标识 (枚举)","mock":{"mock":"@word"},"minLength":0,"maxLength":10}},"required":["goodsId","goodsNum","priceSale"]},"description":"商品信息"},"extendInfo":{"type":"object","properties":{"originalData":{"type":"string","mock":{"mock":"@string"},"description":"异步通知时原样返回","minLength":0,"maxLength":200}},"description":"附加信息","required":[]},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"oriOrderAmount":{"type":"number","description":"单位元,订单原始总金额","mock":{"mock":"110"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"incentiveAmount":{"type":"number","description":"单位元,可参与优惠的金额","mock":{"mock":"10"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"currency":{"type":"string","description":"币种","mock":{"mock":"CNY"},"minLength":3,"maxLength":5},"payMethod":{"type":"array","items":{"type":"object","properties":{"assetType":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":20,"description":"资产类型,枚举。preAuth预授权,cash电子钱包,points积分必填。coupon优惠券,cashcard现金卡。储值卡、优惠券非必填"},"points":{"type":"number","mock":{"mock":"@string"},"description":"assetType是points,此必填。使用积分数","minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"cardCoupons":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":255,"description":"assetType是coupon、cashcard,此必填。卡或者券码列表,格式:\\"cardCoupon01|secret01\\" \'|\'分隔。secret01 是卡密或码密。"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","description":"消费金额。支付/积分/卡 消费金额必填","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true},"goodsId":{"type":"string","mock":{"mock":"@string"},"description":"资产指定适用产品id","minLength":0,"maxLength":50},"thirdUserId":{"type":"string","mock":{"mock":"@string"},"description":"用户id"},"useLimit":{"type":"string","mock":{"mock":"@string"},"description":"资产使用限制规则码"}},"required":["assetType"]},"description":"支付方式"}},"required":["goodsDetail","totalAmount","payMethod","useScene","currency"],"description":"请求报文"}},"required":["uuid","appId","action","timestamp","content","lang","sign","signType"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"success":{"type":"boolean","mock":{"mock":"@boolean"},"description":"交易成功与否"},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"交易类型","maxLength":50,"minLength":1},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"返回时间戳","minimum":1,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"errorCode":{"type":"string","mock":{"mock":"@word"},"description":"错误码","maxLength":50,"minLength":0},"errorMessage":{"type":"string","mock":{"mock":"@csentence"},"description":"错误描述","maxLength":50,"minLength":0},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名类型","maxLength":20,"minLength":0},"sign":{"type":"string","mock":{"mock":"@natural"},"description":"签名值","maxLength":500,"minLength":0},"content":{"type":"object","properties":{"outTradeNo":{"type":"string","description":"外部订单号","mock":{"mock":"@natural(32, 128)"},"minLength":32,"maxLength":128},"paidAmount":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":10,"description":"支付成功总金额。totalAmount - paidAmount > 0 表示用户需要另外支付金额"},"userPaid":{"type":"string","mock":{"mock":"@string"},"description":"用户实付总金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"cardPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"cardResult":{"type":"array","items":{"type":"string"},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"couponResult":{"type":"array","items":{"type":"string"},"description":"券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount"]},"pointsPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"pointsCount":{"type":"string","mock":{"mock":"@string"},"description":"使用积分数","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10}},"description":"积分支付结果","required":["paidAmount","merchantAmount","pointsCount"]},"cashPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额"},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额"},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额"},"tenderCode":{"type":"string","description":"商户收入映射码"},"discountCode":{"type":"string","description":"商户优惠映射码"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount"]}},"required":["outTradeNo","paidAmount","userPaid","merchantAmount"],"description":"返回报文"}},"required":["uuid","success","action","timestamp","errorCode","errorMessage","signType","sign","content"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"success":{"type":"boolean","mock":{"mock":"@boolean"},"description":"交易成功与否"},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"交易类型","maxLength":50,"minLength":1},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"返回时间戳","minimum":1,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"errorCode":{"type":"string","mock":{"mock":"@word"},"description":"错误码","maxLength":50,"minLength":0},"errorMessage":{"type":"string","mock":{"mock":"@csentence"},"description":"错误描述","maxLength":50,"minLength":0},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名类型","maxLength":20,"minLength":0},"sign":{"type":"string","mock":{"mock":"@natural"},"description":"签名值","maxLength":500,"minLength":0},"content":{"type":"object","properties":{"outTradeNo":{"type":"string","description":"外部订单号","mock":{"mock":"@natural(32, 128)"},"minLength":32,"maxLength":128},"paidAmount":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":10,"description":"支付成功总金额。totalAmount - paidAmount > 0 表示用户需要另外支付金额"},"userPaid":{"type":"string","mock":{"mock":"@string"},"description":"用户实付总金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"cardPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"cardResult":{"type":"array","items":{"type":"string"},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"couponResult":{"type":"array","items":{"type":"string"},"description":"券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount"]},"pointsPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"pointsCount":{"type":"string","mock":{"mock":"@string"},"description":"使用积分数","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10}},"description":"积分支付结果","required":["paidAmount","merchantAmount","pointsCount"]},"cashPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额"},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额"},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额"},"tenderCode":{"type":"string","description":"商户收入映射码"},"discountCode":{"type":"string","description":"商户优惠映射码"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount"]}},"required":["outTradeNo","paidAmount","userPaid","merchantAmount"],"description":"返回报文"}},"required":["uuid","success","action","timestamp","errorCode","errorMessage","signType","sign","content"]}
2022-02-11
{"path":"\/prePay","params":[]}
{"path":"\/prePay","params":[]}
[{"required":"1","name":"Content-Type","value":"application\/json"}]
[{"required":"1","name":"Content-Type","value":"application\/json"}]
{"req_body_type":"json"}
{"req_body_type":"json"}
{"res_body_type":"json"}
{"res_body_type":"json"}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"appId":{"type":"string","mock":{"mock":"@natural"},"description":"请求AppId","minLength":1,"maxLength":50},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"请求action","minLength":1,"maxLength":50},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"请求时间戳","minimum":0,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"lang":{"type":"string","mock":{"mock":"zh_CN"},"description":"语言","minLength":1,"maxLength":50},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名算法,固定sha256","minLength":1,"maxLength":10},"sign":{"type":"string","mock":{"mock":"@string"},"description":"签名","minLength":1,"maxLength":500},"content":{"type":"object","properties":{"userInfo":{"type":"object","properties":{"userId":{"type":"string","description":"用户ID","mock":{"mock":"@natural(32)"},"minLength":32,"maxLength":32},"platform":{"type":"string","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10,"description":"平台标识,MERCHANT 商户会员平台,服务商账户模式(WECHAT_SP服务商openid,WECHAT_O微信openid),直连账户模式(MERCHANT_O商户微信openid)ALIPAY支付宝会员,EBUY 易百会员"}},"required":["userId"],"description":"用户信息"},"useScene":{"type":"string","description":"终端使用场","mock":{"mock":"@string(1, 32)"},"minLength":1,"maxLength":32},"outTradeNo":{"type":"string","description":"请求交易流水号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":32},"storeInfo":{"type":"object","properties":{"deviceNo":{"type":"string","description":"设备号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"shopNo":{"type":"string","description":"门店号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"areaCode":{"type":"string","description":"门店行政区划码","mock":{"mock":"@string(6,6)"},"minLength":6,"maxLength":6},"name":{"type":"string","description":"门店名称","mock":{"mock":"@word(4, 20)"},"minLength":4,"maxLength":20}},"required":["shopNo"],"description":"门店信息"},"orderId":{"type":"string","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":64,"description":"业务订单号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机"},"orderTitle":{"type":"string","description":"订单标题","mock":{"mock":"@title(5, 20)"},"minLength":5,"maxLength":20},"orderDesc":{"type":"string","description":"订单描述,可以用作区分订单来源、订单类别","mock":{"mock":"@csentence"},"minLength":0,"maxLength":2000},"goodsDetail":{"type":"array","items":{"type":"object","properties":{"goodsId":{"type":"string","description":"商品ID,外部编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"goodsCode":{"type":"string","mock":{"mock":"@natural"},"description":"商品编码,内部编号","minLength":0,"maxLength":32},"goodsName":{"type":"string","description":"商品名称","mock":{"mock":"@word(5, 50)"},"minLength":5,"maxLength":50},"goodsNum":{"type":"number","description":"数量","mock":{"mock":"@integer(1, 100)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"priceSale":{"type":"number","description":"售价,单位元","mock":{"mock":"@float(0, 10000, 0, 2)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"spec":{"type":"string","description":"产品规格","mock":{"mock":"@word(1, 5)"},"minLength":1,"maxLength":5},"category":{"type":"string","description":"产品品类","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10},"units":{"type":"string","description":"单位","mock":{"mock":"@word(1,2)"},"minLength":1,"maxLength":2},"incentiveFlag":{"type":"string","description":"优惠标识 (枚举)","mock":{"mock":"@word"},"minLength":0,"maxLength":10}},"required":["goodsId","goodsNum","priceSale"]},"description":"商品信息"},"extendInfo":{"type":"object","properties":{"originalData":{"type":"string","mock":{"mock":"@string"},"description":"异步通知时原样返回","minLength":0,"maxLength":200}},"description":"附加信息","required":[]},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"oriOrderAmount":{"type":"number","description":"单位元,订单原始总金额","mock":{"mock":"110"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"incentiveAmount":{"type":"number","description":"单位元,可参与优惠的金额","mock":{"mock":"10"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"notifyUrl":{"type":"string","description":"交易结果通知地址(带有异步的结果参数)","mock":{"mock":"@url(64,500)"},"minLength":64,"maxLength":500},"afterPayUrl":{"type":"string","description":"支付完成后跳转地址(带有同步的结果参数)","mock":{"mock":"@url(64,500)"},"minLength":64,"maxLength":500},"cancelPayUrl":{"type":"string","description":"中断支付或支付失败跳转地址","mock":{"mock":"@url(64,500)"},"minLength":64,"maxLength":500},"currency":{"type":"string","description":"币种","mock":{"mock":"CNY"},"minLength":3,"maxLength":5},"spbillCreateIp":{"type":"string","description":"设备终端IP","mock":{"mock":"@ip"},"maxLength":15,"minLength":8},"timeStart":{"type":"string","description":"订单请求时间yyyyMMddHHmmss","mock":{"mock":"20191112134949"},"minLength":0,"maxLength":14},"timeExpire":{"type":"string","description":"交易过期时间yyyyMMddHHmmss","mock":{"mock":"20191112134949"},"minLength":0,"maxLength":14},"payMethod":{"type":"array","items":{"type":"object","properties":{"assetType":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":20,"description":"资产类型,枚举。preAuth预授权,cash电子钱包,points积分必填。coupon优惠券,cashcard现金卡。储值卡、优惠券非必填"},"points":{"type":"number","mock":{"mock":"@string"},"description":"assetType是points,此必填。使用积分数","minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"cardCoupons":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":255,"description":"assetType是coupon、cashcard,此必填。卡或者券码列表,格式:\\"cardCoupon01|secret01\\" \'|\'分隔。secret01 是卡密或码密。"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","description":"消费金额。支付/积分/卡 消费金额必填","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true},"goodsId":{"type":"string","mock":{"mock":"@string"},"description":"资产指定适用产品id","minLength":0,"maxLength":50}},"required":["assetType"]},"description":"支付方式"},"subsidy":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","description":"主体编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"amount":{"type":"number","description":"补贴金额","mock":{"mock":"@float(0, 10000)"},"minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true}},"required":["account","amount"]},"description":"补贴描述"}},"required":["goodsDetail","totalAmount","currency","outTradeNo","payMethod","useScene"],"description":"请求报文"}},"required":["uuid","appId","action","timestamp","content","lang","sign","signType"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"appId":{"type":"string","mock":{"mock":"@natural"},"description":"请求AppId","minLength":1,"maxLength":50},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"请求action","minLength":1,"maxLength":50},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"请求时间戳","minimum":0,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"lang":{"type":"string","mock":{"mock":"zh_CN"},"description":"语言","minLength":1,"maxLength":50},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名算法,固定sha256","minLength":1,"maxLength":10},"sign":{"type":"string","mock":{"mock":"@string"},"description":"签名","minLength":1,"maxLength":500},"content":{"type":"object","properties":{"userInfo":{"type":"object","properties":{"userId":{"type":"string","description":"用户ID","mock":{"mock":"@natural(32)"},"minLength":32,"maxLength":32},"platform":{"type":"string","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10,"description":"平台标识,MERCHANT 商户会员平台,服务商账户模式(WECHAT_SP服务商openid,WECHAT_O微信openid),直连账户模式(MERCHANT_O商户微信openid)ALIPAY支付宝会员,EBUY 易百会员"}},"required":["userId"],"description":"用户信息"},"useScene":{"type":"string","description":"终端使用场","mock":{"mock":"@string(1, 32)"},"minLength":1,"maxLength":32},"storeInfo":{"type":"object","properties":{"deviceNo":{"type":"string","description":"设备号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"shopNo":{"type":"string","description":"门店号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"areaCode":{"type":"string","description":"门店行政区划码","mock":{"mock":"@string(6,6)"},"minLength":6,"maxLength":6},"name":{"type":"string","description":"门店名称","mock":{"mock":"@word(4, 20)"},"minLength":4,"maxLength":20}},"required":["shopNo"],"description":"门店信息"},"orderId":{"type":"string","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":64,"description":"业务订单号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机"},"orderTitle":{"type":"string","description":"订单标题","mock":{"mock":"@title(5, 20)"},"minLength":5,"maxLength":20},"orderDesc":{"type":"string","description":"订单描述,可以用作区分订单来源、订单类别","mock":{"mock":"@csentence"},"minLength":0,"maxLength":2000},"goodsDetail":{"type":"array","items":{"type":"object","properties":{"goodsId":{"type":"string","description":"商品ID,外部编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"goodsCode":{"type":"string","mock":{"mock":"@natural"},"description":"商品编码,内部编号","minLength":0,"maxLength":32},"goodsName":{"type":"string","description":"商品名称","mock":{"mock":"@word(5, 50)"},"minLength":5,"maxLength":50},"goodsNum":{"type":"number","description":"数量","mock":{"mock":"@integer(1, 100)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"priceSale":{"type":"number","description":"售价,单位元","mock":{"mock":"@float(0, 10000, 0, 2)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"spec":{"type":"string","description":"产品规格","mock":{"mock":"@word(1, 5)"},"minLength":1,"maxLength":5},"category":{"type":"string","description":"产品品类","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10},"units":{"type":"string","description":"单位","mock":{"mock":"@word(1,2)"},"minLength":1,"maxLength":2},"incentiveFlag":{"type":"string","description":"优惠标识 (枚举)","mock":{"mock":"@word"},"minLength":0,"maxLength":10}},"required":["goodsId","goodsNum","priceSale"]},"description":"商品信息"},"extendInfo":{"type":"object","properties":{"originalData":{"type":"string","mock":{"mock":"@string"},"description":"异步通知时原样返回","minLength":0,"maxLength":200}},"description":"附加信息","required":[]},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"oriOrderAmount":{"type":"number","description":"单位元,订单原始总金额","mock":{"mock":"110"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"incentiveAmount":{"type":"number","description":"单位元,可参与优惠的金额","mock":{"mock":"10"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"currency":{"type":"string","description":"币种","mock":{"mock":"CNY"},"minLength":3,"maxLength":5},"payMethod":{"type":"array","items":{"type":"object","properties":{"assetType":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":20,"description":"资产类型,枚举。preAuth预授权,cash电子钱包,points积分必填。coupon优惠券,cashcard现金卡。储值卡、优惠券非必填"},"points":{"type":"number","mock":{"mock":"@string"},"description":"assetType是points,此必填。使用积分数","minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"cardCoupons":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":255,"description":"assetType是coupon、cashcard,此必填。卡或者券码列表,格式:\\"cardCoupon01|secret01\\" \'|\'分隔。secret01 是卡密或码密。"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","description":"消费金额。支付/积分/卡 消费金额必填","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true},"goodsId":{"type":"string","mock":{"mock":"@string"},"description":"资产指定适用产品id","minLength":0,"maxLength":50}},"required":["assetType"]},"description":"支付方式"}},"required":["goodsDetail","totalAmount","payMethod","useScene","currency"],"description":"请求报文"}},"required":["uuid","appId","action","timestamp","content","lang","sign","signType"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"success":{"type":"boolean","mock":{"mock":"@boolean"},"description":"交易成功与否"},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"交易类型","maxLength":50,"minLength":1},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"返回时间戳","minimum":1,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"errorCode":{"type":"string","mock":{"mock":"@word"},"description":"错误码","maxLength":50,"minLength":0},"errorMessage":{"type":"string","mock":{"mock":"@csentence"},"description":"错误描述","maxLength":50,"minLength":0},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名类型","maxLength":20,"minLength":0},"sign":{"type":"string","mock":{"mock":"@natural"},"description":"签名值","maxLength":500,"minLength":0},"content":{"type":"object","properties":{"outTradeNo":{"type":"string","description":"外部订单号","mock":{"mock":"@natural(32, 128)"},"minLength":32,"maxLength":128},"paidAmount":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":10,"description":"支付成功总金额。totalAmount - paidAmount > 0 表示用户需要另外支付金额"},"userPaid":{"type":"string","mock":{"mock":"@string"},"description":"用户实付总金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"cardPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"cardResult":{"type":"array","items":{"type":"string"},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"couponResult":{"type":"array","items":{"type":"string"},"description":"券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount"]},"pointsPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"pointsCount":{"type":"string","mock":{"mock":"@string"},"description":"使用积分数","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10}},"description":"积分支付结果","required":["paidAmount","merchantAmount","pointsCount"]},"cashPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额"},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额"},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额"},"tenderCode":{"type":"string","description":"商户收入映射码"},"discountCode":{"type":"string","description":"商户优惠映射码"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount"]}},"required":["outTradeNo","paidAmount","userPaid","merchantAmount"],"description":"返回报文"}},"required":["uuid","success","action","timestamp","errorCode","errorMessage","signType","sign","content"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"success":{"type":"boolean","mock":{"mock":"@boolean"},"description":"交易成功与否"},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"交易类型","maxLength":50,"minLength":1},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"返回时间戳","minimum":1,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"errorCode":{"type":"string","mock":{"mock":"@word"},"description":"错误码","maxLength":50,"minLength":0},"errorMessage":{"type":"string","mock":{"mock":"@csentence"},"description":"错误描述","maxLength":50,"minLength":0},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名类型","maxLength":20,"minLength":0},"sign":{"type":"string","mock":{"mock":"@natural"},"description":"签名值","maxLength":500,"minLength":0},"content":{"type":"object","properties":{"outTradeNo":{"type":"string","description":"外部订单号","mock":{"mock":"@natural(32, 128)"},"minLength":32,"maxLength":128},"paidAmount":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":10,"description":"支付成功总金额。totalAmount - paidAmount > 0 表示用户需要另外支付金额"},"userPaid":{"type":"string","mock":{"mock":"@string"},"description":"用户实付总金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"cardPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"cardResult":{"type":"array","items":{"type":"string"},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"couponResult":{"type":"array","items":{"type":"string"},"description":"券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount"]},"pointsPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"pointsCount":{"type":"string","mock":{"mock":"@string"},"description":"使用积分数","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10}},"description":"积分支付结果","required":["paidAmount","merchantAmount","pointsCount"]},"cashPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额"},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额"},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额"},"tenderCode":{"type":"string","description":"商户收入映射码"},"discountCode":{"type":"string","description":"商户优惠映射码"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount"]}},"required":["outTradeNo","paidAmount","userPaid","merchantAmount"],"description":"返回报文"}},"required":["uuid","success","action","timestamp","errorCode","errorMessage","signType","sign","content"]}
2022-02-11
{"path":"\/prePay","params":[]}
{"path":"\/prePay","params":[]}
[{"required":"1","name":"Content-Type","value":"application\/json"}]
[{"required":"1","name":"Content-Type","value":"application\/json"}]
{"req_body_type":"json"}
{"req_body_type":"json"}
{"res_body_type":"json"}
{"res_body_type":"json"}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"appId":{"type":"string","mock":{"mock":"@natural"},"description":"请求AppId","minLength":1,"maxLength":50},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"请求action","minLength":1,"maxLength":50},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"请求时间戳","minimum":0,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"lang":{"type":"string","mock":{"mock":"zh_CN"},"description":"语言","minLength":1,"maxLength":50},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名算法,固定sha256","minLength":1,"maxLength":10},"sign":{"type":"string","mock":{"mock":"@string"},"description":"签名","minLength":1,"maxLength":500},"content":{"type":"object","properties":{"userInfo":{"type":"object","properties":{"userId":{"type":"string","description":"用户ID","mock":{"mock":"@natural(32)"},"minLength":32,"maxLength":32},"platform":{"type":"string","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10,"description":"平台标识,MERCHANT 商户会员平台,服务商账户模式(WECHAT_SP服务商openid,WECHAT_O微信openid),直连账户模式(MERCHANT_O商户微信openid)ALIPAY支付宝会员,EBUY 易百会员"}},"required":["userId"],"description":"用户信息"},"useScene":{"type":"string","description":"终端使用场","mock":{"mock":"@string(1, 32)"},"minLength":1,"maxLength":32},"outTradeNo":{"type":"string","description":"请求交易流水号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":32},"storeInfo":{"type":"object","properties":{"deviceNo":{"type":"string","description":"设备号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"shopNo":{"type":"string","description":"门店号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"areaCode":{"type":"string","description":"门店行政区划码","mock":{"mock":"@string(6,6)"},"minLength":6,"maxLength":6},"name":{"type":"string","description":"门店名称","mock":{"mock":"@word(4, 20)"},"minLength":4,"maxLength":20}},"required":["shopNo"],"description":"门店信息"},"orderId":{"type":"string","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":64,"description":"业务订单号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机"},"orderTitle":{"type":"string","description":"订单标题","mock":{"mock":"@title(5, 20)"},"minLength":5,"maxLength":20},"orderDesc":{"type":"string","description":"订单描述,可以用作区分订单来源、订单类别","mock":{"mock":"@csentence"},"minLength":0,"maxLength":2000},"goodsDetail":{"type":"array","items":{"type":"object","properties":{"goodsId":{"type":"string","description":"商品ID,外部编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"goodsCode":{"type":"string","mock":{"mock":"@natural"},"description":"商品编码,内部编号","minLength":0,"maxLength":32},"goodsName":{"type":"string","description":"商品名称","mock":{"mock":"@word(5, 50)"},"minLength":5,"maxLength":50},"goodsNum":{"type":"number","description":"数量","mock":{"mock":"@integer(1, 100)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"priceSale":{"type":"number","description":"售价,单位元","mock":{"mock":"@float(0, 10000, 0, 2)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"spec":{"type":"string","description":"产品规格","mock":{"mock":"@word(1, 5)"},"minLength":1,"maxLength":5},"category":{"type":"string","description":"产品品类","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10},"units":{"type":"string","description":"单位","mock":{"mock":"@word(1,2)"},"minLength":1,"maxLength":2},"incentiveFlag":{"type":"string","description":"优惠标识 (枚举)","mock":{"mock":"@word"},"minLength":0,"maxLength":10}},"required":["goodsId","goodsNum","priceSale"]},"description":"商品信息"},"extendInfo":{"type":"object","properties":{"originalData":{"type":"string","mock":{"mock":"@string"},"description":"异步通知时原样返回","minLength":0,"maxLength":200}},"description":"附加信息","required":[]},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"oriOrderAmount":{"type":"number","description":"单位元,订单原始总金额","mock":{"mock":"110"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"incentiveAmount":{"type":"number","description":"单位元,可参与优惠的金额","mock":{"mock":"10"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"notifyUrl":{"type":"string","description":"交易结果通知地址(带有异步的结果参数)","mock":{"mock":"@url(64,500)"},"minLength":64,"maxLength":500},"afterPayUrl":{"type":"string","description":"支付完成后跳转地址(带有同步的结果参数)","mock":{"mock":"@url(64,500)"},"minLength":64,"maxLength":500},"cancelPayUrl":{"type":"string","description":"中断支付或支付失败跳转地址","mock":{"mock":"@url(64,500)"},"minLength":64,"maxLength":500},"currency":{"type":"string","description":"币种","mock":{"mock":"CNY"},"minLength":3,"maxLength":5},"spbillCreateIp":{"type":"string","description":"设备终端IP","mock":{"mock":"@ip"},"maxLength":15,"minLength":8},"timeStart":{"type":"string","description":"订单请求时间yyyyMMddHHmmss","mock":{"mock":"20191112134949"},"minLength":0,"maxLength":14},"timeExpire":{"type":"string","description":"交易过期时间yyyyMMddHHmmss","mock":{"mock":"20191112134949"},"minLength":0,"maxLength":14},"payMethod":{"type":"array","items":{"type":"object","properties":{"assetType":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":20,"description":"资产类型,枚举。preAuth预授权,cash电子钱包,points积分必填。coupon优惠券,cashcard现金卡。储值卡、优惠券非必填"},"points":{"type":"number","mock":{"mock":"@string"},"description":"assetType是points,此必填。使用积分数","minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"cardCoupons":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":255,"description":"assetType是coupon、cashcard,此必填。卡或者券码列表,格式:\\"cardCoupon01|secret01\\" \'|\'分隔。secret01 是卡密或码密。"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","description":"消费金额。支付/积分/卡 消费金额必填","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true},"goodsId":{"type":"string","mock":{"mock":"@string"},"description":"资产指定适用产品id","minLength":0,"maxLength":50}},"required":["assetType"]},"description":"支付方式"},"subsidy":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","description":"主体编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"amount":{"type":"number","description":"补贴金额","mock":{"mock":"@float(0, 10000)"},"minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true}},"required":["account","amount"]},"description":"补贴描述"}},"required":["goodsDetail","totalAmount","currency","outTradeNo","payMethod","useScene"],"description":"请求报文"}},"required":["uuid","appId","action","timestamp","content","lang","sign","signType"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"appId":{"type":"string","mock":{"mock":"@natural"},"description":"请求AppId","minLength":1,"maxLength":50},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"请求action","minLength":1,"maxLength":50},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"请求时间戳","minimum":0,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"lang":{"type":"string","mock":{"mock":"zh_CN"},"description":"语言","minLength":1,"maxLength":50},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名算法,固定sha256","minLength":1,"maxLength":10},"sign":{"type":"string","mock":{"mock":"@string"},"description":"签名","minLength":1,"maxLength":500},"content":{"type":"object","properties":{"userInfo":{"type":"object","properties":{"userId":{"type":"string","description":"用户ID","mock":{"mock":"@natural(32)"},"minLength":32,"maxLength":32},"platform":{"type":"string","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10,"description":"平台标识,MERCHANT 商户会员平台,服务商账户模式(WECHAT_SP服务商openid,WECHAT_O微信openid),直连账户模式(MERCHANT_O商户微信openid)ALIPAY支付宝会员,EBUY 易百会员"}},"required":["userId"],"description":"用户信息"},"useScene":{"type":"string","description":"终端使用场","mock":{"mock":"@string(1, 32)"},"minLength":1,"maxLength":32},"outTradeNo":{"type":"string","description":"请求交易流水号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":32},"storeInfo":{"type":"object","properties":{"deviceNo":{"type":"string","description":"设备号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"shopNo":{"type":"string","description":"门店号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"areaCode":{"type":"string","description":"门店行政区划码","mock":{"mock":"@string(6,6)"},"minLength":6,"maxLength":6},"name":{"type":"string","description":"门店名称","mock":{"mock":"@word(4, 20)"},"minLength":4,"maxLength":20}},"required":["shopNo"],"description":"门店信息"},"orderId":{"type":"string","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":64,"description":"业务订单号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机"},"orderTitle":{"type":"string","description":"订单标题","mock":{"mock":"@title(5, 20)"},"minLength":5,"maxLength":20},"orderDesc":{"type":"string","description":"订单描述,可以用作区分订单来源、订单类别","mock":{"mock":"@csentence"},"minLength":0,"maxLength":2000},"goodsDetail":{"type":"array","items":{"type":"object","properties":{"goodsId":{"type":"string","description":"商品ID,外部编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"goodsCode":{"type":"string","mock":{"mock":"@natural"},"description":"商品编码,内部编号","minLength":0,"maxLength":32},"goodsName":{"type":"string","description":"商品名称","mock":{"mock":"@word(5, 50)"},"minLength":5,"maxLength":50},"goodsNum":{"type":"number","description":"数量","mock":{"mock":"@integer(1, 100)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"priceSale":{"type":"number","description":"售价,单位元","mock":{"mock":"@float(0, 10000, 0, 2)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"spec":{"type":"string","description":"产品规格","mock":{"mock":"@word(1, 5)"},"minLength":1,"maxLength":5},"category":{"type":"string","description":"产品品类","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10},"units":{"type":"string","description":"单位","mock":{"mock":"@word(1,2)"},"minLength":1,"maxLength":2},"incentiveFlag":{"type":"string","description":"优惠标识 (枚举)","mock":{"mock":"@word"},"minLength":0,"maxLength":10}},"required":["goodsId","goodsNum","priceSale"]},"description":"商品信息"},"extendInfo":{"type":"object","properties":{"originalData":{"type":"string","mock":{"mock":"@string"},"description":"异步通知时原样返回","minLength":0,"maxLength":200}},"description":"附加信息","required":[]},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"oriOrderAmount":{"type":"number","description":"单位元,订单原始总金额","mock":{"mock":"110"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"incentiveAmount":{"type":"number","description":"单位元,可参与优惠的金额","mock":{"mock":"10"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"notifyUrl":{"type":"string","description":"交易结果通知地址(带有异步的结果参数)","mock":{"mock":"@url(64,500)"},"minLength":64,"maxLength":500},"afterPayUrl":{"type":"string","description":"支付完成后跳转地址(带有同步的结果参数)","mock":{"mock":"@url(64,500)"},"minLength":64,"maxLength":500},"cancelPayUrl":{"type":"string","description":"中断支付或支付失败跳转地址","mock":{"mock":"@url(64,500)"},"minLength":64,"maxLength":500},"currency":{"type":"string","description":"币种","mock":{"mock":"CNY"},"minLength":3,"maxLength":5},"spbillCreateIp":{"type":"string","description":"设备终端IP","mock":{"mock":"@ip"},"maxLength":15,"minLength":8},"timeStart":{"type":"string","description":"订单请求时间yyyyMMddHHmmss","mock":{"mock":"20191112134949"},"minLength":0,"maxLength":14},"timeExpire":{"type":"string","description":"交易过期时间yyyyMMddHHmmss","mock":{"mock":"20191112134949"},"minLength":0,"maxLength":14},"payMethod":{"type":"array","items":{"type":"object","properties":{"assetType":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":20,"description":"资产类型,枚举。preAuth预授权,cash电子钱包,points积分必填。coupon优惠券,cashcard现金卡。储值卡、优惠券非必填"},"points":{"type":"number","mock":{"mock":"@string"},"description":"assetType是points,此必填。使用积分数","minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"cardCoupons":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":255,"description":"assetType是coupon、cashcard,此必填。卡或者券码列表,格式:\\"cardCoupon01|secret01\\" \'|\'分隔。secret01 是卡密或码密。"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","description":"消费金额。支付/积分/卡 消费金额必填","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true},"goodsId":{"type":"string","mock":{"mock":"@string"},"description":"资产指定适用产品id","minLength":0,"maxLength":50}},"required":["assetType"]},"description":"支付方式"},"subsidy":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","description":"主体编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"amount":{"type":"number","description":"补贴金额","mock":{"mock":"@float(0, 10000)"},"minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true}},"required":["account","amount"]},"description":"补贴描述"}},"required":["goodsDetail","totalAmount","currency","outTradeNo","payMethod","useScene"],"description":"请求报文"}},"required":["uuid","appId","action","timestamp","content","lang","sign","signType"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"success":{"type":"boolean","mock":{"mock":"@boolean"},"description":"交易成功与否"},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"交易类型","maxLength":50,"minLength":1},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"返回时间戳","minimum":1,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"errorCode":{"type":"string","mock":{"mock":"@word"},"description":"错误码","maxLength":50,"minLength":0},"errorMessage":{"type":"string","mock":{"mock":"@csentence"},"description":"错误描述","maxLength":50,"minLength":0},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名类型","maxLength":20,"minLength":0},"sign":{"type":"string","mock":{"mock":"@natural"},"description":"签名值","maxLength":500,"minLength":0},"content":{"type":"object","properties":{"prepayId":{"type":"string","mock":{"mock":"@natural"},"description":"预支付 ID或者预授权code","minLength":1,"maxLength":128},"paymentChannelType":{"type":"string","description":"支付渠道类型","mock":{"mock":"@string"},"minLength":1,"maxLength":10},"outTradeNo":{"type":"string","description":"外部订单号","mock":{"mock":"@natural(32, 128)"},"minLength":32,"maxLength":128},"paidAmount":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":10,"description":"支付成功总金额。totalAmount - paidAmount > 0 表示用户需要另外支付金额"},"userPaid":{"type":"string","mock":{"mock":"@string"},"description":"用户实付总金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"cardPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"cardResult":{"type":"array","items":{"type":"string"},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"couponResult":{"type":"array","items":{"type":"string"},"description":"券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount"]},"pointsPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"pointsCount":{"type":"string","mock":{"mock":"@string"},"description":"使用积分数","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10}},"description":"积分支付结果","required":["paidAmount","merchantAmount","pointsCount"]},"cashPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额"},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额"},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额"},"tenderCode":{"type":"string","description":"商户收入映射码"},"discountCode":{"type":"string","description":"商户优惠映射码"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount"]},"qrCodeUrl":{"type":"string","mock":{"mock":"@imageData"},"description":"二维码","minLength":1,"maxLength":2000},"channelAppId":{"type":"string","description":"支付渠道的 APP ID","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":32},"redirectUrl":{"type":"string","description":"跳转地址","mock":{"mock":"@string"},"minLength":1,"maxLength":2000},"channelParams":{"type":"object","properties":{},"description":"唤起渠道收银台报文,定制需求,要提前和 ebuy 约定"}},"required":["outTradeNo","paidAmount","userPaid","merchantAmount"],"description":"返回报文"}},"required":["uuid","success","action","timestamp","errorCode","errorMessage","signType","sign","content"]}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"success":{"type":"boolean","mock":{"mock":"@boolean"},"description":"交易成功与否"},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"交易类型","maxLength":50,"minLength":1},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"返回时间戳","minimum":1,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"errorCode":{"type":"string","mock":{"mock":"@word"},"description":"错误码","maxLength":50,"minLength":0},"errorMessage":{"type":"string","mock":{"mock":"@csentence"},"description":"错误描述","maxLength":50,"minLength":0},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名类型","maxLength":20,"minLength":0},"sign":{"type":"string","mock":{"mock":"@natural"},"description":"签名值","maxLength":500,"minLength":0},"content":{"type":"object","properties":{"outTradeNo":{"type":"string","description":"外部订单号","mock":{"mock":"@natural(32, 128)"},"minLength":32,"maxLength":128},"paidAmount":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":10,"description":"支付成功总金额。totalAmount - paidAmount > 0 表示用户需要另外支付金额"},"userPaid":{"type":"string","mock":{"mock":"@string"},"description":"用户实付总金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"cardPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"cardResult":{"type":"array","items":{"type":"string"},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"couponResult":{"type":"array","items":{"type":"string"},"description":"券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount"]},"pointsPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"pointsCount":{"type":"string","mock":{"mock":"@string"},"description":"使用积分数","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10}},"description":"积分支付结果","required":["paidAmount","merchantAmount","pointsCount"]},"cashPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额"},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额"},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额"},"tenderCode":{"type":"string","description":"商户收入映射码"},"discountCode":{"type":"string","description":"商户优惠映射码"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount"]}},"required":["outTradeNo","paidAmount","userPaid","merchantAmount"],"description":"返回报文"}},"required":["uuid","success","action","timestamp","errorCode","errorMessage","signType","sign","content"]}
2022-02-11
{"path":"\/prePay","params":[]}
{"path":"\/prePay","params":[]}
[]
[{"required":"1","name":"Content-Type","value":"application\/json"}]
{}
{"req_body_type":"json"}
{"res_body_type":"json"}
{"res_body_type":"json"}
{}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"appId":{"type":"string","mock":{"mock":"@natural"},"description":"请求AppId","minLength":1,"maxLength":50},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"请求action","minLength":1,"maxLength":50},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"请求时间戳","minimum":0,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"lang":{"type":"string","mock":{"mock":"zh_CN"},"description":"语言","minLength":1,"maxLength":50},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名算法,固定sha256","minLength":1,"maxLength":10},"sign":{"type":"string","mock":{"mock":"@string"},"description":"签名","minLength":1,"maxLength":500},"content":{"type":"object","properties":{"userInfo":{"type":"object","properties":{"userId":{"type":"string","description":"用户ID","mock":{"mock":"@natural(32)"},"minLength":32,"maxLength":32},"platform":{"type":"string","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10,"description":"平台标识,MERCHANT 商户会员平台,服务商账户模式(WECHAT_SP服务商openid,WECHAT_O微信openid),直连账户模式(MERCHANT_O商户微信openid)ALIPAY支付宝会员,EBUY 易百会员"}},"required":["userId"],"description":"用户信息"},"useScene":{"type":"string","description":"终端使用场","mock":{"mock":"@string(1, 32)"},"minLength":1,"maxLength":32},"outTradeNo":{"type":"string","description":"请求交易流水号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":32},"storeInfo":{"type":"object","properties":{"deviceNo":{"type":"string","description":"设备号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"shopNo":{"type":"string","description":"门店号","mock":{"mock":"@natural(5, 32)"},"minLength":5,"maxLength":32},"areaCode":{"type":"string","description":"门店行政区划码","mock":{"mock":"@string(6,6)"},"minLength":6,"maxLength":6},"name":{"type":"string","description":"门店名称","mock":{"mock":"@word(4, 20)"},"minLength":4,"maxLength":20}},"required":["shopNo"],"description":"门店信息"},"orderId":{"type":"string","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":64,"description":"业务订单号,每个对接账号唯一。建议:YYYYMMDD+商户号+店号+随机"},"orderTitle":{"type":"string","description":"订单标题","mock":{"mock":"@title(5, 20)"},"minLength":5,"maxLength":20},"orderDesc":{"type":"string","description":"订单描述,可以用作区分订单来源、订单类别","mock":{"mock":"@csentence"},"minLength":0,"maxLength":2000},"goodsDetail":{"type":"array","items":{"type":"object","properties":{"goodsId":{"type":"string","description":"商品ID,外部编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"goodsCode":{"type":"string","mock":{"mock":"@natural"},"description":"商品编码,内部编号","minLength":0,"maxLength":32},"goodsName":{"type":"string","description":"商品名称","mock":{"mock":"@word(5, 50)"},"minLength":5,"maxLength":50},"goodsNum":{"type":"number","description":"数量","mock":{"mock":"@integer(1, 100)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"priceSale":{"type":"number","description":"售价,单位元","mock":{"mock":"@float(0, 10000, 0, 2)"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"spec":{"type":"string","description":"产品规格","mock":{"mock":"@word(1, 5)"},"minLength":1,"maxLength":5},"category":{"type":"string","description":"产品品类","mock":{"mock":"@word(1, 10)"},"minLength":1,"maxLength":10},"units":{"type":"string","description":"单位","mock":{"mock":"@word(1,2)"},"minLength":1,"maxLength":2},"incentiveFlag":{"type":"string","description":"优惠标识 (枚举)","mock":{"mock":"@word"},"minLength":0,"maxLength":10}},"required":["goodsId","goodsNum","priceSale"]},"description":"商品信息"},"extendInfo":{"type":"object","properties":{"originalData":{"type":"string","mock":{"mock":"@string"},"description":"异步通知时原样返回","minLength":0,"maxLength":200}},"description":"附加信息","required":[]},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"oriOrderAmount":{"type":"number","description":"单位元,订单原始总金额","mock":{"mock":"110"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"incentiveAmount":{"type":"number","description":"单位元,可参与优惠的金额","mock":{"mock":"10"},"minimum":1,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"notifyUrl":{"type":"string","description":"交易结果通知地址(带有异步的结果参数)","mock":{"mock":"@url(64,500)"},"minLength":64,"maxLength":500},"afterPayUrl":{"type":"string","description":"支付完成后跳转地址(带有同步的结果参数)","mock":{"mock":"@url(64,500)"},"minLength":64,"maxLength":500},"cancelPayUrl":{"type":"string","description":"中断支付或支付失败跳转地址","mock":{"mock":"@url(64,500)"},"minLength":64,"maxLength":500},"currency":{"type":"string","description":"币种","mock":{"mock":"CNY"},"minLength":3,"maxLength":5},"spbillCreateIp":{"type":"string","description":"设备终端IP","mock":{"mock":"@ip"},"maxLength":15,"minLength":8},"timeStart":{"type":"string","description":"订单请求时间yyyyMMddHHmmss","mock":{"mock":"20191112134949"},"minLength":0,"maxLength":14},"timeExpire":{"type":"string","description":"交易过期时间yyyyMMddHHmmss","mock":{"mock":"20191112134949"},"minLength":0,"maxLength":14},"payMethod":{"type":"array","items":{"type":"object","properties":{"assetType":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":20,"description":"资产类型,枚举。preAuth预授权,cash电子钱包,points积分必填。coupon优惠券,cashcard现金卡。储值卡、优惠券非必填"},"points":{"type":"number","mock":{"mock":"@string"},"description":"assetType是points,此必填。使用积分数","minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true},"cardCoupons":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":255,"description":"assetType是coupon、cashcard,此必填。卡或者券码列表,格式:\\"cardCoupon01|secret01\\" \'|\'分隔。secret01 是卡密或码密。"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","description":"消费金额。支付/积分/卡 消费金额必填","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true},"goodsId":{"type":"string","mock":{"mock":"@string"},"description":"资产指定适用产品id","minLength":0,"maxLength":50}},"required":["assetType"]},"description":"支付方式"},"subsidy":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","description":"主体编号","mock":{"mock":"@natural"},"minLength":32,"maxLength":32},"amount":{"type":"number","description":"补贴金额","mock":{"mock":"@float(0, 10000)"},"minimum":0,"exclusiveMinimum":true,"maximum":10,"exclusiveMaximum":true}},"required":["account","amount"]},"description":"补贴描述"}},"required":["goodsDetail","totalAmount","currency","outTradeNo","payMethod","useScene"],"description":"请求报文"}},"required":["uuid","appId","action","timestamp","content","lang","sign","signType"]}
{}
{"type":"object","title":"empty object","properties":{"uuid":{"type":"string","mock":{"mock":"@now(\'yyyyMMdd\')-@string(\'lower\',32)"},"description":"请求序列号","minLength":1,"maxLength":50},"success":{"type":"boolean","mock":{"mock":"@boolean"},"description":"交易成功与否"},"action":{"type":"string","mock":{"mock":"createTrade"},"description":"交易类型","maxLength":50,"minLength":1},"timestamp":{"type":"number","mock":{"mock":"@timestamp"},"description":"返回时间戳","minimum":1,"exclusiveMinimum":true,"maximum":14,"exclusiveMaximum":true},"errorCode":{"type":"string","mock":{"mock":"@word"},"description":"错误码","maxLength":50,"minLength":0},"errorMessage":{"type":"string","mock":{"mock":"@csentence"},"description":"错误描述","maxLength":50,"minLength":0},"signType":{"type":"string","mock":{"mock":"sha256"},"description":"签名类型","maxLength":20,"minLength":0},"sign":{"type":"string","mock":{"mock":"@natural"},"description":"签名值","maxLength":500,"minLength":0},"content":{"type":"object","properties":{"prepayId":{"type":"string","mock":{"mock":"@natural"},"description":"预支付 ID或者预授权code","minLength":1,"maxLength":128},"paymentChannelType":{"type":"string","description":"支付渠道类型","mock":{"mock":"@string"},"minLength":1,"maxLength":10},"outTradeNo":{"type":"string","description":"外部订单号","mock":{"mock":"@natural(32, 128)"},"minLength":32,"maxLength":128},"paidAmount":{"type":"string","mock":{"mock":"@string"},"minLength":1,"maxLength":10,"description":"支付成功总金额。totalAmount - paidAmount > 0 表示用户需要另外支付金额"},"userPaid":{"type":"string","mock":{"mock":"@string"},"description":"用户实付总金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"cardPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"cardResult":{"type":"array","items":{"type":"string"},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"couponResult":{"type":"array","items":{"type":"string"},"description":"券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount"]},"pointsPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"pointsCount":{"type":"string","mock":{"mock":"@string"},"description":"使用积分数","minLength":1,"maxLength":10},"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码","minLength":0,"maxLength":20},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码","minLength":0,"maxLength":20},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10}},"description":"积分支付结果","required":["paidAmount","merchantAmount","pointsCount"]},"cashPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额"},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额"},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额"},"tenderCode":{"type":"string","description":"商户收入映射码"},"discountCode":{"type":"string","description":"商户优惠映射码"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount"]},"qrCodeUrl":{"type":"string","mock":{"mock":"@imageData"},"description":"二维码","minLength":1,"maxLength":2000},"channelAppId":{"type":"string","description":"支付渠道的 APP ID","mock":{"mock":"@natural(1, 32)"},"minLength":1,"maxLength":32},"redirectUrl":{"type":"string","description":"跳转地址","mock":{"mock":"@string"},"minLength":1,"maxLength":2000},"channelParams":{"type":"object","properties":{},"description":"唤起渠道收银台报文,定制需求,要提前和 ebuy 约定"}},"required":["outTradeNo","paidAmount","userPaid","merchantAmount"],"description":"返回报文"}},"required":["uuid","success","action","timestamp","errorCode","errorMessage","signType","sign","content"]}
api-id=35405
entities.pages_pointer_enter_mode
Previous
回调外部交易结果通知
Next
支付结果查询-old
No Comments
Add Comment
New Comment
In reply to 1234
Remove
Cancel
Save Comment
Back to top
Entity Select
No Comments