跳至正文內容
Back to API Reference
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"
}