Global API
...
Subscription
Subscription - Stripe

Create

1min

To create a Subscription in Stripe, use the action “CreateSubscription” and pass the Subscription data in the RequestJSON under “subscriptions.”

Note: You can only create one record at a time.

Here is an example of creating a Subscription where we are setting every possible field(See Subscription - Stripe for all the available fields). The response will return the response back from Stripe, which includes the Subscription ID (internalId) plus the newly created Salesforce Subscription ID (salesforceId).

Apex
JSON