WaaS
WaaS Error Codes
WaaS API error codes and recommended actions, including existing APIs and Order Mode.
Scope
This page covers existing WaaS API error codes and WaaS Order Mode error codes. Use the section applicable to the API you call. Team API uses a different authentication method and error-code system; do not mix them.
Jump to: Existing WaaS API error codes · WaaS Order Mode Error Codes
WaaS Error Codes
The success code is 00000; other codes indicate errors.
| Code | Message | Meaning | Recommended Action |
|---|---|---|---|
| Axxxx | Param Error | Invalid request parameters | Contact Cregis support if the issue persists after request validation. |
| B0001 | Signature Error | Signature verification failed | Recheck signature algorithm, canonicalization, and required fields. |
| T0062 | Please expand the number of API addresses or upgrade the subscription version first | API address quota is insufficient | Expand API address quota or upgrade your subscription plan. |
| E0001 | The IP is not added to the whitelist list | Caller IP is not authorized | Add your server IP to the project IP whitelist in Cregis App. |
| E0002 | Alias or remark must be a combination of {} characters or less | Alias/remark format or length is invalid | Check alias and remark format and length limits. |
| E0003 | Item does not exist or item status is anomalous | Project does not exist or is not in a valid status | Verify pid and confirm project status is enabled. |
| E0004 | Unsupported interface type | Interface type is not enabled for this project | Enable the required interface type in project settings. |
| E0005 | Unsupported coin | Coin/network is not supported | Verify coin/network support before calling the API. |
| E0006 | The withdrawal amount must be greater than 0 | Withdrawal amount must be > 0 | Check amount; it cannot be empty or zero. |
| E0007 | Incorrect accuracy of the withdrawal amount | Withdrawal amount precision is invalid | Adjust amount precision to the supported decimal scale. |
| E0008 | Address is invalid | Address format is invalid | Check address format and network compatibility. |
| E0009 | Duplicate business number | Duplicate third-party business ID | Ensure third_party_id is unique per business transaction. |
| E0010 | Wallet does not exist | Wallet not found | Verify wallet ID in project developer settings. |
| E0016 | Amount error | Amount is invalid | Recheck amount format and value range. |
| E0018 | Order number must be unique | Duplicate order number | Ensure your order number is unique. |
| E0019 | Order number exceeds 128 characters | Order number too long | Keep order number length within 128 characters. |
| E0021 | Order remark exceeds 256 characters | Order remark too long | Keep order remark within 256 characters. |
| E0022 | Order amount must be greater than 0 | Order amount must be > 0 | Provide a valid order amount greater than zero. |
| E0023 | Order amount precision error | Order amount precision is invalid | Adjust precision according to product/currency rules. |
| E0024 | Order does not exist | Order not found | Check whether order_id/cregis_id is correct. |
| E0025 | Incorrect payer information | Payer information is invalid | Validate payer name, payer ID, and email format/length. |
| E0026 | Please input in minutes. Minimum is {} minutes, maximum {} minutes | Timeout value is out of allowed range | Set timeout within the allowed min/max minute range. |
| E0027 | Number of addresses set incorrectly | Batch address count exceeds limits | Batch-create at most 100 addresses per request. |
| E0028 | Unsupported address status value | Unsupported address status value | Use valid status values only (0 enabled, 1 disabled). |
| E0029 | At least one modification required | No update field was provided | Update at least one of callback_url, alias, or status. |
| E0030 | Address does not belong to this project | Address does not belong to current project | Verify that pid and address match the same project. |
| E0031 | Failed to create the checkout counter | Failed to create checkout | Retry later or contact Cregis support. |
| E0032 | Memo content only supports numeric characters and must be less than 4294967295 | Memo format is invalid | Use numeric memo only, and keep it below 4294967295. |
| E0033 | Please expand the number of API addresses or upgrade the subscription version first | Sub-address quota is insufficient | Upgrade sub-address package or subscription plan. |
| E0034 | The number of available withdrawals is insufficient | API payout count is insufficient | Upgrade subscription plan for more payout capacity. |
| E0035 | payer email address is compulsory if partial or over payment is unacceptable | Payer email is required | Provide payer email when partial/overpayment is disabled. |
| E0036 | overpaid_tolerance or underpaid_tolerance < 0 | Tolerance values must be > 0 | Ensure overpaid_tolerance and underpaid_tolerance are greater than 0. |
| E0037 | Please set the default payout wallet | Payout wallet does not match project configuration | Use the payout wallet configured for the project. |
| E0038 | The collectible balance is 0 | Address collectible balance is zero | No collection is needed for this address. |
| E0039 | The subscription has expired. Please renew | Sub-address subscription expired | Renew sub-address subscription to continue service. |
| E0040 | The receiving address must be a wallet address from the current project. | Collection destination is restricted | Use a receiving address belonging to the current WaaS project. |
| E0041 | Address is in the team blacklist. | Address is blacklisted by team policy | This recipient address is blocked and cannot be transacted. |
| E0042 | The token has not been added to the current wallet | The token has not been added to the current wallet | Please add it in Cregis > Wallet > Settings > Token Management |
| Z0004 | Accessing too frequently, please try again later | Accessing too frequently, please try again later | Please wait until the rate limit is lifted and try again. For specific rate limits, please refer to the documentation for the corresponding API. |
WaaS Order Mode Error Codes
Applicable API: Create Order and Query Order. Query Order uses WO0001, WO0002, WO0003, and WO0027; Create Order uses all codes in this table except WO0027.
| Code | Condition | Original Error Message | Recommended Action |
|---|---|---|---|
| WO0001 | If the API key is not permitted for use with WaaS Order Mode | This API key is not permitted for use with WaaS Order Mode. Please use a valid key configured for this mode. | Use a valid API key configured for WaaS Order Mode. |
| WO0002 | If pid does not exist or the project is disabled | The pid does not exist or the project is disabled. | Check pid and confirm that the project exists and is enabled. |
| WO0003 | If the requesting IP address is not on the project's whitelist | The requesting IP address ({IP}) is not on the project's whitelist. Please add it under Settings > IP Whitelist in your Cregis portal. | Add the requesting server’s outbound IP under Settings > IP Whitelist for the project. |
| WO0004 | If a numeric parameter is not in a valid number format | {{parameter_name}} ({{invalid_amount}}) is not a valid number format. | Correct the parameter identified in the message using the type required by the API. |
| WO0005 | If order_amount <= 0 or > 10,000,000 | order_amount must be greater than 0 and less than or equal to 10,000,000. | Set order_amount to a value greater than 0 and no greater than 10,000,000, also meeting the currency minimum. |
| WO0006 | If sub_merchant_name exceeds the configured character limit | sub_merchant_name cannot exceed {} characters. | Shorten sub_merchant_name to the character limit returned in the message. |
| WO0007 | If order_currency is not empty and not in the supported currencies list | order_currency is invalid. See valid currencies at https://developer-cn.cregis.com/api-reference/request-apis/payment/payment-order-currency | Check order_currency and use a supported order currency code. |
| WO0008 | If tokens is not empty and contains an unsupported currency | tokens must be valid cryptocurrencies. See supported list at https://developer-cn.cregis.com/api-reference/request-apis/payment/payment-pay-currency | Check that every token and network combination in tokens is supported. |
| WO0009 | If callback_url does not contain http:// or https:// | callback_url must start with http:// or https:// | Provide a complete callback_url starting with http:// or https://. |
| WO0010 | If valid_time is less than 10 or greater than 1440 | valid_time must be between {} and {}. | Set valid_time to 10–1440 minutes. |
| WO0011 | If underpaid_tolerance < 0 or > 10,000,000 | underpaid_tolerance cannot be less than 0 or greater than 10,000,000. | Set underpaid_tolerance between 0 and 10,000,000, using the precision of order_currency. |
| WO0012 | If overpaid_tolerance < 0 or > 10,000,000 | overpaid_tolerance cannot be less than 0 or greater than 10,000,000. | Set overpaid_tolerance between 0 and 10,000,000, using the precision of order_currency. |
| WO0013 | If language is not empty and not one of en / tc / sc | Language must be one of: en, tc or sc. | Use en (English), tc (Traditional Chinese), or sc (Simplified Chinese). |
| WO0014 | If checkout_page.success_url is not empty and does not contain http:// or https:// | success_url must start with http:// or https:// | Provide a complete success_url starting with http:// or https://. |
| WO0015 | If checkout_page.cancel_url is not empty and does not contain http:// or https:// | cancel_url must start with http:// or https:// | Provide a complete cancel_url starting with http:// or https://. |
| WO0016 | If only one of checkout_page.success_url / cancel_url is filled | success_url and cancel_url are both required. | Provide both success_url and cancel_url when requesting a hosted checkout page. |
| WO0017 | If order_amount is below the order currency's minimum order service fee (non-crypto: US$1 equivalent + precision) | order_amount must be greater than or equal to {{min_amount}} {{order_currency}}. | Set order_amount to at least the minimum amount returned in the error message. |
| WO0018 | If order_amount decimal places exceed the order currency's precision | order_amount accepts a maxmium of {} decimal places for {{order_currency}} | Adjust order_amount to the precision supported by order_currency. |
| WO0019 | If merchant_order_id exceeds the configured character limit | merchant_order_id cannot exceed {} characters. | Shorten merchant_order_id to the character limit returned in the message. |
| WO0020 | If remark exceeds the configured character limit | remark cannot exceed {} characters. | Shorten remark to the character limit returned in the message. |
| WO0021 | If an unexpected error occurs | An unexpected error occurred. If this issue persists, please contact our Cregis support team. | Keep the request and error response; contact Cregis support if the issue persists. |
| WO0022 | If checkout_page is not empty and cannot be decoded as JSON | checkout_page must be submitted as a JSON string. | Serialize the checkout_page object into a valid JSON string before submitting it. |
| WO0023 | If payer_email format is incorrect | payer_email format is incorrect. | Check the email format of payer.payer_email. |
| WO0024 | If payer is not empty and cannot be decoded as JSON | payer must be submitted as a JSON string. | Serialize the payer object into a valid JSON string before submitting it. |
| WO0025 | If sub_merchant is not empty and cannot be decoded as JSON | sub_merchant must be submitted as a JSON string. | Serialize the sub_merchant object into a valid JSON string before submitting it. |
| WO0026 | If sub_merchant_id exceeds the configured character limit | sub_merchant_id cannot exceed {} characters. | Shorten sub_merchant_id to the character limit returned in the message. |
| WO0027 | If cregis_id does not exist | Order does not exist | Check cregis_id and confirm that the order belongs to the current project. |
| WO0028 | If no currency has a configured transfer wallet / address | At least one Transfer Wallet and Address is required to configure for your WaaS Order Mode project in the Cregis portal. | Configure a Transfer Wallet and Address for at least one currency in your WaaS Order Mode project. |
| WO0029 | If callback_url exceeds the configured character limit | callback_url cannot exceed 256 characters | Shorten callback_url to no more than 256 characters. |
| WO0030 | If underpaid_tolerance decimal places exceed the order currency's precision | underpaid_tolerance accepts a maxmium of {} decimal places for {{order_currency}} | Adjust underpaid_tolerance to the precision supported by order_currency. |
| WO0031 | If overpaid_tolerance decimal places exceed the order currency's precision | overpaid_tolerance accepts a maxmium of {} decimal places for {{order_currency}} | Adjust overpaid_tolerance to the precision supported by order_currency. |
| WO0032 | If tokens is not empty and cannot be decoded as JSON | tokens must be submitted as a JSON string. | Serialize the token array into a valid JSON string and submit it as tokens. |
| WO0033 | If tokens is not empty and contains a currency without a configured transfer wallet | Transfer Wallet and Address for {{token_currency}} is not configured in your WaaS Order Mode project on the Cregis portal. | Configure a Transfer Wallet and Address for the currency in the message, or remove it from tokens. |
| WO0034 | If payer_name exceeds the configured character limit | payer_name cannot exceed {} characters. | Shorten payer_name to the character limit returned in the message. |
| WO0035 | If payer_id exceeds the configured character limit | payer_id cannot exceed {} characters. | Shorten payer_id to the character limit returned in the message. |
| WO0037 | If stablecoin_realtime_rate is not 0 or 1 | stablecoin_realtime_rate must be either 0 or 1. | Set stablecoin_realtime_rate to the integer 0 or 1. |
On this page