Skip to content

Error Codes

Reference for ByteConnect API error codes and how to resolve them.

All errors return a consistent JSON structure:

{
"success": false,
"error": {
"code": "INVALID_TOKEN",
"message": "The access token is invalid or expired"
}
}
CodeMessageResolution
INVALID_CREDENTIALSUsername or password is incorrectVerify your login credentials
INVALID_TOKENAccess token is invalid or expiredRe-authenticate to get a new token
TOKEN_EXPIREDAccess token has expiredTokens expire after 1 hour; re-authenticate
MISSING_TOKENNo access token providedInclude access_token in request body
CodeMessageResolution
INVALID_AMOUNTAmount must be a positive numberEnsure amount is greater than 0
AMOUNT_TOO_LOWAmount below minimum thresholdCheck minimum transaction amount
AMOUNT_TOO_HIGHAmount exceeds maximum limitReduce transaction amount
INVALID_CRYPTOUnsupported cryptocurrencyUse a supported crypto code (BTC, LTC, ETH, etc.)
TRANSACTION_NOT_FOUNDTransaction ID not foundVerify the transaction ID
TRANSACTION_EXPIREDTransaction has timed outCreate a new transaction
CodeMessageResolution
INSUFFICIENT_BALANCENot enough funds for payoutWait for more payments or reduce payout amount
BELOW_MINIMUMAmount below payout minimumCheck minimum payout amounts
INVALID_ADDRESSInvalid wallet addressVerify the destination address
PAYOUT_DISABLEDPayouts temporarily disabledContact support
CodeMessageResolution
RATE_LIMITEDToo many requestsWait and retry with exponential backoff
CodeMessageResolution
INVALID_EMAILEmail format is invalidProvide a valid email address
MISSING_FIELDRequired field is missingCheck required parameters
INVALID_FORMATRequest format is invalidEnsure valid JSON in request body
StatusMeaning
200Success
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing token
403Forbidden - Access denied
404Not Found - Resource doesn’t exist
429Too Many Requests - Rate limited
500Server Error - Contact support
async function createTransaction(data) {
const response = await fetch('https://quinix.byteconnect.us/create_transaction', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(data)
});
const result = await response.json();
if (!result.success) {
switch (result.error.code) {
case 'TOKEN_EXPIRED':
// Re-authenticate and retry
await refreshToken();
return createTransaction(data);
case 'RATE_LIMITED':
// Wait and retry
await sleep(5000);
return createTransaction(data);
default:
throw new Error(result.error.message);
}
}
return result;
}

If you encounter persistent errors:

  1. Check the API documentation
  2. Verify your request format
  3. Contact support with the error code and transaction details