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:

const { data: subscriptions } = await authClient.subscription.list({
  referenceId: "TwaTAtP11GPvf3hrlumtNzkgJsBN8DPf",
});
console.dir(subscriptions);


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)
image.png
image.png
Was this page helpful?