leapcat-kyc
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLeapCat KYC Verification Skill
LeapCat KYC验证Skill
Guide a user through the full Know Your Customer (KYC) verification process using the leapcat. Covers document upload, personal information submission, agreements, and status polling.
引导用户使用leapcat完成完整的Know Your Customer(KYC,了解你的客户)验证全流程,涵盖文档上传、个人信息提交、协议签署和状态轮询。
Prerequisites
前置条件
- Node.js 18+ is required (commands use which auto-downloads the CLI)
npx leapcat@latest - User must be authenticated — run first
npx leapcat@latest auth login --email <email> - Identity document images (e.g., passport, national ID) must be available as local files
- 需要安装Node.js 18+(命令使用会自动下载CLI)
npx leapcat@latest - 用户必须完成身份认证 — 请先运行
npx leapcat@latest auth login --email <email> - 身份证件图片(例如护照、身份证)需已保存为本地文件
Commands
命令
upload (file upload utility)
upload(文件上传工具)
Upload an image file and receive a URL + key for use in subsequent KYC commands.
bash
npx leapcat@latest upload --file <path-to-file> --jsonParameters:
- — Path to a local image file (JPG, PNG, PDF)
--file <path>
Response:
json
{ "url": "https://...", "key": "uploads/..." }上传图片文件并获取URL和密钥,供后续KYC命令使用。
bash
npx leapcat@latest upload --file <path-to-file> --json参数:
- — 本地图片文件路径(支持JPG、PNG、PDF格式)
--file <path>
响应:
json
{ "url": "https://...", "key": "uploads/..." }kyc status
kyc status
Check the current KYC verification status.
bash
npx leapcat@latest kyc status --json查询当前KYC验证状态。
bash
npx leapcat@latest kyc status --jsonkyc detail
kyc detail
Get detailed KYC information including submitted data and review notes.
bash
npx leapcat@latest kyc detail --json获取KYC详细信息,包括已提交的数据和审核备注。
bash
npx leapcat@latest kyc detail --jsonkyc consent
kyc consent
Submit user consent to begin the KYC process.
bash
npx leapcat@latest kyc consent --json提交用户同意书,启动KYC验证流程。
bash
npx leapcat@latest kyc consent --jsonkyc documents
kyc documents
Submit identity document information (type, URLs from upload).
bash
npx leapcat@latest kyc documents --jsonParameters (interactive or via stdin):
- Document type (e.g., PASSPORT, NATIONAL_ID)
- Front image URL (from command)
upload - Back image URL (from command, if applicable)
upload
提交身份证件信息(证件类型、upload命令返回的URL)。
bash
npx leapcat@latest kyc documents --json参数(交互式填写或通过标准输入传入):
- 证件类型(例如PASSPORT、NATIONAL_ID)
- 证件正面图片URL(来自命令返回结果)
upload - 证件背面图片URL(来自命令返回结果,如适用)
upload
kyc personal-info
kyc personal-info
Submit personal information (name, date of birth, address, etc.).
bash
npx leapcat@latest kyc personal-info --json提交个人信息(姓名、出生日期、地址等)。
bash
npx leapcat@latest kyc personal-info --jsonkyc supplementary
kyc supplementary
Submit supplementary documents if requested during review.
bash
npx leapcat@latest kyc supplementary --json如审核过程中要求补充材料,可通过此命令提交补充文档。
bash
npx leapcat@latest kyc supplementary --jsonkyc agreements
kyc agreements
Accept the required legal agreements and disclosures.
bash
npx leapcat@latest kyc agreements --json确认接受所需的法律协议和披露条款。
bash
npx leapcat@latest kyc agreements --jsonkyc submit
kyc submit
Submit the completed KYC application for review.
bash
npx leapcat@latest kyc submit --json提交填写完成的KYC申请进入审核环节。
bash
npx leapcat@latest kyc submit --jsonWorkflow
操作流程
- Check status — Run to see where the user is in the KYC process.
kyc status --json - Consent — If status is , run
NOT_STARTEDto begin.kyc consent --json - Upload documents — Upload each identity document image:
bash
npx leapcat@latest upload --file ./id-front.jpg --json npx leapcat@latest upload --file ./id-back.jpg --json - Submit document metadata — Run and provide the document type and uploaded URLs.
kyc documents --json - Personal information — Run and fill in user details.
kyc personal-info --json - Supplementary documents (optional) — If the KYC status indicates supplementary docs are needed, upload and submit via .
kyc supplementary --json - Agreements — Run to accept legal terms.
kyc agreements --json - Submit for review — Run to finalize the application.
kyc submit --json - Poll status — Periodically run until the status changes to
kyc status --jsonorAPPROVED.REJECTED
- 查询状态 — 运行查看用户当前处于KYC流程的哪个阶段。
kyc status --json - 同意协议 — 如果状态为,运行
NOT_STARTED启动流程。kyc consent --json - 上传证件 — 上传每张身份证件图片:
bash
npx leapcat@latest upload --file ./id-front.jpg --json npx leapcat@latest upload --file ./id-back.jpg --json - 提交证件元数据 — 运行,提供证件类型和上传后得到的URL。
kyc documents --json - 填写个人信息 — 运行填写用户详细信息。
kyc personal-info --json - 补充材料(可选) — 如果KYC状态提示需要补充材料,上传文件后通过提交。
kyc supplementary --json - 确认法律协议 — 运行接受法律条款。
kyc agreements --json - 提交审核 — 运行完成申请提交。
kyc submit --json - 轮询状态 — 定期运行,直到状态变为
kyc status --json(审核通过)或APPROVED(审核驳回)。REJECTED
Error Handling
错误处理
| Error | Cause | Resolution |
|---|---|---|
| Session expired | Re-authenticate with |
| KYC application already under review | Wait for review; check with |
| KYC already completed | No action needed — user is verified |
| Uploaded file is unreadable or wrong format | Re-upload with a clearer image |
| Required personal info fields are empty | Re-run |
| File upload error | Retry |
| 错误码 | 原因 | 解决方法 |
|---|---|---|
| 会话过期 | 使用 |
| KYC申请已提交,正在审核中 | 等待审核,可通过 |
| KYC已审核通过 | 无需操作,用户已完成验证 |
| 上传的文件无法读取或格式错误 | 重新上传更清晰的有效格式图片 |
| 个人信息必填字段为空 | 重新运行 |
| 文件上传失败 | 重试 |