#elianbraja

1 messages · Page 1 of 1 (latest)

stiff yewBOT
opal sedge
#

hi! you can use https://stripe.com/docs/api/invoices/list and pass subscription and status. If you want invoice with either of those statuses, you have to do two separate sets of list calls for each status, and unify the result in your code

plain pulsar
#

but can't I just make one call to get my data?

opal sedge
#

no

plain pulsar
#

and if I want to search for invoice with status paid?

#

on the search call I don't see any way to pass status

opal sedge
#

you can use the approach I described

#

as you say, the Search endpoint doesn't take a status, so you'd need to use the approach I described.

plain pulsar
#

ok thanks

#

I had another question

#

can I make a subscription charge manually without waiting for the billing cycle to end?

opal sedge
plain pulsar
#

I want to test automatic collection

#

with different types of default cards of customer

tired briar
#

HI there 👋 I'm jumping in as my teammate needs to step away soon. If you want to test subscription renewal behavior, then I would suggest using our Test Clocks feature. They allow you to create Subscriptions in a sandbox where you can advance time forcing the Subscription to move to new periods quickly.
https://stripe.com/docs/billing/testing/test-clocks

Learn how to move Billing objects through time in test mode.

plain pulsar
#

Ok thank you. I also wanted to ask. Currently I want my customers to be able to switch from a monthly subscription to an annual one. How can I preview a subscription update?

tired briar