import json


def getTransactionID(response):
    """
    Get the ID of a transaction from the API response
    :param response: Response object in JSON
    :return: Transaction ID
    """

    resp_dict = json.loads(response.text)

    url = resp_dict["_id"]

    return url