Error codes

Complete reference of errors that the Colurs API can return.


Authentication errors

CodeErrorDescription
400Bad RequestInvalid or missing request parameters
401UnauthorizedInvalid, expired, or missing token
403ForbiddenNo permission to execute this operation
404Not FoundResource not found
429Too Many RequestsRequest rate limit exceeded
500Internal Server ErrorInternal server error

Errors by module

Authentication

CodeErrorDescription
400DataInvalidExceptionInvalid credentials or unsupported platform
400CodeMustBeRequiredExceptionCode required for PANEL/IOS/ANDROID
400CodeExpiredExceptionVerification code expired
400OTPRequiredException2FA code is required (user has MFA)
400InvalidOTPExceptionInvalid 2FA code

Users

CodeErrorDescription
400InvalidReferrerInvalid referral code
400ProfileAlreadyReferredProfile already has an assigned referral
404ReferalCodeNotExistReferral code does not exist
400TypePersonRequiredPerson type is required
400InfoBusinessDoesNotExistBusiness information does not exist
400IntegrationExceptionIntegration error

Withdrawals

CodeErrorDescription
400BalanceInsufficientInsufficient balance for withdrawal
400InvalidCurrencyForQuoteWithDrawInvalid currency for the country
400MarketPlaceUserRequiredActive wallet is required
404BankAccountNotFoundBank account not found
422UnsupportedBankNameUnsupported bank
422UnsupportedDocumentTypeInvalid document type
CodeErrorDescription
400AmountRequiredAmount is required for general links
400AmountMismatchAmount does not match link amount
400InvalidStatusLink is not in a valid status for payment
404NotFoundPayment Link does not exist

All errors return a JSON body with detail or message describing the cause of the error.