Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Latest commit

 

History

History
49 lines (45 loc) · 11.2 KB

Subscription.md

File metadata and controls

49 lines (45 loc) · 11.2 KB

Subscription

Properties

Name Type Description Notes
created datetime { "description" : "The UTC DateTime when the object was created.", "verbs":[] } [optional]
changed_by str { "description" : "ID of the user who last updated the entity.", "verbs":[] } [optional]
updated datetime { "description" : "The UTC DateTime when the object was last updated.", "verbs":[] } [optional]
metadata DynamicMetadata { "description" : "Add metadata.", "verbs":["POST"] } [optional]
id str {"description":"","verbs":["GET"]}
version_id str {"description":"","verbs":["GET"]} [optional]
crm_id str {"description":"","verbs":["POST","PUT","GET"]} [optional]
account_id str {"description":"","verbs":["POST","GET"]}
organization_id str {"description":"Organization associated with the subscription.","verbs":[]}
product_id str {"description":"","verbs":["GET"]}
product_rate_plan_id str {"description":"Identifier of the rate-plan being billed for.","verbs":["POST","PUT","GET"]}
parent_id str {"description":"","verbs":["GET"]} [optional]
name str {"description":"User definable friendly name for the subscription.","verbs":["POST","PUT","GET"]}
description str {"description":"","verbs":["POST","PUT","GET"]} [optional]
type str {"default":"dependent on product", "description":"","verbs":["POST","GET"]} [optional]
state str {&quot;PUT_description&quot;:&quot;A <span class=\&quot;label label-default\&quot;>Provisioned</span> subscription can be updated to either <span class=\&quot;label label-default\&quot;>Trial</span> or <span class=\&quot;label label-default\&quot;>AwaitingPayment</span>, this will start the subscription. Any updates to the state of a non-<span class=\&quot;label label-default\&quot;>Provisioned</span> will be ignored. To cancel or otherwise amend a subscription please use the explict amendment calls.&quot;, &quot;description&quot;:&quot;A <span class=\&quot;label label-default\&quot;>Provisioned</span> subscription will not begin until marked as <span class=\&quot;label label-default\&quot;>Trial</span> or <span class=\&quot;label label-default\&quot;>AwaitingPayment</span>. Trial subscriptions transition to <span class=\&quot;label label-default\&quot;>AwaitingPayment</span> when the trial period is over. On subscription renewal the state becomes <span class=\&quot;label label-default\&quot;>AwaitingPayment</span>. Once outstanding invoices are paid the state changes to <span class=\&quot;label label-default\&quot;>Paid</span>. A subscription is set as either <span class=\&quot;label label-default\&quot;>Failed</span> or left as <span class=\&quot;label label-default\&quot;>AwaitingPayment</span>, depending on the rate-plan configuration. If a subscription is non-recurring or fixed-term and ends naturally, it will be marked as <span class=\&quot;label label-default\&quot;>Expired</span>. If all payment attempts have failed a subscription is marked as <span class=\&quot;label label-default\&quot;>Cancelled</span> if it has been manually ended. Once a subscription is marked as <span class=\&quot;label label-default\&quot;>Failed</span>, <span class=\&quot;label label-default\&quot;>Expired</span>, or <span class=\&quot;label label-default\&quot;>Cancelled</span> no invoices other than a final invoice will be issued. Note: Updating account card details will not lead to BillForward automatically retrying payment, manual payment attempts can be made.&quot;,&quot;verbs&quot;:[&quot;POST&quot;,&quot;PUT&quot;,&quot;GET&quot;]}
current_period_start datetime {&quot;description&quot;:&quot;Start of the current invoice period. At the end of this period, a new new invoice will be generated&quot;,&quot;verbs&quot;:[&quot;POST&quot;,&quot;GET&quot;]} [optional]
current_period_end datetime {&quot;description&quot;:&quot;End of the current period invoiced for. This can be manually updated to extend trials or delay invoice generation.&quot;,&quot;verbs&quot;:[&quot;PUT&quot;,&quot;GET&quot;]} [optional]
contract_start datetime {&quot;description&quot;:&quot;start of the contracted period. This will be after a trial, if one exists&quot;,&quot;verbs&quot;:[&quot;GET&quot;]} [optional]
subscription_end datetime {&quot;description&quot;:&quot;When a subscription will end. This may be in the future if the cancellation is at the end of the current period.&quot;,&quot;verbs&quot;:[&quot;GET&quot;]} [optional]
current_period_end_explicit datetime {&quot;description&quot;:&quot;Override for the initial subscription period. Allows periods to align to a date or time regardless of purchase date/time.&quot;,&quot;verbs&quot;:[&quot;POST&quot;,&quot;PUT&quot;,&quot;GET&quot;]} [optional]
initial_period_start datetime {&quot;description&quot;:&quot;Start of the first successful period&quot;,&quot;verbs&quot;:[&quot;GET&quot;]}
successful_periods int {&quot;description&quot;:&quot;Number of paid-for periods billing, excluding trials, since the subscription started.&quot;,&quot;verbs&quot;:[&quot;GET&quot;]} [optional]
total_periods int {&quot;description&quot;:&quot;Total number of subscription periods.&quot;,&quot;verbs&quot;:[&quot;GET&quot;]} [optional]
trial_end datetime {&quot;description&quot;:&quot;The end time of the trial period, if one existed&quot;,&quot;verbs&quot;:[&quot;GET&quot;]}
dunning bool { &quot;default&quot;:&quot;false&quot;, &quot;description&quot;:&quot;Are there outstanding invoices which are currently in dunning.&quot;,&quot;verbs&quot;:[&quot;GET&quot;, &quot;PUT&quot;, &quot;POST&quot;]} [optional] [default to False]
locked str {&quot;description&quot;:&quot;If the subscription is locked, it will not be processed by the system&quot;,&quot;verbs&quot;:[]} [optional]
managed_by str {&quot;description&quot;:&quot;Which system is responsible for managing the subscription.&quot;,&quot;verbs&quot;:[]} [optional]
version_start datetime {&quot;description&quot;:&quot;When the current version of the subscription started.&quot;,&quot;verbs&quot;:[&quot;GET&quot;]}
version_end datetime {&quot;description&quot;:&quot;When the current version of the subscription ended, null indicates current version.&quot;,&quot;verbs&quot;:[&quot;GET&quot;]} [optional]
version_number int {&quot;description&quot;:&quot;Incremental version number of the subscription, starts at 1.&quot;,&quot;verbs&quot;:[&quot;GET&quot;]}
credit_enabled bool { &quot;default&quot;:&quot;true&quot;, &quot;description&quot;:&quot;Can credit-notes be used to pay outstanding invoices for this subscription.&quot;,&quot;verbs&quot;:[&quot;GET&quot;, &quot;PUT&quot;, &quot;POST&quot;]} [optional] [default to False]
aggregate_all_subscriptions_on_account bool { &quot;default&quot;:&quot;true&quot;, &quot;description&quot;:&quot;Whether the subscription will aggregate all other subscriptions on the account.&quot;,&quot;verbs&quot;:[&quot;GET&quot;, &quot;PUT&quot;, &quot;POST&quot;]} [optional] [default to False]
pricing_component_values list[PricingComponentValue] {&quot;description&quot;:&quot;The quantities for each pricing component of the rate-plan. Values should be set for all pricing components of the rate-plan apart from the usage components. Usage components should be added when the usage is known, this is often after the end of the current billing cycle.&quot;,&quot;verbs&quot;:[&quot;GET&quot;, &quot;POST&quot;]} [optional]
payment_method_subscription_links list[PaymentMethodSubscriptionLink] [optional]
fixed_terms list[FixedTerm] {&quot;description&quot;:&quot;List of fixed terms that have been or are applied to the subscription&quot;,&quot;verbs&quot;:[&quot;GET&quot;]} [optional]
current_time datetime {&quot;description&quot;:&quot;The current time &mdash; from the point of view of the subscription.&quot;,&quot;verbs&quot;:[&quot;GET&quot;]}
time_offset int {&quot;description&quot;:&quot;How far in the future is the entity (in seconds) compared to the BillForward server's time.&quot;,&quot;verbs&quot;:[&quot;GET&quot;]} [optional]
payment_terms int [optional]
failed_payment_behaviour str {&quot;default&quot;:&quot;None&quot;,&quot;description&quot;:&quot;The action that should be taken, should an invoice for some subscription to this rate plan remain unpaid despite the dunning period's being exceeded.<br><span class=\&quot;label label-default\&quot;>CancelSubscription</span> &mdash; Demotes the subscription to the `Failed` state as soon as the dunning period is exceeded.<br><span class=\&quot;label label-default\&quot;>None</span> &mdash; The subscription is allowed to continue in the `AwaitingPayment` state indefinitely even if the dunning period is exceeded.For slow payment cycles &mdash; or when manual invoice remediation is common &mdash; <span class=\&quot;label label-default\&quot;>None</span> is recommended.<br>In a heavily-automated SaaS environment, automatic cancellation via <span class=\&quot;label label-default\&quot;>CancelSubscription</span> is recommended.&quot;,&quot;verbs&quot;:[&quot;POST&quot;,&quot;PUT&quot;,&quot;GET&quot;]} [optional]

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