Skip to main content
e-Buy Docs
View All
Search
Shelves
Books
Log in
Info
Content
Books
e-Buy PaaS API
线上支付API
统一下单
统一下单
基本信息
接口名称:
统一下单
状 态:
已完成
接口路径:
POST
/api/createTrade
更新时间:
2025-03-17 23:53:24
Mock地址:
https://apimock.e-buychina.com/mock/713/api/createTrade
请求参数
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:createTrade
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)
outTradeNo
string
是
请求交易流水号,每个对接账号唯一。日期(格式YYYYMMDD)开头强制校验。建议:YYYYMMDD+商户号+店号+随机
最大长度:32
最小长度:1
Mock:@natural(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+商户号+店号+随机
最大长度:32
最小长度: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
verifyScene
string
否
核销场景
Mock:@string
diningScene
string
否
就餐场景
Mock:@string
tradeComponentOrderId
string
否
交易组件订单号
totalAmount
number
是
单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到
Mock:100
notifyUrl
string
否
交易结果通知地址(带有异步的结果参数)
最大长度:500
最小长度:64
Mock:@url(64,500)
afterPayUrl
string
否
支付完成后跳转地址(带有同步的结果参数)
最大长度:500
最小长度:64
Mock:@url(64,500)
cancelPayUrl
string
否
中断支付或支付失败跳转地址
最大长度:500
最小长度:64
Mock:@url(64,500)
currency
string
是
币种
最大长度:5
最小长度:3
Mock:CNY
spbillCreateIp
string
否
设备终端IP
最大长度:15
最小长度:8
Mock:@ip
timeStart
string
否
订单请求时间yyyyMMddHHmmss
最大长度:14
Mock:20191112134949
timeExpire
string
否
交易过期时间yyyyMMddHHmmss,默认5分钟有效时间
最大长度:14
Mock:20191112134949
payMethod
array
是
支付方式
assetType
string
是
资产类型,枚举。cash电子钱包
最大长度:20
最小长度:1
Mock:@string
payWay
string
否
assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等
最大长度:10
Mock:@string
amount
number
否
消费金额,单位元.必填
Mock:@integer
thirdUserId
string
否
微信或者支付宝的openId
userId
最大长度:32
Mock:@string
返回数据
参数名称
类型
必填
默认值
备注
其他信息
uuid
string
是
请求序列号
最大长度:50
最小长度:1
Mock:@now('yyyyMMdd')-@string('lower',32)
success
boolean
是
交易成功与否
Mock:@boolean
action
string
是
交易类型
最大长度:50
最小长度:1
Mock:createTrade
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
是
返回报文
prepayId
string
否
预支付 ID或者预授权code
最大长度:128
最小长度:1
Mock:@natural
paymentChannelType
string
否
支付渠道类型
最大长度:10
最小长度:1
Mock:@string
outTradeNo
string
是
外部订单号
最大长度:32
最小长度: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
cashPaid
object
否
电子钱包用户支付结果
paidAmount
string
是
此资产支付成功金额
Mock:@string
userAmount
string
是
用户实付金额
Mock:@string
merchantAmount
string
是
商户实收金额
Mock:@string
channelParams
string
是
唤起渠道收银台报文,定制需求,要提前和 ebuy 约定
qrCodeUrl
string
否
二维码
最大长度:2000
最小长度:1
Mock:@imageData
channelAppId
string
否
支付渠道的 APP ID
最大长度:32
最小长度:1
Mock:@natural(1, 32)
redirectUrl
string
否
跳转地址
最大长度:2000
最小长度:1
Mock:@string
channelParams
object
否
唤起渠道收银台报文,定制需求,要提前和 ebuy 约定
备注
金额处理逻辑:
仅支持一种支付(payMethod数组长度1),totalAmount必须填写,payMethod里面的amount可以不填写。如果2个都有,请保持一致。
变更历史
变更日期
变更内容
2025-03-17
{"path":"\/createTrade","params":[]}
{"path":"\/createTrade","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},"outTradeNo":{"type":"string","description":"请求交易流水号,每个对接账号唯一。日期(格式YYYYMMDD)开头强制校验。建议: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},"verifyScene":{"type":"string","mock":{"mock":"@string"},"description":"核销场景"},"diningScene":{"type":"string","mock":{"mock":"@string"},"description":"就餐场景"},"tradeComponentOrderId":{"type":"string","description":"交易组件订单号"}},"description":"附加信息"},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"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,默认5分钟有效时间","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":"资产类型,枚举。cash电子钱包"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true,"description":"消费金额,单位元.必填"},"thirdUserId":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":32,"description":"微信或者支付宝的openId/userId"}},"required":["assetType"]},"description":"支付方式"}},"required":["totalAmount","currency","outTradeNo","payMethod","useScene","goodsDetail"],"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},"outTradeNo":{"type":"string","description":"请求交易流水号,每个对接账号唯一。日期(格式YYYYMMDD)开头强制校验。建议: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":32,"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},"verifyScene":{"type":"string","mock":{"mock":"@string"},"description":"核销场景"},"diningScene":{"type":"string","mock":{"mock":"@string"},"description":"就餐场景"},"tradeComponentOrderId":{"type":"string","description":"交易组件订单号"}},"description":"附加信息"},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"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,默认5分钟有效时间","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":"资产类型,枚举。cash电子钱包"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true,"description":"消费金额,单位元.必填"},"thirdUserId":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":32,"description":"微信或者支付宝的openId/userId"}},"required":["assetType"]},"description":"支付方式"}},"required":["totalAmount","currency","outTradeNo","payMethod","useScene","goodsDetail"],"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},"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":"商户实收金额"},"channelParams":{"type":"string","description":"唤起渠道收银台报文,定制需求,要提前和 ebuy 约定"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount","channelParams"]},"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":{"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":32},"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},"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":"商户实收金额"},"channelParams":{"type":"string","description":"唤起渠道收银台报文,定制需求,要提前和 ebuy 约定"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount","channelParams"]},"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"]}
2025-03-17
{"path":"\/createTrade","params":[]}
{"path":"\/createTrade","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},"outTradeNo":{"type":"string","description":"请求交易流水号,每个对接账号唯一。日期(格式YYYYMMDD)开头强制校验。建议: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},"verifyScene":{"type":"string","mock":{"mock":"@string"},"description":"核销场景"},"diningScene":{"type":"string","mock":{"mock":"@string"},"description":"就餐场景"},"tradeComponentOrderId":{"type":"string","description":"交易组件订单号"}},"description":"附加信息"},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"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,默认5分钟有效时间","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":"资产类型,枚举。cash电子钱包"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true,"description":"消费金额,单位元.必填"},"thirdUserId":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":32,"description":"微信或者支付宝的openId/userId"}},"required":["assetType"]},"description":"支付方式"}},"required":["totalAmount","currency","outTradeNo","payMethod","useScene","goodsDetail"],"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},"outTradeNo":{"type":"string","description":"请求交易流水号,每个对接账号唯一。日期(格式YYYYMMDD)开头强制校验。建议: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},"verifyScene":{"type":"string","mock":{"mock":"@string"},"description":"核销场景"},"diningScene":{"type":"string","mock":{"mock":"@string"},"description":"就餐场景"},"tradeComponentOrderId":{"type":"string","description":"交易组件订单号"}},"description":"附加信息"},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"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,默认5分钟有效时间","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":"资产类型,枚举。cash电子钱包"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true,"description":"消费金额,单位元.必填"},"thirdUserId":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":32,"description":"微信或者支付宝的openId/userId"}},"required":["assetType"]},"description":"支付方式"}},"required":["totalAmount","currency","outTradeNo","payMethod","useScene","goodsDetail"],"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},"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":{"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},"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":"商户实收金额"},"channelParams":{"type":"string","description":"唤起渠道收银台报文,定制需求,要提前和 ebuy 约定"}},"description":"电子钱包用户支付结果","required":["paidAmount","userAmount","merchantAmount","channelParams"]},"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"]}
2025-03-17
{"path":"\/createTrade","params":[]}
{"path":"\/createTrade","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},"outTradeNo":{"type":"string","description":"请求交易流水号,每个对接账号唯一。日期(格式YYYYMMDD)开头强制校验。建议: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},"verifyScene":{"type":"string","mock":{"mock":"@string"},"description":"核销场景"},"diningScene":{"type":"string","mock":{"mock":"@string"},"description":"就餐场景"},"tradeComponentOrderId":{"type":"string","description":"交易组件订单号"}},"description":"附加信息"},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"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,默认5分钟有效时间","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":"资产类型,枚举。cash电子钱包"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true,"description":"消费金额,单位元.必填"},"thirdUserId":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":32,"description":"微信或者支付宝的openId/userId"}},"required":["assetType"]},"description":"支付方式"}},"required":["totalAmount","currency","outTradeNo","payMethod","useScene","goodsDetail"],"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},"outTradeNo":{"type":"string","description":"请求交易流水号,每个对接账号唯一。日期(格式YYYYMMDD)开头强制校验。建议: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},"verifyScene":{"type":"string","mock":{"mock":"@string"},"description":"核销场景"},"diningScene":{"type":"string","mock":{"mock":"@string"},"description":"就餐场景"},"tradeComponentOrderId":{"type":"string","description":"交易组件订单号"}},"description":"附加信息"},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"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,默认5分钟有效时间","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":"资产类型,枚举。cash电子钱包"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true,"description":"消费金额,单位元.必填"},"thirdUserId":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":32,"description":"微信或者支付宝的openId/userId"}},"required":["assetType"]},"description":"支付方式"}},"required":["totalAmount","currency","outTradeNo","payMethod","useScene","goodsDetail"],"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},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"useList":{"type":"array","items":{"type":"object","properties":{"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码"},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码"},"errorCode":{"type":"string","mock":{"mock":"@string"},"description":"具体使用结果状态码"},"paidAmount":{"type":"number","mock":{"mock":"@float"},"description":"券折抵金额"},"merchantAmount":{"type":"number","mock":{"mock":"@float"},"description":"商户实收金额"},"userAmount":{"type":"number","mock":{"mock":"@float"},"description":"用户实付金额"}},"required":["tenderCode","discountCode","errorCode","paidAmount","merchantAmount","userAmount"]},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"paymentStatus":{"type":"string","description":"交易结果Success成功,其他失败","mock":{"mock":"@string"}},"useList":{"type":"array","items":{"type":"object","properties":{"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码"},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码"},"errorCode":{"type":"string","mock":{"mock":"@string"},"description":"具体使用结果状态码 00成功"},"paidAmount":{"type":"number","mock":{"mock":"@float"},"description":"券折抵金额"},"merchantAmount":{"type":"number","mock":{"mock":"@float"},"description":"商户实收金额"},"userAmount":{"type":"number","mock":{"mock":"@float"},"description":"用户实付金额"},"marketCode":{"type":"string","mock":{"mock":"@string"},"description":"产品编码"},"payChannelDiscount":{"type":"number","mock":{"mock":"@integer"},"description":"平台补贴金额"},"payMerchantDiscount":{"type":"number","mock":{"mock":"@integer"},"description":"商家补贴金额"},"code":{"type":"string","mock":{"mock":"@string"},"description":"券码"},"channelBenefit":{"type":"string","description":"平台优惠","mock":{"mock":"@string"}},"merchantBenefit":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠"}},"required":["tenderCode","discountCode","errorCode","paidAmount","merchantAmount","userAmount","marketCode","code","channelBenefit","merchantBenefit"]},"description":"每张券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount","paymentStatus"]},"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":{"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},"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"]}
2025-03-17
{"path":"\/createTrade","params":[]}
{"path":"\/createTrade","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},"outTradeNo":{"type":"string","description":"请求交易流水号,每个对接账号唯一。日期(格式YYYYMMDD)开头强制校验。建议: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},"verifyScene":{"type":"string","mock":{"mock":"@string"},"description":"核销场景"},"diningScene":{"type":"string","mock":{"mock":"@string"},"description":"就餐场景"},"tradeComponentOrderId":{"type":"string","description":"交易组件订单号"}},"description":"附加信息"},"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,默认5分钟有效时间","mock":{"mock":"20191112134949"},"minLength":0,"maxLength":14},"qrCode":{"type":"string","description":"付款码","minLength":0,"maxLength":64},"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","minLength":0,"maxLength":32},"useLimit":{"type":"string","mock":{"mock":"@string"},"description":"资产使用限制规则码,如需咨询ebuy对接人员,卡券父类型","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":["totalAmount","currency","outTradeNo","payMethod","useScene","goodsDetail"],"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},"outTradeNo":{"type":"string","description":"请求交易流水号,每个对接账号唯一。日期(格式YYYYMMDD)开头强制校验。建议: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},"verifyScene":{"type":"string","mock":{"mock":"@string"},"description":"核销场景"},"diningScene":{"type":"string","mock":{"mock":"@string"},"description":"就餐场景"},"tradeComponentOrderId":{"type":"string","description":"交易组件订单号"}},"description":"附加信息"},"totalAmount":{"type":"number","description":"单位元,去除其他支付后金额剩余待支付金额,电子钱包和卡支付会用到","mock":{"mock":"100"},"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,默认5分钟有效时间","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":"资产类型,枚举。cash电子钱包"},"payWay":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":10,"description":"assetType是cash,此必填。电子钱包支付必填,枚举渠道标识,枚举值。格式为:支付渠道,例如:WECHAT、ALIPAY、FOMOPAY 等"},"amount":{"type":"number","mock":{"mock":"@integer"},"minimum":1,"exclusiveMinimum":true,"maximum":10000,"exclusiveMaximum":true,"description":"消费金额,单位元.必填"},"thirdUserId":{"type":"string","mock":{"mock":"@string"},"minLength":0,"maxLength":32,"description":"微信或者支付宝的openId/userId"}},"required":["assetType"]},"description":"支付方式"}},"required":["totalAmount","currency","outTradeNo","payMethod","useScene","goodsDetail"],"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},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"useList":{"type":"array","items":{"type":"object","properties":{"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码"},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码"},"errorCode":{"type":"string","mock":{"mock":"@string"},"description":"具体使用结果状态码"},"paidAmount":{"type":"number","mock":{"mock":"@float"},"description":"券折抵金额"},"merchantAmount":{"type":"number","mock":{"mock":"@float"},"description":"商户实收金额"},"userAmount":{"type":"number","mock":{"mock":"@float"},"description":"用户实付金额"}},"required":["tenderCode","discountCode","errorCode","paidAmount","merchantAmount","userAmount"]},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"paymentStatus":{"type":"string","description":"交易结果Success成功,其他失败","mock":{"mock":"@string"}},"useList":{"type":"array","items":{"type":"object","properties":{"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码"},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码"},"errorCode":{"type":"string","mock":{"mock":"@string"},"description":"具体使用结果状态码 00成功"},"paidAmount":{"type":"number","mock":{"mock":"@float"},"description":"券折抵金额"},"merchantAmount":{"type":"number","mock":{"mock":"@float"},"description":"商户实收金额"},"userAmount":{"type":"number","mock":{"mock":"@float"},"description":"用户实付金额"},"marketCode":{"type":"string","mock":{"mock":"@string"},"description":"产品编码"},"payChannelDiscount":{"type":"number","mock":{"mock":"@integer"},"description":"平台补贴金额"},"payMerchantDiscount":{"type":"number","mock":{"mock":"@integer"},"description":"商家补贴金额"},"code":{"type":"string","mock":{"mock":"@string"},"description":"券码"},"channelBenefit":{"type":"string","description":"平台优惠","mock":{"mock":"@string"}},"merchantBenefit":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠"}},"required":["tenderCode","discountCode","errorCode","paidAmount","merchantAmount","userAmount","marketCode","code","channelBenefit","merchantBenefit"]},"description":"每张券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount","paymentStatus"]},"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":{"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},"merchantAmount":{"type":"string","description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","description":"用户实付金额","minLength":1,"maxLength":10},"useList":{"type":"array","items":{"type":"object","properties":{"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码"},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码"},"errorCode":{"type":"string","mock":{"mock":"@string"},"description":"具体使用结果状态码"},"paidAmount":{"type":"number","mock":{"mock":"@float"},"description":"券折抵金额"},"merchantAmount":{"type":"number","mock":{"mock":"@float"},"description":"商户实收金额"},"userAmount":{"type":"number","mock":{"mock":"@float"},"description":"用户实付金额"}},"required":["tenderCode","discountCode","errorCode","paidAmount","merchantAmount","userAmount"]},"description":"卡使用结果"}},"description":"cashcard 支付结果","required":["paidAmount","merchantAmount","userAmount"]},"couponPaid":{"type":"object","properties":{"paidAmount":{"type":"string","mock":{"mock":"@string"},"description":"此资产支付成功金额","minLength":1,"maxLength":10},"merchantAmount":{"type":"string","mock":{"mock":"@string"},"description":"商户实收金额","minLength":1,"maxLength":10},"userAmount":{"type":"string","mock":{"mock":"@string"},"description":"用户实付金额","minLength":1,"maxLength":10},"paymentStatus":{"type":"string","description":"交易结果Success成功,其他失败","mock":{"mock":"@string"}},"useList":{"type":"array","items":{"type":"object","properties":{"tenderCode":{"type":"string","mock":{"mock":"@string"},"description":"商户收入映射码"},"discountCode":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠映射码"},"errorCode":{"type":"string","mock":{"mock":"@string"},"description":"具体使用结果状态码 00成功"},"paidAmount":{"type":"number","mock":{"mock":"@float"},"description":"券折抵金额"},"merchantAmount":{"type":"number","mock":{"mock":"@float"},"description":"商户实收金额"},"userAmount":{"type":"number","mock":{"mock":"@float"},"description":"用户实付金额"},"marketCode":{"type":"string","mock":{"mock":"@string"},"description":"产品编码"},"payChannelDiscount":{"type":"number","mock":{"mock":"@integer"},"description":"平台补贴金额"},"payMerchantDiscount":{"type":"number","mock":{"mock":"@integer"},"description":"商家补贴金额"},"code":{"type":"string","mock":{"mock":"@string"},"description":"券码"},"channelBenefit":{"type":"string","description":"平台优惠","mock":{"mock":"@string"}},"merchantBenefit":{"type":"string","mock":{"mock":"@string"},"description":"商户优惠"}},"required":["tenderCode","discountCode","errorCode","paidAmount","merchantAmount","userAmount","marketCode","code","channelBenefit","merchantBenefit"]},"description":"每张券使用结果"}},"description":"coupon支付结果","required":["paidAmount","merchantAmount","userAmount","paymentStatus"]},"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=37506
entities.pages_pointer_enter_mode
Previous
线上支付API
Next
交易查询
No Comments
Add Comment
New Comment
In reply to 1234
Remove
Cancel
Save Comment
Back to top
Entity Select
No Comments