For the complete documentation index, see llms.txt. This page is also available as Markdown.

Interface: FirmhouseSubscriptionWithUtils

Properties

Property
Type
Description
Overrides
Inherited from

activatedAt

string | null

The date and time when the subscription was activated and billing started.

-

activePlan

Returns the plan the subscription is currently subscribed to.

-

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?

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.

-

billToName

string | null

The customer' billing address first 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.

-

city

string | null

The customer's city or town.

-

collectionCases?

List of collection cases for this customer

-

companyName

string | null

The customer's company name.

-

country

string | null

The customer's country code (ISO 3116)

-

createdAt

string | null

The date and time when the subscription record was first created.

-

currency

string | null

The currency used for this subscription

-

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.

-

dateOfBirth

string | null

The customer's date of birth

-

differentBillingAddress

boolean | null

Whether billing and shipping addresses are the same. Set this flag to true to store a separate billing address.

-

district

string | null

The customer's district

-

email

string | null

The customer's email address

-

extraFields

List of extra fields and values.

-

fullAddress

string | null

The customer's full address by combining address and house number.

-

fullName

string | null

The customer's full name.

-

getClosestUpcomingOrderDate

() => string | null

Utilty to check the closest upcoming order date

-

getClosestUpcomingOrderOrderedProducts

Utility to check the closest upcoming order ordered products

-

houseNumber

string | null

The customer's house number.

-

id

string | null

The id of the subscription.

-

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.

-

invoices?

List of invoices of this customer.

-

lastName

string | null

The customer's last name.

-

locale

string | null

The customer's locale/language.

-

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.

-

name

string | null

The customer's first name.

-

notes

string | null

Notes about the customer that can be set in the portal

-

orderedProducts

The ordered products that are part of the order

-

ordersV2?

List of orders of this subscription

-

paidAmount

number | null

The amount that is succesfully paid so far.

-

pausedAt

string | null

The time the subscription was paused.

-

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.

-

salutation

string | null

The customer's salutation (mr,ms,mx).

-

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.

-

state

string | null

The customer's state

-

status

Status of this customer.

-

stoppedAt

string | null

The date and time when the subscription was automatically stopped.

-

subscribedPlan

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.

-

token

string

Unique token of the subscription

-

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.

-

vatNumber

string | null

The company's VAT number.

-

verifiedIdentity?

Details of the verified identity if present.

-

zipcode

string | null

The customer's postal code or zipcode.

-

Last updated

Was this helpful?