创建收单支付链接
POST
createAcquiringLink
请求参数
Body 参数application/json
userId
string
用户ID
<= 30 字符
amount
number
交易金额
currency
string
国际标准货币三位代码
>= 3 字符<= 3 字符
示例值:
CNY
description
string
描述
<= 200 字符
shopUrl
string
店铺链接
<= 150 字符
customerInfo
object
客户信息
name
string
客户名称
>= 1 字符<= 100 字符
email
string
邮箱
country
string
必需
goodsInfoList
array[object (TradeAcquiringLinkGoodsInfo) {3}]
商品信息
goodsName
string
商品名称
<= 100 字符
unitPrice
number
商品单价
quantity
integer
数量
linkValidity
string
链接有效期
示例值:
yyyy-MM-dd HH:mm:ss
logisticsFee
number
运费
taxFee
number
税费
merTradeNo
string
商户订单号(唯一编号)
<= 30 字符
redirectUrl
string
重定向地址,配置后收银台支付成功将跳转至该地址
<= 500 字符
示例
{
"acquiringPaymentMethod": [],
"amount": "",
"country": "",
"customerId": "",
"description": "",
"goodsItemList": [
{
"quantity": 0,
"recordeId": ""
}
],
"linkName": "",
"linkValidity": "",
"logisticsFee": "",
"merTradeNo": "",
"source": "",
"taxFee": "",
"userId": ""
}
返回响应
🟢200成功
application/json
Body
userId
string
用户ID
tradeId
string
支付ID
merTradeNo
string
商户订单号(唯一编号)
amount
number
金额
currency
string
国际标准货币三位代码
>= 3 字符<= 3 字符
示例值:
CNY
customerEmail
string
客户邮箱
linkUrl
string
链接地址
linkValidity
string
链接有效期
示例值:
yyyy-MM-dd HH:mm:ss
redirectUrl
string
重定向地址
status
enum<string>
支付链接状态
枚举值:
ENABLEUNABLEEXPIREDDELETEPROCESSINGCOMPLETED
示例
{
"userId": "string",
"tradeId": "string",
"merTradeNo": "string",
"amount": 0,
"currency": "CNY",
"customerEmail": "string",
"linkUrl": "string",
"linkValidity": "yyyy-MM-dd HH:mm:ss",
"redirectUrl": "string",
"status": "ENABLE"
}
修改于 2025-01-07 02:56:00