Error Codes
The following is a list of generic errors that you might receive when making requests to our endpoints.
warning
This is only a list of generic errors. For order related errors please check out the list at the end of the Order Info Page
const business_api_generic_errors = Object.freeze({
    INVALID_API_KEY: {
        code: "INVALID_API_KEY",
        message: "The API key you provided is invalid!"
    },
    INTERNAL_ERROR: {
        code: "INTERNAL_ERROR",
        message: "An internal error occurred while trying to process your request!"
    },
    ORDER_NOT_FOUND: {
        code: "ORDER_NOT_FOUND",
        message: "The order you are trying to get does not exist!"
    },
    VALIDATION_ERROR: {
        code: "VALIDATION_ERROR",
        message: "Validation error occurred! Please ensure all the fields are of correct type or were inputed if required."
    },
    ACCOUNT_DISABLED: {
        code: "ACCOUNT_DISABLED",
        message: "Your account is disabled! Please contact support to re-enable it."
    },
    MISSING_API_KEY: {
        code: "MISSING_API_KEY",
        message: "No API key provided!"
    },
    BUSINESS_DISABLED: {
        code: "BUSINESS_DISABLED",
        message: "Business API is currently disabled, please try again later."
    }
});