Billing & Notification Objects

Billing objects represent the Workspace’s subscription, usage, payment, billing details, and notification preferences.

Subscription Object

WorkspaceSubscription represents the current Workspace subscription state.

Fields

FieldTypeRequiredNullableDefaultDescription
idstringYesNoGeneratedSubscription identifier.
workspaceIdstringYesNo—Owning Workspace.
planSubscriptionPlanYesNoFREECurrent plan.
statusSubscriptionStatusYesNoactiveCurrent subscription state.
billingCycleBillingCycleYesNomonthlyBilling interval.
providerPaymentProviderNoYesnullPayment provider.
maxSeatsnumberYesNo1Seat allowance.
maxConversationsnumberYesNo100Monthly conversation allowance.
addonSeatsnumberYesNo0Additional purchased seats.
currentPeriodStartISO-8601 timestampYesNoGeneratedCurrent billing-period start.
currentPeriodEndISO-8601 timestampYesNoGeneratedCurrent billing-period end.
cancelAtPeriodEndbooleanYesNofalseIndicates whether cancellation occurs at period end.
trialEndsAtISO-8601 timestampNoYesnullTrial expiration timestamp.
gracePeriodEndsAtISO-8601 timestampNoYesnullEnd of the billing grace period.
refundStatusRefundStatusYesNoNONECurrent refund state.
refundDeadlineAtISO-8601 timestampNoYesnullRefund eligibility cutoff.

Subscription Plans

PlanBase Limits / Capabilities
FREE1 seat, 100 conversations per month, 10 Saved Replies.
STARTER3 seats, 500 conversations per month, 50 Saved Replies, CSAT.
GROWTH10 seats, 2,000 conversations per month, expanded Saved Reply capabilities, custom categories, audit-related capabilities.
ENTERPRISECustom or expanded limits, including API access and SSO capabilities.

Subscription Entitlement States

StateDescription
activeSubscription is active.
pendingSubscription checkout or activation is pending.
trialingWorkspace is within an active trial period.
past_duePayment is overdue and the Workspace is within the configured billing grace period.
cancelledSubscription is cancelled, with applicable access retained through the current billing period.

A past_due subscription has a verified 7-day grace period. A cancelled subscription retains applicable paid access until the current billing period ends.

Metered Usage Object

WorkspaceUsage represents monthly Workspace conversation usage.

FieldTypeDescription
idstringUsage record identifier.
workspaceIdstringWorkspace identifier.
monthnumberCalendar month represented by the usage record.
yearnumberCalendar year represented by the usage record.
conversationCountnumberNumber of metered Conversations for that period.
updatedAtISO-8601 timestampLast usage update timestamp.

Payment Transaction Object

PaymentTransaction represents a payment transaction associated with a Workspace subscription.

Relevant fields include:

FieldTypeDescription
idstringTransaction identifier.
workspaceIdstringWorkspace identifier.
providerPaymentProviderPayment gateway provider.
providerPaymentIdstringProvider payment identifier.
providerEventIdstringProvider event identifier.
planSubscriptionPlanPlan associated with the transaction.
billingCycleBillingCycleBilling interval.
amountnumberTransaction amount.
currencystringTransaction currency.
statusPaymentStatusPayment state.
paidAtISO-8601 timestampPayment completion timestamp.

Provider raw payload dumps must not be exposed as Reference fields.

Billing Details Object

BillingDetails contains billing and tax-related contact information.

FieldDescription
firstNameBilling contact first name.
lastNameBilling contact last name.
companyNameBusiness or company name.
countryBilling country.
streetAddressBilling street address.
cityBilling city.
stateBilling state or region.
pinCodePostal or PIN code.
phoneBilling contact phone number.
emailBilling contact email address.

Notification Preferences

Notification configuration supports:

FieldDescription
notificationFrequencyGeneral email notification frequency.
unreadMessageFrequencyUnread-message reminder frequency.
notificationStartTimePreferred daily notification time.
enableDailyDigestDaily digest setting.
notificationRecipientIdsUsers receiving configured administrative notifications.
billingNotificationRecipientIdsUsers receiving billing-related alerts.
enableGuestEmailNotificationsControls applicable guest email notification behavior.

Internal recipient-management fields should only be exposed where supported by the corresponding public API.

Notification Frequencies

  • IMMEDIATE
  • SIX_HOURS
  • TWELVE_HOURS
  • TWENTY_FOUR_HOURS
  • NONE

Need Help?

Email: support@ysdesk.com

Documentation: https://docs.ysplugins.com/ys-desk