You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.
Create Subscription
payments/create-subscription@1.0.0
2 providers
Create Subscription
CreateSubscription
Creates a subscription for a subscription plan in a payment system.
Unique customer identficator specific to payment system (e.g. e-mail)
string
Example
Copied!
Result (object)
subscriptionId
required
Unique identifier of the subscription.
string
status
required
Status of the subscription.
Possible values:
- `pending` - The subscription has been created, but not yet approved.
- `approved` - The subscription has been approved by the buyer.
- `active` - The subscription is active.
- `trialing` - The subscription is currently in its trial period.
- `past_due` - The subscription failed to be paid.
- `suspended` - The subscription has been suspended.
- `unpaid` - The subscription failed to be paid, and all retry attempts have been exhausted.
- `cancelled` - The subscription has been cancelled.
- `expired` - The subscription has expired.