@bates-solutions/stripe API Reference - v2.2.1
    Preparing search index...

    Function getAccountId

    • Extract the connected account ID from a webhook event, when present.

      Events from a Connect webhook endpoint carry the connected account they happened on (event.account). Pass it to stripe.forAccount(id) to act on that account. Events on your own platform account return undefined.

      Parameters

      • event: Event

      Returns string | undefined