Get billing status
https://app.speybooks.com/api/v1/billing/statusReturns the organisation's current billing state: plan, grace and trial state, days remaining, founder seat, and live Stripe subscription detail when a subscription pointer exists. The call is read-only and writes nothing. Subscription detail is fetched live from Stripe; the mirror columns are the fallback when the Stripe read returns no period end.
The response carries a precomputed variant: exactly one
billing-page state per render, with the dates and amounts that
state needs. Clients render from the variant rather than
re-deriving state from the raw fields, which remain for display
detail and compatibility. Two payload-bearing kinds have
behaviour worth stating. pending_cancel carries an optional
paymentFailure block when a payment failure coexists with the
scheduled cancellation, so one render shows both facts together.
cancelled carries retentionUntil, the end of the 12-month
read-only-plus-export retention window.
Two response values are derived rather than read straight from
Stripe: currentPeriodEnd is read from the subscription item's
billing period, and cancelAtPeriodEnd is true whenever a
cancellation is scheduled, regardless of which Stripe field
carries it.
Response
Show response fields
hasStripeCustomerbooleanhasSubscriptionbooleanisTrialActivebooleanplanstringtrialsole_traderlimited_companyplanNamestringseatNumberintegernullablesubscriptionobjectnullableShow child attributes
amountPenceintegernullablecancelAtPeriodEndbooleancardobjectnullableShow child attributes
brandstringexpMonthintegerexpYearintegerlast4stringcurrentPeriodEndstringnullabledate-timenextPaymentAttemptstringnullabledate-timestatusstringtrialEndstringnullabledate-timesubscriptionStatusstringnullabletrialingactivepast_dueunpaidcanceledtrialDaysRemainingintegertrialEndsAtstringnullabledate-timevariantobjectShow child attributes
cancelsOnstringnullabledate-timedaysLeftintegernullableendedOnstringnullabledate-timefirstChargeAmountPenceintegernullablefirstChargeDatestringnullabledate-timekindstringgracegrace_expiredtrialtrial_endingactivepending_cancelpast_duesuspendedcancellednextChargeAmountPenceintegernullablenextChargeDatestringnullabledate-timenextRetryAtstringnullabledate-timepaymentFailureobjectnullableShow child attributes
nextRetryAtstringnullableretryWindowEndsstringnullablepayUrlstringnullableretentionUntilstringnullabledate-timeretryWindowEndsstringnullabledate-timetrialEndedAtstringnullabledate-timetrialEndsAtstringnullabledate-time