# 1 收款下单接口

# 简要描述

  • 商户代付-收单接口

# HTTP请求信息

# 请求URL

  • {domain}/open-api/dynamic/payment/code

# 请求方式

  • POST

# 请求头

参数名 必选 类型 说明
Content-Type mandatory string application/json

# 请求体参数

参数名 必选 类型 长度限制 示例 说明
appId string - - 应用APPID
param string - - 参数体
sign string - 45eebd745dcf0b5f6d6f9fcde28cd9fe8116a892 签名

# param 参数

参数名 必选 类型 长度限制 示例 说明
mchOrderId string 10-32 CCP20220428011068111 商户订单id, 格式:字母+数字,10-32位
channelCode string - ALFAMART_VA 渠道编码
amount long 2000-100000000 50000 收款金额
email string - - 用户邮箱 格式:邮箱格式
mobile string - - 用户手机号
customerName string 1-100 - 付款人姓名
notifyUrl string 商户交易通知 URL
remark string - - 收单备注
timestamp long - 1678356680000 毫秒时间戳

# channelCode参考此列表

# 请求体示例

{
  "appId": "abc6e413c37f14f9fabc36fcee8d97c5e",
  "sign": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "param": "{\"mchOrderId\":\"TestMchOrderIdP0001\",\"amount\":10000,\"email\":\"test@123.com\",\"mobile\":\"81234567890\",\"customerName\":\"test\",\"remark\":\"test payment code\",\"notifyUrl\":\"http://test\",\"channelCode\":\"ALFAMART_DYNAMIC_VA\",\"timestamp\":1678356680000}"
}

# 返回示例

# 返回参数

参数名 必选 类型 长度限制 示例 说明
code integer 10000 参考此列表
message string Success 参考此列表
data object
-transactionId string 20 C1630761265167208448 Eztrans 流水号
-transactionCreateTime string - 2023-03-01 09:45:58 交易创建时间
-transactionReturnTime string - 2023-03-01 09:45:58 交易完成时间
-transactionAmount integer - 10000 金额
-transactionStatus string - PENDING 交易状态 参考此列表
-remark string - 备注
-paymentCode object -
--mchOrderId string 10-32 TestMchOrderIdP0001 商户订单号
--channelCode string - ALFAMART_VA 渠道码
--referenceNumber string - 00012819 还款码
--expireTime string - 2023-03-13 20:19:52 到期时间

# code 参考此列表

# 成功响应示例

{
  "code": 10000,
  "message": "Success",
  "data": {
    "transactionId": "C1630761265167208448",
    "transactionCreateTime": "2023-03-01 09:45:58",
    "transactionReturnTime": null,
    "transactionAmount": 10000,
    "transactionStatus": "PENDING",
    "remark": null,
    "paymentCode": {
      "mchOrderId": "TestMchOrderIdP0001",
      "channelCode": "ALFAMART_DYNAMIC_VA",
      "referenceNumber": "00012819",
      "expireTime": "2023-03-13 20:12:34"
    }
  }
}

# 失败响应示例

{
  "code": 21000,
  "message": "Service error, please contact administrator",
  "data": null
}