Firmhouse for Developers
FirmhouseHelp CenterStatusPortal / Login
  • ❤️Firmhouse for Developers
  • GraphQL API
    • Introduction
    • Getting Started
    • Pagination
    • Handling Errors
    • API Reference
      • Queries
        • assets
        • currentCart
        • discountCodes
        • getCollectionCase
        • getCurrentProject
        • getDiscountCode
        • getInvoice
        • getOrder
        • getOrderBy
        • getOrderCalculations
        • getOrders
        • getPayment
        • getRefund
        • getServiceChannelBy
        • getSubscription
        • getSubscriptionAccount
        • getSubscriptionBySelfServiceCenterLoginToken
        • getSubscriptions
        • invoices
        • orderedProducts
        • orders
        • outstandingInvoices
        • payments
        • plans
        • products
        • returnOrders
        • subscriptionAccounts
        • subscriptions
      • Mutations
        • activateSubscription
        • applyPromotionToSubscription
        • assignAsset
        • cancelReturnOrder
        • cancelSubscription
        • completeReturnOrder
        • completeSubscriptionCancellation
        • createAsset
        • createCart
        • createDiscountCode
        • createInvoiceLineItem
        • createInvoicedOneTimeCharge
        • createOrder
        • createOrderedProduct
        • createOrderedProductV2
        • createProduct
        • createPromotion
        • createReturnOrder
        • createSelfServiceCenterLoginToken
        • createSelfServiceCenterLoginTokenV2
        • createServiceChannel
        • createSubscription
        • createSubscriptionFromCart
        • creditAndRefundInvoice
        • deactivateAppliedPromotion
        • destroyInvoiceLineItem
        • destroyOrderedProduct
        • editPlan
        • fulfillOrder
        • fulfillOrders
        • importSubscription
        • pauseSubscription
        • refundPayment
        • resumeSubscription
        • sendSelfServiceCenterLoginTokenEmail
        • shipOrderedProducts
        • switchSubscriptionPlan
        • syncShopifyProducts
        • unassignAsset
        • undoSubscriptionCancellation
        • updateAddressDetails
        • updateAppliedPromotion
        • updateAsset
        • updateAssetOwnership
        • updateInvoice
        • updateInvoiceLineItem
        • updateOrder
        • updateOrderedProduct
        • updateOrderedProductQuantity
        • updatePlan
        • updateProduct
        • updatePromotion
        • updateReturnOrder
        • updateShippingCostsExemption
        • updateSubscribedPlan
        • updateSubscription
      • Objects
        • AcceptanceCheck
        • AcceptanceCheckStatus
        • ActivateSubscriptionInput
        • ActivateSubscriptionPayload
        • AdyenPaymentMethodVariant
        • AppliedBillingCyclePromotion
        • AppliedOrderDiscountPromotion
        • AppliedPromotion
        • AppliedPromotionDeactivationStrategy
        • ApplyPromotionToSubscriptionInput
        • ApplyPromotionToSubscriptionPayload
        • Asset
        • AssetConnection
        • AssetCustomField
        • AssetCustomFieldInput
        • AssetCustomFieldValue
        • AssetEdge
        • AssetOwnership
        • AssetStatus
        • AssignAssetInput
        • AssignAssetPayload
        • BaseIntervalUnit
        • BillingCycleIntervalUnit
        • BillingCyclePromotion
        • Boolean
        • CancelReturnOrderInput
        • CancelReturnOrderPayload
        • CancelSubscriptionInput
        • CancelSubscriptionPayload
        • Cart
        • CollectionCase
        • CollectionCaseConnection
        • CollectionCaseEdge
        • CollectionCaseStatus
        • CommitmentUnit
        • CompleteReturnOrderInput
        • CompleteReturnOrderPayload
        • CompleteSubscriptionCancellationInput
        • CompleteSubscriptionCancellationPayload
        • CreateAssetInput
        • CreateAssetPayload
        • CreateCartInput
        • CreateCartPayload
        • CreateDiscountCodeInput
        • CreateDiscountCodePayload
        • CreateInvoiceLineItemInput
        • CreateInvoiceLineItemPayload
        • CreateInvoicedOneTimeChargeInput
        • CreateInvoicedOneTimeChargePayload
        • CreateOrderInput
        • CreateOrderPayload
        • CreateOrderedProductInput
        • CreateOrderedProductPayload
        • CreateOrderedProductV2Input
        • CreateOrderedProductV2Payload
        • CreateProductInput
        • CreateProductPayload
        • CreatePromotionInput
        • CreatePromotionPayload
        • CreateReturnOrderInput
        • CreateReturnOrderPayload
        • CreateSelfServiceCenterLoginTokenInput
        • CreateSelfServiceCenterLoginTokenPayload
        • CreateSelfServiceCenterLoginTokenV2Input
        • CreateSelfServiceCenterLoginTokenV2Payload
        • CreateServiceChannelInput
        • CreateServiceChannelPayload
        • CreateSubscriptionFromCartInput
        • CreateSubscriptionFromCartPayload
        • CreateSubscriptionInput
        • CreateSubscriptionPayload
        • CreditAndRefundInvoiceInput
        • CreditAndRefundInvoicePayload
        • CustomerFeedback
        • DeactivateAppliedPromotionInput
        • DeactivateAppliedPromotionPayload
        • DestroyInvoiceLineItemInput
        • DestroyInvoiceLineItemPayload
        • DestroyOrderedProductInput
        • DestroyOrderedProductPayload
        • DiscountCode
        • DiscountCodeConnection
        • DiscountCodeEdge
        • EditPlanInput
        • EditPlanPayload
        • ExtraField
        • ExtraFieldAnswer
        • ExtraFieldInput
        • ExtraFieldInterface
        • FeedbackTypeEnum
        • Float
        • FulfillOrderInput
        • FulfillOrderPayload
        • FulfillOrdersInput
        • FulfillOrdersPayload
        • ID
        • ISO8601Date
        • ISO8601DateTime
        • ImportSubscriptionInput
        • ImportSubscriptionPayload
        • InstalmentIntervalInterface
        • Int
        • Invoice
        • InvoiceConnection
        • InvoiceEdge
        • InvoiceLineItem
        • InvoiceReminder
        • InvoiceStatusEnum
        • InvoiceUpdatableStatusEnum
        • JSON
        • Licence
        • LineItemTypeEnum
        • MaximumCommitmentUnit
        • MetadataInterface
        • ModelValidationError
        • Offer
        • OfferTypeEnum
        • Order
        • OrderCalculation
        • OrderConnection
        • OrderDiscountPromotion
        • OrderEdge
        • OrderLine
        • OrderSortEnum
        • OrderStatus
        • OrderedProduct
        • OrderedProductEdge
        • OrderedProductInput
        • OrderedProductIntervalUnitOfMeasure
        • OrderedProductStatus
        • OrderedProductTypes
        • OrderedProductsWithSummaryConnection
        • PageInfo
        • PauseSubscriptionInput
        • PauseSubscriptionPayload
        • Payment
        • PaymentConnection
        • PaymentEdge
        • PaymentStatusEnum
        • PaymentTypeEnum
        • Plan
        • PlanConnection
        • PlanEdge
        • PlanProduct
        • Price
        • PriceDeleteInput
        • PriceInput
        • Product
        • ProductConnection
        • ProductEdge
        • Project
        • Promotion
        • Refund
        • RefundPaymentInput
        • RefundPaymentPayload
        • RefundStatus
        • ResumeSubscriptionInput
        • ResumeSubscriptionPayload
        • ReturnOrder
        • ReturnOrderConnection
        • ReturnOrderEdge
        • ReturnOrderProduct
        • ReturnOrderProductInput
        • ReturnOrderStatus
        • SelfServiceCenterLoginToken
        • SendSelfServiceCenterLoginTokenEmailInput
        • SendSelfServiceCenterLoginTokenEmailPayload
        • ServiceChannel
        • ShipOrderedProductsInput
        • ShipOrderedProductsPayload
        • String
        • SubscribedPlan
        • Subscription
        • SubscriptionAcceptanceCheck
        • SubscriptionAcceptanceCheckConnection
        • SubscriptionAcceptanceCheckEdge
        • SubscriptionAccount
        • SubscriptionAccountConnection
        • SubscriptionAccountEdge
        • SubscriptionAccountStatus
        • SubscriptionConnection
        • SubscriptionEdge
        • SubscriptionIdentity
        • SubscriptionStatus
        • SwitchSubscriptionPlanInput
        • SwitchSubscriptionPlanPayload
        • SyncShopifyProductsInput
        • SyncShopifyProductsPayload
        • TaxRate
        • UnassignAssetInput
        • UnassignAssetPayload
        • UndoSubscriptionCancellationInput
        • UndoSubscriptionCancellationPayload
        • UpdateAddressDetailsInput
        • UpdateAddressDetailsPayload
        • UpdateAppliedPromotionInput
        • UpdateAppliedPromotionPayload
        • UpdateAssetInput
        • UpdateAssetOwnershipInput
        • UpdateAssetOwnershipPayload
        • UpdateAssetPayload
        • UpdateInvoiceInput
        • UpdateInvoiceLineItemInput
        • UpdateInvoiceLineItemPayload
        • UpdateInvoicePayload
        • UpdateOrderInput
        • UpdateOrderPayload
        • UpdateOrderedProductInput
        • UpdateOrderedProductPayload
        • UpdateOrderedProductQuantityInput
        • UpdateOrderedProductQuantityPayload
        • UpdatePlanInput
        • UpdatePlanPayload
        • UpdateProductInput
        • UpdateProductPayload
        • UpdatePromotionInput
        • UpdatePromotionPayload
        • UpdateReturnOrderInput
        • UpdateReturnOrderPayload
        • UpdateShippingCostsExemptionInput
        • UpdateShippingCostsExemptionPayload
        • UpdateSubscribedPlanInput
        • UpdateSubscribedPlanPayload
        • UpdateSubscriptionInput
        • UpdateSubscriptionPayload
  • Liquid
    • Introduction
    • Email template overview
    • Using Extra Fields in Liquid
    • Available tags
  • Webhooks
    • Overview
  • Guides
    • Creating a Storefront App
    • Updating the amount of discount on each order
    • Build a switch/upgrade plan flow that requires payment
  • SDKs
    • Storefront JS SDK
      • Configuration Options
      • Create a Storefront API token
      • Shopify
        • Add an integrated cart to your Shopify store
        • Link up "View Cart" button
      • Translations and custom copy
      • Using with Next.js
    • Firmhouse SDK
      • Getting Started
      • Examples and Boilerplates
      • Handling Errors
      • Reference
        • Classes
          • FirmhouseClient
        • Resources
          • CartsResource
          • InvoicesResource
          • PlansResource
          • ProductsResource
          • ProjectsResource
          • SelfServiceCenterTokenResource
          • SubscriptionsResource
        • Errors
          • NotFoundError
          • ServerError
          • ValidationError
        • Enumerations
          • AcceptanceCheckStatus
          • Access
          • AppliedPromotionDeactivationStrategy
          • AssetStatus
          • BaseIntervalUnit
          • BillingCycleIntervalUnit
          • CollectionCaseStatus
          • CommitmentUnit
          • FeedbackTypeEnum
          • InvoiceStatusEnum
          • LineItemTypeEnum
          • MaximumCommitmentUnit
          • OrderStatus
          • OrderedProductIntervalUnitOfMeasure
          • OrderedProductStatus
          • OrderedProductTypes
          • PaymentStatusEnum
          • PaymentTypeEnum
          • RefundStatus
          • ReturnOrderStatus
          • SubscriptionStatus
        • Functions
          • mapExtraFieldsByFieldId()
        • Interfaces
          • FirmhouseAppliedOrderDiscountPromotion
          • FirmhouseAppliedPromotion
          • FirmhouseBillingCyclePromotion
          • FirmhouseCart
          • FirmhouseCollectionCase
          • FirmhouseConfig
          • FirmhouseDiscountCode
          • FirmhouseExtraField
          • FirmhouseExtraFieldAnswer
          • FirmhouseInvoice
          • FirmhouseInvoiceLineItem
          • FirmhouseInvoiceReminder
          • FirmhouseOrder
          • FirmhouseOrderLine
          • FirmhouseOrderedProduct
          • FirmhouseOrderedProductUtils
          • FirmhouseOrderedProductWithUtils
          • FirmhouseOriginalInvoice
          • FirmhousePayment
          • FirmhousePlan
          • FirmhouseProduct
          • FirmhouseProject
          • FirmhousePromotion
          • FirmhouseRefund
          • FirmhouseSubscribedPlan
          • FirmhouseSubscription
          • FirmhouseSubscriptionUtils
          • FirmhouseSubscriptionWithUtils
          • FirmhouseTaxRate
          • FirmhouseVerifiedIdentity
          • FirmouseCollectionCase
        • TypeAliases
          • PaginatedResponse
    • Headless React
      • Examples
      • Components
        • FirmhouseCartProvider
        • CheckoutForm
        • OrderedProductList
        • OrderSummary
        • Translated
Powered by GitBook
On this page

Was this helpful?

  1. GraphQL API
  2. API Reference
  3. Objects

Subscription

A subscription represents the main subscription or customer record in Firmhouse

Last updated 19 days ago

Was this helpful?

A subscription contains things like name, address, and company details. A subscription is subscribed to a plan via SubscribedPlan or multiple products via the OrderedProduct object.

Fields

activatedAt ()

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

activePlan ()

Returns the plan the subscription is currently subscribed to.

address ()

The customer's full address line or just street. Can include houseNumber if not separately stored in houseNumber field.

amountForStartingSubscriptionCents ()

The amount that is due on checkout (in cents).

appliedBillingCyclePromotions ([!])

List of billing cycle promotions applied for this customer.

appliedOrderDiscountPromotions ([!])

List of order discount promotions applied for this customer.

appliedPromotions ([!])

List of all applied promotions for this customer.

The customer's billing address address line or street.

The customer's billing address city or town.

The company name of the customer's billing address.

The customer's billing address country code (ISO3661).

The customer's billing address district.

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

The customer's billing address full name.

The customer's billing address house, building, or appartment number.

The customer's billing address last name.

The customer' billing address first name.

The customer's billing address phone number (international format).

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

The customer's billing address state or province (ISO3661-2).

The customer's billing address zip code or postal code.

The date and time when cancellation was initiated for the subscription (in case of two-step cancellation).

The date and time when the subscription was cancelled.

The day of the month when the customer is charged.

URL for the customers to complete their draft subscription.

The customer's city or town.

List of collection cases for this customer.

Argument
Description

Returns the elements in the list that come after the specified cursor.

Returns the elements in the list that come before the specified cursor.

Returns the first n elements from the list.

Returns the last n elements from the list.

The customer's company name.

The customer's country code (ISO 3116)

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

The currency used for this subscription

List of customer feedback for this customer.

The customer ID given by the selected payment provider

The field that can be used for your internal reference. For example, internal customer id.

The customer's date of birth

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

The assigned discount codes.

The customer's district

The customer's email address

Will never add any shipping costs to any order

List of extra fields and values.

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

The customer's full name.

The customer's house number.

The id of the subscription.

Identity verification URL that automatically uses the configured provider.Append ?return_url=https://your-url to send the customer back after a successful identification.

Whether this subscription is currently in its trial period.

List of invoices of this customer.

The customer's last name.

The customer's locale/language.

The date and time when the subscription was last marked as non-paying.

Whether the customer accepted the optional marketing opt-in.

Metadata makes it possible to store additional information on objects.

Deprecated: Use monthlyAmountCents instead.

The monthly amount that is charged.

The monthly amount that is charged (in cents)

The customer's first name.

Notes about the customer that can be set in the portal

Deprecated: Will be removed.

Calculate order prices

Argument
Description

The ordered products that are part of the order

List of products the subscription is on.

Deprecated: Use 'ordersV2' instead.

List of orders of this subscription

List of orders of this subscription

Argument
Description

Filter orders to those that where created since the given datetime.

Only list orders with given payment status on related invoice.

Reverse the sort order

Filter orders on given status. Lists all orders if none given.

Filter orders to those that where updated since the given datetime.

Filter orders to those that where updated until the given datetime.

Specify the sort order for orders. Defaults to CREATED_AT.

Returns the elements in the list that come after the specified cursor.

Returns the elements in the list that come before the specified cursor.

Returns the first n elements from the list.

Returns the last n elements from the list.

The amount that is succesfully paid so far.

The time the subscription was paused.

The time the subscription will be automatically resumed.

The payment method currently in use for billing

The last 4 digits of the current payment method.

Localised string of the payment method currently in use for billing.

The customer's full international phone number

List of products the subscription is on (via orderedProducts).

Deprecated: Will be removed.

The payment method details returned by PSP currently used for billing.

The date and time when the subscription was rejected.

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

Returns the service channel this subscription has signed up to

The date and time when the subscription completed their signup and made their initial payment (or no payment if free).

If true then the subscription won't be activated after signup and initial payment.

The date and time when this subscription was (or will be) charged for the first time.

The customer's state

Status of this customer.

The date and time when the subscription was automatically stopped.

Returns the plan relationship and contract terms of the current plan

List of acceptance checks of this subscription

Argument
Description

Returns the elements in the list that come after the specified cursor.

Returns the elements in the list that come before the specified cursor.

Returns the first n elements from the list.

Returns the last n elements from the list.

Whether the customer accepted the terms and conditions.

Whether the customer has accepted the terms&conditions.

Unique token of the subscription

The number of months before customer is charged for the first time.

Send your customer to this URL to allow them to update their active payment method.

The date and time when the subscription was last updated.

The company's VAT number.

Details of the verified identity if present.

The customer's postal code or zipcode.

billToAddress ()

billToCity ()

billToCompanyName ()

billToCountry ()

billToDistrict ()

billToFullAddress ()

billToFullName ()

billToHouseNumber ()

billToLastName ()

billToName ()

billToPhoneNumber ()

billToSalutation ()

billToState ()

billToZipcode ()

cancellationStartedAt ()

cancelledAt ()

chargeDayOfTheMonth ()

checkoutUrl ()

city ()

collectionCases ()

after ()

before ()

first ()

last ()

companyName ()

country ()

createdAt ()

currency ()

customerFeedbacks ([!])

customerId ()

customerReference ()

dateOfBirth ()

differentBillingAddress ()

discountCodes ([!])

district ()

email ()

exemptFromShippingCosts ()

extraFields ([!]!)

fullAddress ()

fullName ()

houseNumber ()

id ()

identityVerificationUrl ()

inTrialPeriod (!)

invoices ([!])

lastName ()

locale ()

markedAsNonPayingAt ()

marketingOptIn ()

metadata ()

monthlyAmount ()

monthlyAmountCents ()

name ()

notes ()

orderCalculation ()

orderedProducts ([!])

discountCode ()

orderedProducts ([!])

orders ([!])

ordersV2 ()

createdSince ()

paid ()

reverse ()

status ()

updatedSince ()

updatedUntil ()

orderBy ()

after ()

before ()

first ()

last ()

paidAmount ()

pausedAt ()

pausedUntil ()

paymentMethod ()

paymentMethodSummary ()

paymentMethodTranslated ()

phoneNumber ()

products ([!])

project (!)

projectId (!)

pspPaymentMethodDetails ()

rejectedAt ()

salutation ()

serviceChannel ()

signupCompletedAt ()

skipAutoActivationOnSignup (!)

startDate (!)

state ()

status (!)

stoppedAt ()

subscribedPlan ()

subscriptionAcceptanceChecks ()

after ()

before ()

first ()

last ()

termsAccepted (!)

termsAcceptedOn ()

token ()

trialPeriodMonths ()

updatePaymentMethodUrl ()

updatedAt ()

vatNumber ()

verifiedIdentity ()

zipcode ()

String
Plan
String
Int
AppliedBillingCyclePromotion
AppliedOrderDiscountPromotion
AppliedPromotion
String
String
String
String
String
String
String
String
String
String
String
String
String
String
String
String
Int
String
String
CollectionCaseConnection
String
String
String
String
CustomerFeedback
String
String
ISO8601Date
Boolean
DiscountCode
String
String
Boolean
ExtraFieldAnswer
String
String
String
String
String
Boolean
Invoice
String
String
String
Boolean
JSON
Float
Int
String
String
OrderCalculation
OrderedProduct
Order
OrderConnection
Float
ISO8601DateTime
ISO8601DateTime
String
String
String
String
Product
Project
ID
JSON
ISO8601DateTime
String
ServiceChannel
String
Boolean
ISO8601DateTime
String
SubscriptionStatus
ISO8601DateTime
SubscribedPlan
SubscriptionAcceptanceCheckConnection
Boolean
String
String
Int
String
String
String
SubscriptionIdentity
String
String
String
Int
Int
OrderedProductInput
String
ISO8601DateTime
Boolean
Boolean
OrderStatus
ISO8601DateTime
ISO8601DateTime
OrderSortEnum
String
String
Int
Int
String
String
Int
Int