Get Subscriptions

Stripe offers services that allow individuals and businesses to accept payments over the Internet. This activity allows you retrieve a list of all active subscriptions of a particular customer. To achieve this, first add this activity to your canvas, and configure it. Select the appropriate connection for Stripe. If you haven’t created a connection, select ‘Add new’ to create one.

In the ‘Customer ID’ field, you need to select/specify the ID of the customer whose active subscription records you wish to retrieve. Clicking the ‘Refresh’ icon will fetch the list of all the customers of your Stripe account—based on the connection selected—and display it in the drop-down list. In case there are too many customers, you can search the required one by his ‘name’ or ‘ID’. Alternatively, you can manually enter the name or ID of the customer whose active  subscription records you wish to retrieve or use the output of the previous activity as an input for this field.

You can also limit the number of subscriptions that will be returned in response by specifying a number in the ‘Limit’ field (between 1 and 100). Once you have entered these details, click on ‘Done’ and run the flow. This will return the list of all active subscriptions of the specified customer.

get-subscriptions

Output:
  • output-arrow stripe-new-128 Get Subscription
    • left-triangle object string
    • left-triangle has_more boolean
    • left-triangle url string
    • left-triangle data array
      • left-triangle id string
      • left-triangle plan object
      • left-triangle object string
      • left-triangle start integer
      • left-triangle status string
      • left-triangle customer string