Skip to content

代收下单

path: /openapi/rc/create

method: POST

content-type: application/json

公共请求参数

属性描述示例类型必填
time_stamp当前时间戳,精度:秒1613719331string
mch_no商户号1611906847string
nonce随机字符串9ZD0fWnWg1VPRlOVstring(32)
sign签名,生成方法见签名规则页string

接口参数

属性描述示例类型必填
out_order_no商户订单号test0001string(64)
amount订单金额,单位(分)1000string
pay_type产品编码ALI_QRstring
currency币种CNYstring
client_ip用户ip地址1.1.1.1string
attach标识符,回调时会原样返回teststring(64)
notify_url回调地址https://www.google.comstring(128)

参数示例

json
{
    "time_stamp": "1613719331",
    "mch_no": "1611906847",
    "nonce": "9ZD0fWnWg1VPRlOV",
    "sign": "8cf605c78f09565c84e46389bf0cec6691e6e83b1fd5f78ef8710d6581b4540e",
    "out_order_no": "test0001",
    "amount": "1000",
    "pay_type": "ALI_QR",
    "client_ip": "1.1.1.1",
    "attach": "test",
    "notify_url": "https://www.google.com",
    "currency": "CNY"
}

接口响应

json
{
	"code": 2000, 
	"data": {
		"amount": 1000,
		"pay_type": "AliQr",
		"pay_url": "https://www.test123.com",
		"qr_code": "",
		"sdk_param": "",
		"trade_no": "PR20230620182223102544P"
	},
	"msg": null
}