Subscriptions
Subscriptions API operations.
Summary
Types
@type t() :: %PolarExpress.Resources.Subscriptions{ amount: term(), cancel_at_period_end: term(), canceled_at: term(), checkout_id: term(), created_at: term(), currency: term(), current_period_end: term(), current_period_start: term(), custom_field_data: term(), customer: term(), customer_cancellation_comment: term(), customer_cancellation_reason: term(), customer_id: term(), discount: term(), discount_id: term(), ended_at: term(), ends_at: term(), id: term(), metadata: term(), meters: term(), modified_at: term(), pending_update: term(), prices: term(), product: term(), product_id: term(), recurring_interval: term(), recurring_interval_count: term(), seats: term(), started_at: term(), status: term(), trial_end: term(), trial_start: term() }
amount- The amount of the subscription.cancel_at_period_end- Whether the subscription will be canceled at the end of the current period.canceled_at- The timestamp when the subscription was canceled. The subscription might still be active ifcancel_at_period_endistrue.checkout_idcreated_at- Creation timestamp of the object. Format: date-time.currency- The currency of the subscription.current_period_end- The end timestamp of the current billing period. Format: date-time.current_period_start- The start timestamp of the current billing period. Format: date-time.custom_field_data- Key-value object storing custom field values.customercustomer_cancellation_commentcustomer_cancellation_reasoncustomer_id- The ID of the subscribed customer. Format: uuid4.discountdiscount_id- The ID of the applied discount, if any.ended_at- The timestamp when the subscription ended.ends_at- The timestamp when the subscription will end.id- The ID of the object. Format: uuid4.metadatameters- List of meters associated with the subscription.modified_at- Last modification timestamp of the object.pending_update- Pending subscription update that will be applied at the beginning of the next period. Ifnull, there is no pending update.prices- List of enabled prices for the subscription.productproduct_id- The ID of the subscribed product. Format: uuid4.recurring_interval- The interval at which the subscription recurs.recurring_interval_count- Number of interval units of the subscription. If this is set to 1 the charge will happen every interval (e.g. every month), if set to 2 it will be every other month, and so on.seats- The number of seats for seat-based subscriptions. None for non-seat subscriptions.started_at- The timestamp when the subscription started.status- The status of the subscription.trial_end- The end timestamp of the trial period, if any.trial_start- The start timestamp of the trial period, if any.