Skip to main content
This article explains the common error codes and HTTP status codes you may encounter when using the Cobo Payments API and how to resolve the errors. When a request fails, the response body contains an error_code field (integer), an error_message field describing the issue, and an error_id field you can use to trace the request in Cobo’s logs.

Error codes

General API errors

Error codeHTTP statusDescriptionSolution
2006400One or more parameters are in an invalid format or contain unsupported values.Validate your request body against the API reference. Check parameter types, enum values, and all required fields. The error_message field usually names the specific parameter that failed validation.
2010429You have exceeded the API access rate limit.Reduce request frequency. Implement exponential backoff with jitter before retrying.
2024401API key authentication failed.
  • Use the API key that corresponds to the current environment (for example, use a development API key in the development environment and a production API key in the production environment).
  • Ensure that the API key you are using is registered in Cobo Portal and is in active status.
  • If your API key is permanent, make sure the request originates from a whitelisted IP address.
For details, see Send your first request.
2025403Your API key does not have the permission required to perform this action.Check the OAuth scopes and roles assigned to your API key in Cobo Portal. Refer to Roles and permissions for details.
2026429Too many requests. Your request rate has exceeded the server-side threshold.Wait before retrying. Use a retry strategy with exponential backoff.
2027400You have exceeded your quota limit for this resource or operation.Check your current usage and package limits in Cobo Portal under Settings > Developer.
2028404The requested resource was not found.Verify that the resource ID in your request (for example, merchant_id, order_id, payer_id) is correct and belongs to your organization.
2029400The resource is in an invalid status for the requested operation. Common causes: (1) updating a transaction description before the transaction reaches Completed, Rejected, or Failed status; (2) cancelling a transaction export that is not currently in Generating status; (3) your payment developer account is not in an active state.Check the error_message field for the specific cause. For transaction description updates, wait until the transaction reaches a terminal status. For export cancellation, verify the export is still generating.
2040400A duplicate key was detected. A record with this identifier already exists.Use a different unique identifier for the new record.

Payment resource errors

Payment-specific validation failures — such as a resource not being found or a field value being rejected — all return "error_code": 2006. Use the error_message field in the response to identify the specific cause.
ScenarioExample error_messageSolution
Merchant not foundMerchant {merchant_id} not found.Verify the merchant_id value is correct and belongs to your organization.
Order not foundOrder {order_id} not found.Verify the order_id value. Orders are scoped to the merchant — confirm the order belongs to the merchant you specified.
Topup payer not foundTopup payer {payer_id} not found.Verify the payer_id value. Payers are created per merchant.
Token not supportedUnsupported token {token_id}Verify the token ID is correct and the token is enabled for your organization.
Fiat currency not supportedUnsupported fiat currency: {currency}Use a supported fiat currency code. Check the API reference for accepted values.
Invalid amount formatInvalid amount format: {amount}Provide a valid decimal string, for example "10.50". Do not pass integers or scientific notation.
Amount below minimumMessage includes the minimum amount and token symbol.Increase the amount to meet or exceed the minimum threshold shown in the error message.
Bank account not foundBank Account with account_uuid: {id} not found.Verify the bank_account_id value is correct and belongs to your organization.
Bank account not approvedBank account {id} is not approved.Ensure the bank account has completed verification and approval before using it in a request.
OTC wallet not foundWallet {wallet_id} unsupported or not found.Verify the wallet_id value. Not all wallet types support OTC conversions.
Invalid receiving addressInvalid receiving address.Check the destination address format and confirm it is compatible with the specified token and chain.
Insufficient OTC balanceMessage describes the shortfall.Check the available OTC balance before submitting the conversion request.
OTC amount below minimumMessage includes the minimum amount.Increase the conversion amount to meet the minimum shown in the error message.
OTC exchange rate unavailableExchange rate for token {token_id} not found.Retry the request. If the error persists, the token may not be supported for OTC conversion.
OTC conversion not foundConversion {conversion_code} not found.Verify the conversion code or OTC order ID is correct.

Authentication and permissions

Error codeHTTP statusDescriptionSolution
2001400MFA verification is required before this action can be performed.Complete MFA verification in Cobo Portal, then retry the request.
4001403Forbidden access to the requested resource.Check the permissions associated with your API key. Refer to Roles and permissions for details.
4002400Your organization status does not permit this action. Your developer account may be under review or not fully activated.Verify that your developer onboarding is complete. If the error persists, your account may have been restricted — check for any notifications in Cobo Portal.
10000400Your organization has read-only permissions in Cobo Portal and cannot perform write operations.Contact your organization admin to review the account permissions in Cobo Portal.

Quota and resource limits

Error codeHTTP statusDescriptionSolution
3000400You have used all available test token claims. The test coin faucet is limited to 10 claims per organization.Test token claim limits cannot be increased. Use your existing test tokens to continue testing.

Transfer and transaction errors

These error codes are returned when initiating transfers, settlements, or withdrawals.
Error codeHTTP statusDescriptionSolution
30001400Duplicate request_id. This request_id has already been used in a previous request.Each request must use a unique request_id. If you are retrying a request, reuse the same request_id to retrieve the original result instead of generating a new one.
30002400Unknown token ID. The specified token is not recognized.Verify the token ID against the list of supported tokens. Call List supported tokens to retrieve valid token IDs for your organization.
30005400The address format is invalid or not compatible with the specified token.Verify that the destination address is correctly formatted for the token’s network. Confirm the address belongs to the correct chain.
30007400Invalid amount. The amount value is not a valid number.Provide a valid numerical amount. Ensure you are not passing a string, null, or a value in scientific notation.
30009400The amount cannot be less than zero.Provide a positive amount value.
30010400The transfer amount is below the minimum withdrawal threshold. The error_message field includes the minimum amount and token symbol.Increase the transfer amount to meet or exceed the minimum threshold shown in the error message.
30012400The amount exceeds the available balance in the source wallet.Check the wallet balance before submitting the transfer. Reduce the transfer amount or top up the wallet.
30013400The fee token balance is insufficient to cover the transaction fee.Check your fee station balance in Cobo Portal under Fee Station and recharge if needed.
30019400The transaction was rejected by an on-chain transaction policy.Review the on-chain transaction policies configured for your Smart Contract Wallet in Cobo Portal. Adjust the policy or use a different wallet.
30024400Neither to_address nor to_wallet_id was provided. One of the two is required.Include either to_address or to_wallet_id in your request.
30028400The request_id parameter is missing or malformed.Include a valid request_id in your request. The value must be a non-empty string.
30030400Withdrawal and deposit services for this token are temporarily unavailable.Check the Cobo status page for active service notices. Retry after the suspension is lifted.
30031400The token is not enabled for your organization.Call List supported tokens to verify that the token is available for your account. If it does not appear, the token has not been activated for your organization.
30036400The fee station balance is insufficient to cover the transaction fee.Top up your fee station with a supported token (for example, USDT or USDC) to ensure sufficient balance for transaction fees, then retry.
30038400The fee station token balance is insufficient to cover the transaction fee.Top up your fee station with a supported token (for example, USDT or USDC) to ensure sufficient balance for transaction fees, then retry.
30039400Cobo’s fee station balance is temporarily insufficient.Retry the transfer after a short wait. This condition is resolved by Cobo automatically.

Transaction operation errors

These error codes are returned when cancelling, dropping, or speeding up an existing transaction.
Error codeHTTP statusDescriptionSolution
60003400Failed to estimate the transaction fee.Retry the fee estimation. If the error persists, verify the token and wallet are properly configured.
60004400This transaction cannot be cancelled.Only transactions in a pending or processing state can be cancelled. Check the transaction status before attempting to cancel.
60005400The current transaction status does not allow cancellation.The transaction has progressed past the point where cancellation is possible. Check the transaction status in Cobo Portal.
60006400This transaction cannot be dropped.Dropping is only available for specific transaction types and statuses. Check the transaction details in Cobo Portal.
60007400This transaction cannot be sped up.Speed-up is only available for specific transaction types and statuses. Check the transaction details in Cobo Portal.

HTTP status codes

Status codeDescriptionSolution
200OK.N/A
400Bad request.Check the request parameters.
401Unauthorized.Check the API key, API signature, or timestamp.
403Forbidden.Ensure you have the required permissions.
404Not Found.Check the request URL.
405Method Not Allowed.Use a supported HTTP method.
406Not Acceptable.Ensure the request content format is JSON.
429Too Many Requests.Reduce request frequency and try again later.
500Internal Server Error. This error can be caused by several issues.Check your server configuration settings and try again later.
502Bad Gateway.Check the connectivity and try again later.
503Service Unavailable.Try again later.