A Subscription is an instance of a plan. It holds the actual amounts and dates of payments for the plan.
Attribute | Child Attribute | Description |
---|---|---|
id string | The Subscription ID | |
payer | The payer for the subscription | |
id | The Payer ID | |
firstName | Payer's first name | |
lastName | Payer's last name | |
emailAddress | Payer's email | |
mobileNumber | Payer's mobile number | |
planId | The Plan ID this subscription was created from | |
planName | The name of the plan | |
status | The current status of the subscription. Can be:
| |
startDate | The start date of the subscription | |
freePeriods | Not currently used, but lets you set a period of time where no payments will be scheduled. | |
fixedPayments | A list of the fixed payments for this subscription | |
amount | The amount in cents for this payment. | |
description | The description for this payment | |
cancelPlanOnFailure | Whether or not the subscription will be cancelled if this payment fails | |
metadata | Contains the metadata added when creating the subscription | |
transactionDate | The date of this payment in UTC | |
recurringPayment | The recurring payment portion of this subscription | |
amount | The amount in cents for each payment created | |
endAfterNumberOfPayments | If set, the number of recurring payments to be generated before completing the subscription | |
endAfterTotalAmount | If set, the total amount collected on a recurring basis before completing the subscription | |
frequencyInterval | Can be "days", "months", or "years" | |
frequencyOffset | There will be this many intervals between each recurring payment | |
description | A description for the recurring payment | |
cancelPlanOnFailure | If true, the subscription will be cancelled if any one of the recurring payments fails | |
metadata | Contains the metadata added when creating the subscription | |
endAfterDate | If set, the subscription will complete after this date | |
startDate | The start date of the subscription | |
totalAmount | If set, this is the total amount that will be collected for the subscription. Used mainly for percentage based plans. | |
metadata | Contains the metadata added when creating the subscription | |
surcharge | Contains the Source Types that will have their fees surcharged. Valid values are any combination of "bank-account" and "credit-card". |