Skip to content

陪玩申请表单 ​

GET /companion-application-form

权限范围幂等operationId
companions:read只读CompanionApplications_form

本店陪玩注册字段配置(是否启用、是否必填)、首考可选证书、默认保证金。按它渲染你自己的表单,店铺改了字段你不用改代码。

示例 ​

js
const res = await client.get("/companion-application-form");
http
GET /open/v1/companion-application-form HTTP/1.1
Host: api.sybb.pw
Authorization: SY-HMAC-SHA256 Credential=ak_…, Timestamp=1796035200, Nonce=…, Signature=…

响应 200:

json
{
  "fields": [
    {
      "key": "string",
      "label": "可用储值",
      "type": "string",
      "enabled": true,
      "required": true
    }
  ],
  "firstAuditCerts": [
    {
      "certId": "cert_18UujqA5W1qOoP5Cwza75Ke",
      "name": "周末双排体验券",
      "level": 2,
      "score": 1,
      "depositCents": 10000,
      "firstAuditSelectable": true,
      "enabled": true
    }
  ],
  "defaultDepositCents": 10000
}

响应 ​

ApplicationFormView ​

字段类型必填说明
fieldsFormFieldView[]申请表单字段(键见 GET /companion-application-form)
firstAuditCertsCertView[]
defaultDepositCentsinteger是金额(分)

FormFieldView ​

字段类型必填说明
keystring字段名(提交申请时 fields 的键)
labelstring显示名
typestringstring 文本 / integer 整数 / enum01 是否(0 或 1)/ file_ids 图片或 PDF(先调「上传文件」拿 fileId, 这里传 fileId 数组,最多 9 个)/ cert_ids 证书(用 skillCertIds 提交)
enabledboolean是店铺是否启用这个字段
requiredboolean是是否必填

CertView ​

字段类型必填说明
certIdstring证书 ID(cert_…)
namestring名称
levelinteger证书等级
scoreinteger证书分值
depositCentsinteger需缴押金(分)
firstAuditSelectableboolean是申请时可自选(提交申请的 skillCertIds 只能从这些里选)
enabledboolean是是否启用

错误 ​

签名、权限、限流等通用错误见错误处理。

ByteForge · 神运开放平台接口地址 https://api.sybb.pw/open/v1