#slvfelix

1 messages · Page 1 of 1 (latest)

silver mirageBOT
strong hatch
#

I'd suggest deleting that file if you can since it seems full of personal info on a public server.

#

in general to answer the question, there's no great way beyond listening to webhook events or tracking it in your system as you go

rugged notch
#

No worries, is full of dummy information

silver mirageBOT
strong hatch
#

for example you can listen to customer.subscription.updated events and inspect the details of previous_attributes and the current items in the event, to see what has changed, and write that to a database where you generate the report from later

rugged notch
#

Ok, I'll try to that

#

But it really catches my attention how some companies build stuff like the csv I'm sending you. I dont understand why there's not history of a suscription api which would make my job a lot easier.

strong hatch
#

mainly because we'd have to build such an API and it's just not been done yet, it's more of a feature request.

rugged notch
#

That is how much revenue a deal generated

#

per month

#

I feel that the information is there, but I dont know which api or combination of apis to grab

#

because if external providers managed to pull it off, there's gotta be a reason

strong hatch
#

well for example maybe that is the same as the MRR-per-customer we mention above.

Or in the API you can list successful payments for a given customer in a given time range (https://stripe.com/docs/api/charges/list) and sum them to get a general "this is how much money this customer paid me in a month" figure (but then it gets more complicated because you then also have to check if there were any refunds/disputes, but that's a starting point).

strong hatch
rugged notch
quartz sandal
#

👋 stepping in as karllekko needs to step away

#

That's correct -- you would have to calculate those pieces yourself

rugged notch
#

If I can know when a subscriptiuon item starts and ends, I know how much revenue it generated.

If its a feature in the user interface, is not the way as third party proviuders dont access that stuff in the api. I'll check solution 1 and 2 and if I have any more doubts I'll let you guys know.