Differentiate merchants on fulfillment for stripe apps

25 views
Skip to first unread message

Stanley Szeto

unread,
Jan 22, 2024, 10:42:44 AM1/22/24
to Stripe API Discussion
I'm developing a stripe app that does post purchase fulfillment for merchants, but I can't seem to find a way to differentiate merchants in the webhook

Remi J.

unread,
Jan 22, 2024, 10:59:21 AM1/22/24
to api-d...@lists.stripe.com
Hello Stanley,

The Stripe App you publish is associated with your own Stripe account which we'll call a "platform" similar to using Stripe Connect. On that account, you would create a Connect WebhookEndpoint [1] which will listen to the relevant Event type(s) created on all of your connected accounts (which installed your Stripe App). In that case, the Event object [2] will have the `account` property [3] set to the id (acct_123) of the connected account the Event is from. This is covered in our documentation here [4].

Note that this can be complex to test in Test mode. Usually, you're testing your Stripe App on the account that publishes/owns the app. Because of this, the Event(s) it generates happen on your own account so they are not sent to your Connect WebhookEndpoint. To test this properly, you have to publish your Test app and run an external test as documented here [5] so that you can install it on a separate Stripe account (different from your own). Once you have done that, Events from that specific account will have the `account` property set as expected.

If you have follow up questions, please reach out to our support team directly for 1:1 support: https://support.stripe.com/contact

Best,
Remi


On Mon, Jan 22, 2024 at 7:42 AM Stanley Szeto <gw.stanl...@gmail.com> wrote:
I'm developing a stripe app that does post purchase fulfillment for merchants, but I can't seem to find a way to differentiate merchants in the webhook

--
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
Reply all
Reply to author
Forward
0 new messages