#boskiv
1 messages ยท Page 1 of 1 (latest)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I want to get all customers with total charges for each
this isn't part of doing our certification exam is it? ๐
ok. Well https://stripe.com/docs/api/charges/list#list_charges-customer is how you get the chages-per-customer, you call that for each returned customer , for example.
can i do vise versa ?
not sure what you mean
I want to get customers with charges
not all my customers has charges
so if i get all charges they will be not for all my customers. But I need it for my custom partner portal
I want my partners to see all customers they invite and money they bring to them
i store partner id in customer metadata field
is there api for payments analytiics ?
well given a Customer ID you can call https://stripe.com/docs/api/charges/list#list_charges-customer . If they have no charges, it returns an empty list.
can I get MRR per customer with API ?
no
no
sad
you'd have to build a bunch of custom logic to calculate this sort of thing, or integrate with third-party platforms that access your account and do similiar things
we also have exportable reports (https://stripe.com/docs/reports/select-a-report) but I'm not sure what exists for MRR
what third-party platform can provide such thing ?
maybe one from https://marketplace.stripe.com/categories/data_and_analytics for example