sumsub-check-permissions
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCheck Permissions
检查权限
Returns the tenant's allowed entitlements so callers can gate features before making any API writes.
返回租户的允许权限,以便调用方在执行任何API写入操作前限制功能。
Usage
使用方法
Run the script and parse the result:
bash
bash ${CLAUDE_SKILL_DIR}/scripts/check_permissions.shOutput: raw Sumsub response body followed by .
HTTP <code>Success (HTTP 200):
json
{"allowedChecks": {"REUSABLE_KYC_SDK": "Reusable KYC via API/SDK: ...", "VIDEO_IDENT": "Video Identification: ..."}}
HTTP 200Error (non-200):
json
{"description":"Unauthorized","errorName":"...","correlationId":"..."}
HTTP 401- — map of permission key → human-readable label for all entitlements enabled for this tenant.
allowedChecks - Permission keys present as keys of are the allowed entitlements.
allowedChecks
运行脚本并解析结果:
bash
bash ${CLAUDE_SKILL_DIR}/scripts/check_permissions.sh输出:原始Sumsub响应体,后跟。
HTTP <code>成功(HTTP 200):
json
{"allowedChecks": {"REUSABLE_KYC_SDK": "Reusable KYC via API/SDK: ...", "VIDEO_IDENT": "Video Identification: ..."}}
HTTP 200错误(非200):
json
{"description":"Unauthorized","errorName":"...","correlationId":"..."}
HTTP 401- — 此租户已启用的所有权限的权限键→易读标签映射。
allowedChecks - 中的键即为允许的权限。
allowedChecks
How callers should use this
调用方应如何使用
If the HTTP status is not 200, stop immediately — show the error body to the user and do not proceed.
After a successful response, check whether the required key is present in . If it is not, stop immediately — do not build or POST the payload. Tell the user which entitlement is missing and that they need to contact their CSM or Sumsub Support to get it enabled.
BackgroundCheckTargetallowedChecksEntitlement → feature mapping (key examples):
| Feature | Required entitlement |
|---|---|
| |
| |
| |
| |
| |
| |
| NFC chip reading | |
| Video ident sessions | |
| Reusable KYC via SDK | |
| Known face search | |
| AML / watchlist step | |
如果HTTP状态码不是200,立即停止——向用户显示错误体,不要继续执行。
成功响应后,检查所需的键是否存在于中。如果不存在,立即停止——不要构建或POST请求载荷。告知用户缺少哪个权限,以及他们需要联系客户成功经理(CSM)或Sumsub支持团队来启用该权限。
BackgroundCheckTargetallowedChecks权限→功能映射(键示例):
| 功能 | 所需权限 |
|---|---|
| |
| |
| |
| |
| |
| |
| NFC芯片读取 | |
| 视频身份验证会话 | |
| 通过SDK复用KYC | |
| 已知人脸搜索 | |
| AML/观察名单步骤 | |