基础URL: http://你的域名
API密钥: 需要在请求头中携带 X-API-Key: your_api_key
接口: POST /api/create
请求头: Content-Type: application/json
请求示例:
{
"type": "alipay",
"name": "VIP会员",
"money": "100.00",
"device": "pc",
"param": "user_id=123"
}
返回示例:
{
"code": 1,
"msg": "创建成功",
"out_trade_no": "20260209123456789",
"data": {
"qrcode": "支付二维码链接",
"payurl": "支付跳转链接"
}
}
接口: GET /api/query/订单号
示例: GET /api/query/20260209123456789
返回示例:
{
"code": 1,
"data": {
"out_trade_no": "20260209123456789",
"status": "success",
"amount": "100.00",
"trade_no": "平台订单号"
}
}
接口: POST /notify
说明: 支付平台会在支付成功后调用此接口
处理方式: 验证签名后返回 "success"
| 错误码 | 说明 |
|---|---|
| 0 | 失败 |
| 1 | 成功 |
| 1001 | 参数错误 |
| 1002 | 签名验证失败 |
| 1003 | 订单不存在 |
| 1004 | 支付失败 |
蒂姆云支付系统 © 2026 | 查看日志