Appearance
代收下单
path: /openapi/rc/create
method: POST
content-type: application/json
公共请求参数
| 属性 | 描述 | 示例 | 类型 | 必填 |
|---|---|---|---|---|
| time_stamp | 当前时间戳,精度:秒 | 1613719331 | string | 是 |
| mch_no | 商户号 | 1611906847 | string | 是 |
| nonce | 随机字符串 | 9ZD0fWnWg1VPRlOV | string(32) | 是 |
| sign | 签名,生成方法见签名规则页 | string | 是 |
接口参数
| 属性 | 描述 | 示例 | 类型 | 必填 |
|---|---|---|---|---|
| out_order_no | 商户订单号 | test0001 | string(64) | 是 |
| amount | 订单金额,单位(分) | 1000 | string | 是 |
| pay_type | 产品编码 | ALI_QR | string | 是 |
| currency | 币种 | CNY | string | 是 |
| client_ip | 用户ip地址 | 1.1.1.1 | string | 是 |
| attach | 标识符,回调时会原样返回 | test | string(64) | 否 |
| notify_url | 回调地址 | https://www.google.com | string(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
}