#B2

1 messages ยท Page 1 of 1 (latest)

uneven karmaBOT
ruby hawk
#

Hi ๐Ÿ‘‹

fluid hollow
#

Hi

ruby hawk
#

Stripe Apps context variable contain basic information about the page you are on but you can query the APIs from the components for more details

#

The context variable on a Customer detail page will have the Customer ID. So you use that with the API to retrieve the Customer object.

fluid hollow
#

Okay. Is there an endpoint for the MRR/ARR example?

ruby hawk
#

MRR? I"m not sure what this is referring to.

fluid hollow
#

Monthly recurring revenue

#

This is the total revenue in the last one month...is there a stripe endpoint that returns this data?

ruby hawk
#

We have multiple ways you can get it but it's not a simple API call

fluid hollow
#

Ok. Care to explain the simplest please ๐Ÿ˜

#

I considered getting a list of all subscriptions within the last one month and summing that up.....any different idea?

ruby hawk
#

And may require you make a Signed request from a back-end server to get this

fluid hollow
#

Yes, that is alright

ruby hawk
#

We have an API for retrieving reports in CSV format

#

And some of the report types are pretty close to what you're looking for.

fluid hollow
#

Ok, thanks

#

One other question. My app backend is setup to create a connect webhook using my stripe secret key from my dashboard. (as explained here-> https://stripe.com/docs/api/webhook_endpoints/create)

Will the authorized events of connected accounts get delivered to the url provided in the webhook?

gleaming relic
#

Hi there ๐Ÿ‘‹ taking over, as my colleague needs to step away

Can you elaborate on this question?

Will the authorized events of connected accounts get delivered to the url provided in the webhook?
Events are delivered to whatever Webhook Endpoint you created, based on which events you told the Webhook Endpoint to listen for.

fluid hollow
#

Okay. thanks.
The question was more of :

Once a stripe app is authorized to an account, and I take the account secret key to create webhook from backend.
Will events from connected accounts get delivered to the provided webhook? Does stripe app authorization make users connected accounts?

gleaming relic
#

Apologies for the wait. Will circle back shortly

ruby hawk
#

Hi ๐Ÿ‘‹

If you create a webhook endpoint using the Account's secret key then it will receive all webhook events it is set to listen for

#

The permissions structure for Stripe Apps is based Connect so the installed apps aren't really Connected Accounts but there are some similarities

fluid hollow
#

Hmm, your last statement is a bit confusing.
If a stripe app is authorized and permitted by it's user to access say "read_events". Using that account's secret key, will I be able to read events on a connected user account?

ruby hawk
#

I'm not sure I understood your earlier question. Are you asking if your webhook will return events on the installed user's account or any connected accounts to that user's account?

fluid hollow
#

Event on the installed user's account

ruby hawk
#

You are talking about a scenario where you create a webhook endpoint using the users's Secret Key?

#

In that case it would behave exactly as if the user themselves created the endpoint

fluid hollow
#
  1. Using my account's secret key, i create a connect webhook
  2. I setup stripe app to have access to permission: event_read, customer_read
  3. User installs my stripe app into their account and authorizes

Will events on the installed user's account be delivered to my webhook?