Interface: FirmhouseSubscriptionWithUtils
Properties
activatedAt
string | null
The date and time when the subscription was activated and billing started.
-
address
string | null
The customer's full address line or just street. Can include houseNumber if not separately stored in houseNumber field.
-
amountForStartingSubscriptionCents
number | null
The amount that is due on checkout (in cents).
-
appliedPromotions?
FirmhouseAppliedPromotion[] | null
List of all applied promotions for this customer.
-
billToAddress
string | null
The customer's billing address address line or street.
-
billToCity
string | null
The customer's billing address city or town.
-
billToCompanyName
string | null
The company name of the customer's billing address.
-
billToCountry
string | null
The customer's billing address country code (ISO3661).
-
billToDistrict
string | null
The customer's billing address district.
-
billToFullAddress
string | null
The customer's billing address full address by combining address and house number.
-
billToFullName
string | null
The customer's billing address full name.
-
billToHouseNumber
string | null
The customer's billing address house, building, or appartment number.
-
billToLastName
string | null
The customer's billing address last name.
-
billToPhoneNumber
string | null
The customer's billing address phone number (international format).
-
billToSalutation
string | null
The customer's billing address salutation (mr,ms,mx).
-
billToState
string | null
The customer's billing address state or province (ISO3661-2).
-
billToZipcode
string | null
The customer's billing address zip code or postal code.
-
cancellationStartedAt
string | null
The date and time when cancellation was initiated for the subscription (in case of two-step cancellation).
-
cancelledAt
string | null
The date and time when the subscription was cancelled.
-
chargeDayOfTheMonth
number | null
The day of the month when the customer is charged.
-
checkoutUrl
string | null
URL for the customers to complete their draft subscription.
-
collectionCases?
List of collection cases for this customer
-
createdAt
string | null
The date and time when the subscription record was first created.
-
customerId
string | null
The customer ID given by the selected payment provider
-
customerReference
string | null
The field that can be used for your internal reference. For example, internal customer id.
-
differentBillingAddress
boolean | null
Whether billing and shipping addresses are the same. Set this flag to true to store a separate billing address.
-
extraFields
List of extra fields and values.
-
fullAddress
string | null
The customer's full address by combining address and house number.
-
getClosestUpcomingOrderDate
() => string | null
Utilty to check the closest upcoming order date
-
getClosestUpcomingOrderOrderedProducts
() => FirmhouseOrderedProduct[]
Utility to check the closest upcoming order ordered products
-
identityVerificationUrl
string | null
Identity verification URL that automatically uses the configured provider.Append ?return_url=https://your-url to send the customer back after a successful identification.
-
inTrialPeriod
boolean
Whether this subscription is currently in its trial period.
-
markedAsNonPayingAt
string | null
The date and time when the subscription was last marked as non-paying.
-
marketingOptIn
boolean | null
Whether the customer accepted the optional marketing opt-in.
-
metadata
unknown
Metadata makes it possible to store additional information on objects.
-
monthlyAmountCents
number | null
The monthly amount that is charged.
-
notes
string | null
Notes about the customer that can be set in the portal
-
orderedProducts
| FirmhouseOrderedProductWithUtils[] | null
The ordered products that are part of the order
-
ordersV2?
List of orders of this subscription
-
pausedUntil
string | null
The time the subscription will be automatically resumed.
-
paymentMethod
string | null
The payment method currently in use for billing
-
paymentMethodSummary
string | null
The last 4 digits of the current payment method.
-
paymentMethodTranslated
string | null
Localised string of the payment method currently in use for billing.
-
phoneNumber
string | null
The customer's full international phone number
-
pspPaymentMethodDetails
unknown
The payment method details returned by PSP currently used for billing.
-
signupCompletedAt
string | null
The date and time when the subscription completed their signup and made their initial payment (or no payment if free).
-
skipAutoActivationOnSignup
boolean
If true then the subscription won't be activated after signup and initial payment.
-
startDate
string
The date and time when this subscription was (or will be) charged for the first time.
-
stoppedAt
string | null
The date and time when the subscription was automatically stopped.
-
subscribedPlan
FirmhouseSubscribedPlan | null
Returns the plan relationship and contract terms of the current plan
-
termsAccepted
boolean
Whether the customer accepted the terms and conditions.
-
termsAcceptedOn
string | null
Whether the customer has accepted the terms&conditions.
-
trialPeriodMonths
number | null
The number of months before customer is charged for the first time.
-
updatedAt
string | null
The date and time when the subscription was last updated.
-
updatePaymentMethodUrl
string | null
Send your customer to this URL to allow them to update their active payment method.
-
Last updated
Was this helpful?