WaaS项目
WaaS 错误代码
WaaS API 的错误码说明,包含现有接口与订单模式的错误码及建议处理方式。
适用范围
本页包含现有 WaaS 接口错误码与 WaaS 订单模式错误码,请按所调用的接口查阅对应章节。团队 API 使用不同的认证方式和错误码体系,请勿混用。
快速跳转:现有 WaaS 接口错误码 · WaaS 订单模式错误码
WaaS 错误代码
成功码为 00000,其他代码表示异常。
| 错误码 | 返回内容 | 描述 | 解决方案 |
|---|---|---|---|
| Axxxx | Param Error | 参数错误 | 请联系 Cregis 客服处理 |
| B0001 | Signature Error | 签名错误 | 请检查签名参数和方法是否都符合签名算法要求,签名规则请参考签名规则 |
| T0062 | Please expand the number of API addresses or upgrade the subscription version first | API 地址数不足 | 扩容 API 地址数量或者升级订阅版本,详情参考管理团队版本 |
| E0001 | The IP is not added to the whitelist list | 请求 Cregis API 服务的 IP 地址未授权 | 登录 Cregis 客户端,配置 IP 白名单,详情参考配置 IP 白名单 |
| E0002 | Alias or remark must be a combination of {} characters or less | 别名或备注必须是 {} 位字符以内组合 | 请检查 alias(地址别名)或 remark(备注)字段格式是否符合要求 |
| E0003 | Item does not exist or item status is anomalous | 项目不存在或项目状态异常 | 1. 检查项目 ID(pid)是否正确;2. 确认项目状态是否处于启用状态 |
| E0004 | Unsupported interface type | 不支持的接口类型 | 项目接口类型没有开启,请登录 Cregis 开启,详情参考编辑项目接口类型 |
| E0005 | Unsupported coin | 不支持的币种 | 请检查请求币种 Cregis 是否已支持,详情参考支持的网络和代币 |
| E0006 | The withdrawal amount must be greater than 0 | 提币金额需大于 0 | 请检查提币请求中的 amount(金额)字段,不允许为空或 0 |
| E0007 | Incorrect accuracy of the withdrawal amount | 提币金额精度错误 | 请检查提币请求中的 amount(金额)字段精度是否符合 Cregis 要求,详情参考支持的代币 |
| E0008 | Address is invalid | 地址不合法 | 请检查地址格式是否正确或是否属于该网络地址 |
| E0009 | Duplicate business number | 三方业务编号重复 | 请检查提币请求中的 third_party_id(三方业务编号)字段是否重复,由您自己的业务系统生成 |
| E0010 | Wallet does not exist | 钱包不存在 | 请检查钱包 ID 是否正确,可前往 Cregis 客户端 > WaaS 项目 > 设置 > 开发者 > 接口类型 查看钱包 ID |
| E0016 | Amount error | 金额错误 | 请检查请求参数中的 amount(金额)字段是否正确 |
| E0018 | Order number must be unique | 订单编号不允许重复 | 请检查 order_number(订单编号)字段是否重复,由您自己的业务系统生成 |
| E0019 | Order number exceeds 128 characters | 订单编号长度超过 128 位字符 | 请检查 order_number(订单编号)字段长度是否符合要求 |
| E0021 | Order remark exceeds 256 characters | 订单备注长度超过 256 位字符 | 请检查 order remark(订单备注)字段长度是否符合要求 |
| E0022 | Order amount must be greater than 0 | 订单金额需大于 0 | 请检查请求中的 amount(订单金额)字段,不允许为空或 0 |
| E0023 | Order amount precision error | 订单金额精度错误 | 请检查订单金额精度是否符合要求,详情参考支持的网络和代币 |
| E0024 | Order does not exist | 订单不存在 | 未查询到订单信息,请检查 order_id(订单编号)是否有误 |
| E0025 | Incorrect payer information | 付款人信息有误 | 请检查付款人姓名、付款人 id、邮箱号长度或格式是否符合要求 |
| E0026 | Please input in minutes. Minimum is {} minutes, maximum {} minutes | 超时时间超出范围,请设置在 {} 至 {} 分钟之间 | 订单超时时间必须设置在 {} 至 {} 分钟之间 |
| E0027 | Number of addresses set incorrectly | 批量生成地址数量超出限制 | 单次最多可批量生成 100 个子地址 |
| E0028 | Unsupported address status value | 不支持的地址状态值 | 为状态属性提供有效值,0-启用,1-禁用 |
| E0029 | At least one modification required | 至少一个修改项 | 至少修改 callback_url、alias、status 其中一项 |
| E0030 | Address does not belong to this project | 地址不属于该项目 | 请检查项目 ID(pid)与地址(address)是否正确 |
| E0031 | Failed to create the checkout counter | 创建收银台失败 | 创建收银台失败,请联系 Cregis 客服处理 |
| E0032 | Memo content only supports numeric characters and must be less than 4294967295 | Memo 只支持数字,并且必须小于 4294967295 | 请检查 Memo 格式是否符合要求 |
| E0033 | Please expand the number of API addresses or upgrade the subscription version first | 子地址数不足 | 升级子地址套餐或订阅版本,更多信息请参见管理团队版本 |
| E0034 | The number of available withdrawals is insufficient | API 付款笔数不足 | 升级订阅版本,更多信息请参见管理团队版本 |
| E0035 | payer email address is compulsory if partial or over payment is unacceptable | 付款人邮箱不能为空 | 请在请求中提供付款人邮箱字段 |
| E0036 | overpaid_tolerance or underpaid_tolerance < 0 | 订单支付上下限额设置必须大于 0 | 请检查 overpaid_tolerance 与 underpaid_tolerance 字段,确保设置值大于 0 |
| E0037 | Please set the default payout wallet | 提币钱包不匹配 | 提币钱包必须使用项目指定的出款钱包,请参考创建项目 |
| E0038 | The collectible balance is 0 | 地址可归集金额为 0 | 地址可归集余额为 0,无需触发归集 |
| E0039 | The subscription has expired. Please renew | 子地址订阅已到期,需要续费 | 续订您的子地址套餐以继续使用服务,更多信息请参见管理团队版本 |
| E0040 | The receiving address must be a wallet address from the current project. | API 归集限制只允许往当前 WaaS 项目钱包地址进行归集 | API 归集的接收方地址必须是 WaaS 项目子地址,请检查后重试 |
| E0041 | Address is in the team blacklist. | 该地址已被团队列入黑名单 | 该地址已被团队列入黑名单,禁止交易 |
| E0042 | The token has not been added to the current wallet | 当前钱包未添加该币种 | 请前往“Cregis 客户端 > 钱包 > 设置 > 币种管理”添加 |
| Z0004 | Accessing too frequently, please try again later | 访问过于频繁,请稍候再试 | 请等待频率限制解除后再试,具体频率限制请参考对应接口文档。 |
WaaS 订单模式错误码
适用接口:创建订单、查询订单。查询订单适用 WO0001、WO0002、WO0003、WO0027;创建订单适用除 WO0027 外的表内错误码。
| 错误码 | 触发条件 | 原始错误消息 | 处理建议 |
|---|---|---|---|
| WO0001 | API Key 不允许用于 WaaS 订单模式。 | This API key is not permitted for use with WaaS Order Mode. Please use a valid key configured for this mode. | 使用为 WaaS 订单模式配置的有效 API Key。 |
| WO0002 | pid 不存在或项目已停用。 | The pid does not exist or the project is disabled. | 检查 pid,并确认项目存在且已启用。 |
| WO0003 | 请求 IP 不在项目白名单中。 | The requesting IP address ({IP}) is not on the project's whitelist. Please add it under Settings > IP Whitelist in your Cregis portal. | 在 Cregis 项目的「设置 > IP 白名单」中添加请求服务器的出口 IP。 |
| WO0004 | 数值参数的格式不正确。 | {{parameter_name}} ({{invalid_amount}}) is not a valid number format. | 按接口字段类型修正消息中指出的参数值。 |
| WO0005 | order_amount 小于或等于 0,或大于 10,000,000。 | order_amount must be greater than 0 and less than or equal to 10,000,000. | 将 order_amount 设置为大于 0 且不超过 10,000,000 的金额,并满足币种最低金额要求。 |
| WO0006 | sub_merchant_name 超过配置的字符数上限。 | sub_merchant_name cannot exceed {} characters. | 将 sub_merchant_name 缩短至返回消息中的字符数上限以内。 |
| WO0007 | order_currency 非空且不在支持的币种列表中。 | order_currency is invalid. See valid currencies at https://developer-cn.cregis.com/api-reference/request-apis/payment/payment-order-currency | 检查 order_currency,使用支持的订单币种代码。 |
| WO0008 | tokens 非空且包含不支持的币种。 | tokens must be valid cryptocurrencies. See supported list at https://developer-cn.cregis.com/api-reference/request-apis/payment/payment-pay-currency | 检查 tokens 中每个代币与网络组合是否受支持。 |
| WO0009 | callback_url 不包含 http:// 或 https://。 | callback_url must start with http:// or https:// | 为 callback_url 提供以 http:// 或 https:// 开头的完整 URL。 |
| WO0010 | valid_time 小于 10 或大于 1440。 | valid_time must be between {} and {}. | 将 valid_time 设置为 10–1440 分钟。 |
| WO0011 | underpaid_tolerance 小于 0 或大于 10,000,000。 | underpaid_tolerance cannot be less than 0 or greater than 10,000,000. | 将 underpaid_tolerance 设置为 0–10,000,000,并按 order_currency 的精度填写。 |
| WO0012 | overpaid_tolerance 小于 0 或大于 10,000,000。 | overpaid_tolerance cannot be less than 0 or greater than 10,000,000. | 将 overpaid_tolerance 设置为 0–10,000,000,并按 order_currency 的精度填写。 |
| WO0013 | language 非空且不是 en、tc 或 sc。 | Language must be one of: en, tc or sc. | 使用 en(英文)、tc(繁体中文)或 sc(简体中文)。 |
| WO0014 | checkout_page.success_url 非空且不包含 http:// 或 https://。 | success_url must start with http:// or https:// | 为 success_url 提供以 http:// 或 https:// 开头的完整 URL。 |
| WO0015 | checkout_page.cancel_url 非空且不包含 http:// 或 https://。 | cancel_url must start with http:// or https:// | 为 cancel_url 提供以 http:// 或 https:// 开头的完整 URL。 |
| WO0016 | checkout_page.success_url 与 cancel_url 仅填写了其中一项。 | success_url and cancel_url are both required. | 如需生成托管收银台,请同时填写 success_url 和 cancel_url。 |
| WO0017 | order_amount 低于订单币种的最低订单服务费(非加密货币:等值 1 美元并考虑精度)。 | order_amount must be greater than or equal to {{min_amount}} {{order_currency}}. | 将 order_amount 调整至错误消息中返回的最低金额或以上。 |
| WO0018 | order_amount 的小数位数超过订单币种精度。 | order_amount accepts a maxmium of {} decimal places for {{order_currency}} | 按 order_currency 支持的精度修正 order_amount。 |
| WO0019 | merchant_order_id 超过配置的字符数上限。 | merchant_order_id cannot exceed {} characters. | 将 merchant_order_id 缩短至返回消息中的字符数上限以内。 |
| WO0020 | remark 超过配置的字符数上限。 | remark cannot exceed {} characters. | 将 remark 缩短至返回消息中的字符数上限以内。 |
| WO0021 | 发生未预期的错误。 | An unexpected error occurred. If this issue persists, please contact our Cregis support team. | 保留请求与错误响应;若问题持续,请联系 Cregis 支持团队。 |
| WO0022 | checkout_page 非空且无法解析为 JSON。 | checkout_page must be submitted as a JSON string. | 将 checkout_page 对象序列化为有效的 JSON 字符串后提交。 |
| WO0023 | payer_email 格式不正确。 | payer_email format is incorrect. | 检查 payer.payer_email 的邮箱格式。 |
| WO0024 | payer 非空且无法解析为 JSON。 | payer must be submitted as a JSON string. | 将 payer 对象序列化为有效的 JSON 字符串后提交。 |
| WO0025 | sub_merchant 非空且无法解析为 JSON。 | sub_merchant must be submitted as a JSON string. | 将 sub_merchant 对象序列化为有效的 JSON 字符串后提交。 |
| WO0026 | sub_merchant_id 超过配置的字符数上限。 | sub_merchant_id cannot exceed {} characters. | 将 sub_merchant_id 缩短至返回消息中的字符数上限以内。 |
| WO0027 | cregis_id 对应的订单不存在。 | Order does not exist | 检查 cregis_id,并确认订单属于当前项目。 |
| WO0028 | 没有任何币种配置了转账钱包或地址。 | At least one Transfer Wallet and Address is required to configure for your WaaS Order Mode project in the Cregis portal. | 在 Cregis 的 WaaS 订单模式项目中,为至少一个币种配置转账钱包和地址。 |
| WO0029 | callback_url 超过配置的字符数上限。 | callback_url cannot exceed 256 characters | 将 callback_url 缩短至 256 个字符以内。 |
| WO0030 | underpaid_tolerance 的小数位数超过订单币种精度。 | underpaid_tolerance accepts a maxmium of {} decimal places for {{order_currency}} | 按 order_currency 支持的精度修正 underpaid_tolerance。 |
| WO0031 | overpaid_tolerance 的小数位数超过订单币种精度。 | overpaid_tolerance accepts a maxmium of {} decimal places for {{order_currency}} | 按 order_currency 支持的精度修正 overpaid_tolerance。 |
| WO0032 | tokens 非空且无法解析为 JSON。 | tokens must be submitted as a JSON string. | 将代币数组序列化为有效的 JSON 字符串后提交至 tokens。 |
| WO0033 | tokens 非空且包含未配置转账钱包的币种。 | Transfer Wallet and Address for {{token_currency}} is not configured in your WaaS Order Mode project on the Cregis portal. | 为错误消息中的币种配置转账钱包和地址,或将该币种从 tokens 中移除。 |
| WO0034 | payer_name 超过配置的字符数上限。 | payer_name cannot exceed {} characters. | 将 payer_name 缩短至返回消息中的字符数上限以内。 |
| WO0035 | payer_id 超过配置的字符数上限。 | payer_id cannot exceed {} characters. | 将 payer_id 缩短至返回消息中的字符数上限以内。 |
| WO0037 | stablecoin_realtime_rate 不是 0 或 1。 | stablecoin_realtime_rate must be either 0 or 1. | 将 stablecoin_realtime_rate 设置为整数 0 或 1。 |