Parameter | Type | Mandatory | Description | Sample |
---|---|---|---|---|
out_trade_no | String(64) | Y | The unique order id passed by the merchant. | 6823789339978248 |
qr_code | String | Y | The URL for QR code of this request. The merchant can use it to generate the matching QR code. | https://qr.alipay.com/bavh4wjlxf12tper3a| |
code | String(64) | Y | The return code if the transaction is successful. | 10000 for success, 40004 for failure. |
Sample response:
{ "alipay_trade_precreate_response": { "code": "10000", "msg": "处理成功", "out_trade_no": "6823789339978248", "qr_code": "https://qr.alipay.com/bavh4wjlxf12tper3a" }, "sign": "jfAz0Yi0OUvAPqYTzA0DLysx0ri++yf7o/lkHOHaG1Zy2fHBf3j4WM+sJWHZUuyInt6V+wn+6IP9AmwRTKi+GGdWjPrsfBjXqR7H5aBnLhMsAltV7v4cYjhuguAqh4WkaJO6v6CfdybDpzHlxE6Thoucnad+OsjdCXkNd1g3UuU=" }
Sample response:
{ "alipay_trade_precreate_response": { "code": "40004", "msg": "处理失败", "sub_code": "ACQ.TRADE_BUYER_NOT_MATCH", "sub_msg": "交易买家不匹配" }, "sign": "jfAz0Yi0OUvAPqYTzA0DLysx0ri++yf7o/lkHOHaG1Zy2fHBf3j4WM+sJWHZUuyInt6V+wn+6IP9AmwRTKi+GGdWjPrsfBjXqR7H5aBnLhMsAltV7v4cYjhuguAqh4WkaJO6v6CfdybDpzHlxE6Thoucnad+OsjdCXkNd1g3UuU=" }