POST/api/v1/payins/{id}/slip
提交银行回单二维码核验 (POST /v1/payins/:id/slip)
ENDPOINT OVERVIEW
POST /api/v1/payins/{id}/slip 作为独立于回调服务器的第三道确认防线,直接根据银行清算记录核验回单二维码并保存唯一哈希以阻止重复提交,绝不依赖易被篡改的图片 OCR。
Protocol Rules
- 核对真实银行记录中的付款账号、精确金额与订单有效窗口。
- 已核销回单永久记录加密哈希,自动拦截二次复用。
Request Examples
curl -X POST https://api.example.com/api/v1/payins/0198cbff-db9b-7b6a-9f82-6a55fdfb6575/slip \
-H "Content-Type: application/json" \
-H "X-API-Key: <your-api-key>" \
-H "X-Timestamp: <unix-timestamp>" \
-H "X-Signature: <hmac-sha256-of-path>" \
-d '{
"qr_payload": "0041000600000101030040220..."
}'Sample JSON Response
{
"id": "0198cbff-db9b-7b6a-9f82-6a55fdfb6575",
"verified": true,
"verification_method": "BANK_QR_RECORD",
"slip_hash": "sha256:9c4d8e1a...f20b",
"status": "succeeded"
}