#Danniish

1 messages ยท Page 1 of 1 (latest)

crimson marlinBOT
small flicker
#

Hi ๐Ÿ‘‹ if you have the ID of the Subscription Schedule, then you can use this endpoint to retrieve it directly:
https://stripe.com/docs/api/subscription_schedules/retrieve

If you don't already have the ID handy, then you can use this endpoint to list Subscription Schedules and find the one you're looking for:
https://stripe.com/docs/api/subscription_schedules/list

thorn pendant
#

How can i use scheduled in the code

small flicker
#

I'm not sure I understand what you're trying to ask.

thorn pendant
#

so there is one parameter called "scheduled" in the List all schedules API ... How to use this in code

#

is it to be syntaxed like key:value

small flicker
#

I believe that is a boolean. How you structure the line of code is dependent on the language that you plan to use (I'm guessing Node from the current selection in your screenshot).

You can use the limit: 3 part of the example code as a template for how to use various parameters. You'll want to swap the part before the : to specify the parameter you're providing, then swap the part after it to control what you're providing for that parameter.

I think you're looking for something like scheduled: true.

thorn pendant
#

Yup its working .... Thanks for help ...

small flicker
#

Awesome, glad to hear that worked!