Basic Information

appmixer.stripe.core.CreateSubscription

1.0.0

Public

Creates a subscription for a customer from one or more recurring prices. Without a trial or a default payment method, the first invoice may leave the subscription incomplete until it is paid.

Input Ports

in

FieldTypeDescription
Customer ID text The ID of the customer to subscribe, e.g. cus_NffrFeUfNV2Hib.
Line Items expression Up to 20 recurring prices to subscribe the customer to, each with a quantity.
Trial Period Days number Number of trial days before the customer is charged for the first time.
Default Payment Method ID text ID of a payment method attached to the customer, e.g. pm_1MqLiJLkdIwHu7ixUEgbFdYF. If empty, the customer's default payment method is used.
Collection Method select Charge the default payment method automatically, or email the customer an invoice to pay.
Days Until Due number Number of days the customer has to pay each invoice. Required when the collection method is Send Invoice.
Description text A description of the subscription shown to the customer (up to 500 characters).
Metadata key-value Optional key-value pairs to store on the object, e.g. an order ID from your system.

Output Ports

out

FieldTypeDescription
Subscription ID string -
Object string -
Status string -
Customer ID string -
Collection Method string -
Currency string -
Created (Unix Timestamp) integer -
Start Date (Unix Timestamp) integer -
Trial Start (Unix Timestamp) integer,null -
Trial End (Unix Timestamp) integer,null -
Cancel At Period End boolean -
Days Until Due integer,null -
Default Payment Method ID string,null -
Latest Invoice ID string,null -
Description string,null -
Live Mode boolean -
Metadata object -
Items object -

Full Metadata