#bugragunduz - charges
1 messages ยท Page 1 of 1 (latest)
Nope
What kind of one time charges then? The charges API?
Yes
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hm, doesn't this also get me subscription-related charges?
For subscriptions, it's recommended you use: https://stripe.com/docs/api/subscriptions/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
No I mean I only want to list non-subscription-related charges, but the charges api gives me subscription charges as well
Yeah there's no way to separate them. One thing you could do is use metadata for one time charges and inspect that field.
Alright thanks ๐ฆ Can you also look at my other question about expanded fields if you have time?
Yes of course. One sec
Subscriptions on the customer object only includes active subs. We don't even include that field on the customer object unless you explicitly expand it. It's recommended to just use the list subscriptions endpoint: https://stripe.com/docs/api/subscriptions/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
And you can filter by status there: https://stripe.com/docs/api/subscriptions/list#list_subscriptions-status
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok, what about trialing? Do you include those in the expanded field?
Yeah those will