Stripe List Subscriptions with referenceId always throws 404
Hii, I just tried to implement the Stripe plugin on my website but unfortunately as soon as I try to fetch the active subscriptions using an organisation reference id it always throws a 404 error. I use SvelteKit, this is my implementation:
The reference ID is valid and has an active subscription. (See screenshot)
I have also attached a screenshot of the network request with the 404 error. The referenceId was passed correctly in the request body.
Without passing a referenceId it will not throw a 404 error, but will return an empty array. (Which is correct as I have no active subscription on the user id, only on the organisation id)


13 Replies
did you import it on the server too?
dumb question ngl
on which version you on?
im on the latest version (1.2.7)
does getting a subscirption via a reference id works for you?
if you call
theres no way to filter subscriptions like that, authClient.subscription.list() gets all the subscription linked to the logged in user
you can do smth like this

@Ping this is kinda dumb if u ask me lmao
i got it from here
https://www.better-auth.com/docs/plugins/stripe#reference-system
Stripe | Better Auth
Stripe plugin for Better Auth to manage subscriptions and payments.
but i just saw that the docs got changed, there is now a query wrapper around referenceId
im gonna try that
its listActiveSubscriptions method
its working now!! :) thank you for your help!!!
authClient.subscription.listActiveSubscriptions
what you did?
exactly like in the docs
confusing
yeah 😅