def get_stripe_account(cls, api_key: str, *args, **kwargs):
        """Get set of all stripe account ids including the Platform Acccount"""
        accs_set = set()

        # special case, since own account isn't returned by Account.api_list
        stripe_platform_obj = models.Account.stripe_class.retrieve(
            api_key=api_key,
            stripe_version=djstripe_settings.STRIPE_API_VERSION,
        )
        accs_set.add(stripe_platform_obj.id)
        accs_set.update(
            obj.id for obj in models.Account.api_list(api_key=api_key, **kwargs)
        )

        return accs_set
Get set of all stripe account ids including the Platform Acccount
djstripe/management/commands/djstripe_sync_models.py