Returned directly or within a successful result object from the following requests:
The value that specifies the day of the month that the gateway will charge the subscription on every billing cycle.
The end date for the current billing period, regardless of subscription status. Automatic retries on past due subscriptions do not change the start and end dates of the current billing period.
The start date for the current billing period, regardless of subscription status. Automatic retries on past due subscriptions do not change the start and end dates of the current billing period.
The subscription's current billing cycle. It is incremented each time the subscription passes the
The number of days that the subscription is past due. Read more about the past due status in the Recurring Billing guide.
The description of the transaction that is displayed to customers in email receipts from PayPal. 127 character maximum.
The number of consecutive failed attempts by our recurring billing engine to charge a subscription. This count includes the transaction attempt that caused the subscription's status to become past due, starting at 0 and increasing for each failed attempt. If the subscription is active and no charge attempts failed, the count is 0.
The string value representing a specific subscription in the Vault. Length and format of gateway-generated tokens and IDs may change at any time.
The merchant account ID used for the subscription. Currency is also determined by merchant account ID.
Whether a subscription's billing cycle is set to never expire instead of running for a specific number of billing cycles.
The date that the gateway will try to bill the subscription again. The gateway adjusts this date each time it tries to charge the subscription. If the subscription is
past due and you have set your processing options to automatically retry failed transactions, the gateway will continue to adjust this date, advancing it based on the settings that you configured in advanced settings.
The total subscription amount for the next billing period. This amount includes add-ons and discounts but does not include the current balance.
The date through which the subscription has been paid. It is the
billing_period_end_date at the time of the last successful transaction. If the subscription is pending (has a future start date), this field is
See the recurring billing overview. Possible values:
Array of up to 50 subscription history events.
Transactions associated with the subscription, sorted by creation date with the most recent first. When returned in a subscription webhook, this array contains only the 20 most recent transactions; otherwise, it contains all transactions associated with the subscription.
The trial unit specified in a plan. Specify
month. Specifying a trial duration unit via the API will override the subscription's plan details.
A value indicating whether a subscription should begin with a trial period. Specifying a trial period via the API will override the subscription's plan details.
Each subscription history object returned on a subscription includes the following details:
||The balance of the subscription.|
||The price of the subscription.|
||The subscription status. Possible values:
||Where the subscription event was created. Possible values:
Here's an example of how to get a subscription's history using the
subscription = gateway.subscription.find("a_subscription_id") status_history = subscription.status_history status_history.first.balance #=> "12.34"
Still have questions?
If you can’t find an answer, contact us