code: def list(cls, invoice_id, custom_headers=None):
          
  
          if custom_headers is None:
              custom_headers = {}
  
          api_client = client.ApiClient(cls._get_api_context())
          endpoint_url = cls._ENDPOINT_URL_LISTING.format(
              cls._determine_user_id(), invoice_id)
          response_raw = api_client.get(endpoint_url, {}, custom_headers)
  
          return BunqResponseBytes.cast_from_bunq_response(
              client.BunqResponse(response_raw.body_bytes, response_raw.headers)
          )
docs: :type user_id: int
          :type invoice_id: int
          :type custom_headers: dict[str, str]|None
  
          :rtype: BunqResponseBytes