Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Latest commit

 

History

History
executable file
·
70 lines (66 loc) · 8.48 KB

PreparedSubscription.md

File metadata and controls

executable file
·
70 lines (66 loc) · 8.48 KB

PreparedSubscription

Properties

Name Type Description Notes
handle str Per account unique handle for subscription
customer str Customer handle
plan str Subscription plan handle
state str State of the subscription, one of the following: `active`, `expired`, `on_hold` or `pending`. Active subscriptions can be cancelled and will expire at the end of the current billing period, or later depending on optional notice and fixation periods, this can be checked using the `is_cancelled` parameter and `expires`.
test bool Test flag
amount int Optional custom plan price. If defined the plan price billed for each billing period will be overridden by this price. [optional]
quantity int Quantity of the plan product for this subscription.
expires datetime Fixed date when the subscription will expire because of cancellation. In ISO-8601 extended offset date-time format. [optional]
reactivated datetime Date when the subscription was reactivated from on hold. ISO-8601 extended offset date-time format. [optional]
timezone str Time zone for the subscription as standard time zone id. See Wikipedia
created datetime Date when the subscription was created. In ISO-8601 extended offset date-time format.
activated datetime Date when the subscription was activated. Will only differ from created in a two step prepared -> activated subscription create scenario. In ISO-8601 extended offset date-time format. [optional]
renewing bool If the subscription renews at current period end. Also true for subscriptions with manual scheduling.
invoices list[Invoice] List of created (prepared) invoices for prepared subscription [optional]
plan_version int Subscription plan version
amount_incl_vat bool If optional custom plan price this parameter tells whether the amount is including VAT [optional]
start_date datetime Date and time from which the subscription is eligible to schedule invoices. Either from create or from the latest reactivate or subscription change. In ISO-8601 extended offset date-time format.
end_date datetime Fixed end date and time. In ISO-8601 extended offset date-time format. [optional]
grace_duration int Grace duration in seconds from the creation of a subscription where no dunning process is started for a failing invoice. This allows a certain amount of time for the customer to sign up with a payment method. [optional]
current_period_start datetime Start date and time for the current billing period. In ISO-8601 extended offset date-time format. [optional]
next_period_start datetime Start date and time for the next billing period, and also end date and time for the current billing period. Is also the date and time for next invoice if the subscription is renewing. In ISO-8601 extended offset date-time format. [optional]
first_period_start datetime Start date and time for the first ever billing period. In ISO-8601 extended offset date-time format. [optional]
last_period_start datetime Start date and time for the previous billing period. In ISO-8601 extended offset date-time format. [optional]
trial_start datetime Start date and time of free trial period. In ISO-8601 extended offset date-time format. [optional]
trial_end datetime End date and time of free trial period. In ISO-8601 extended offset date-time format. [optional]
is_cancelled bool Whether the subscription has been cancelled. Cancelled subscriptions will expire at the end of the current billing period.
in_trial bool Whether the susbcription is in its trial period. If subscription has not started (has_started), trial_start and trial_end can be used to determine if the subscription will have a trial period.
has_started bool If subscription has a later start date, this parameter tells if the subscription has started. Use this in connection with state to determine if a subscription is active.
renewal_count int Number of renewals for the subscription (number of invoices)
cancelled_date datetime Date when the subscription was cancelled. In ISO-8601 extended offset date-time format. [optional]
expired_date datetime Date when the subscription expired. ISO-8601 extended offset date-time format. [optional]
expire_reason str Reason for expire. Can be `ondemand`, `cancelled`, `dunning` or `fixed` [optional]
on_hold_date datetime Date when the subscription was put on hold. ISO-8601 extended offset date-time format. [optional]
on_hold_reason str Reason for on hold. Can be `ondemand` or `dunning` [optional]
payment_method_added bool Whether the customer at some point has added payment information to the subscription
scheduled_plan_change str Deprecated - see `pending_change`. If set, a subscription plan change has been scheduled to follow the next renewal. The value is the subscription plan handle to update to. [optional]
reminder_email_sent datetime If defined the date a reminder email was sent for the current billing period. In ISO-8601 extended offset date-time format.
failed_invoices int Number of failed invoices for this subscription
failed_amount int Summed amount for failed invoices
cancelled_invoices int Number of cancelled invoices for this subscription
cancelled_amount int Summed amount for cancelled invoices
pending_invoices int Number of pending invoices for this subscription
pending_amount int Summed amount for pending invoices
dunning_invoices int Number of dunning invoices for this subscription
dunning_amount int Summed amount for dunning invoices
settled_invoices int Number of settled invoices for this subscription
settled_amount int Summed settled amount
refunded_amount int Summed refunded amount
pending_additional_costs int Number of pending additional costs
pending_additional_cost_amount int Summed amount of pending additional costs incl vat
transferred_additional_costs int Number of additional costs that have been applied to invoices
transferred_additional_cost_amount int Summed amount of additional costs that have been applied to invoices
pending_credits int Number of credits that have not fully been applied to invoices
pending_credit_amount int Summed credit amount not yet applied to invoices
transferred_credits int Number of credits that have fully been applied to invoices
transferred_credit_amount int Summed credit amount that have been applied to invoices
hosted_page_links SubscriptionLinks Links to hosted pages relating to subscription
subscription_discounts list[str] List of subscription discounts handles attached to subscription [optional]
pending_change SubscriptionChange Pending subscription change to be applied at next renewal [optional]
subscription_changes list[SubscriptionChange] List of subscription changes both at most one pending and previously applied [optional]
subscription_add_ons list[str] List of subscription add-on handles attached to subscription [optional]

[Back to Model list] [Back to API list] [Back to README]