import requests


def is_license_valid(key):
    """Checking License Key from External API

    Args:
        key (str): Serial Key for Raven Restocks

    Returns:
        bool: If the key is valid
    """
    r = requests.post(
        'https://xserver.boxmarshall.com/api/v2/authorize/validate/no-device', json={"serialkey": key})
    return r.json()['success']