diff --git a/packages/billing/stripe/src/services/stripe-webhook-handler.service.ts b/packages/billing/stripe/src/services/stripe-webhook-handler.service.ts index e414ffd39..11c2883b9 100644 --- a/packages/billing/stripe/src/services/stripe-webhook-handler.service.ts +++ b/packages/billing/stripe/src/services/stripe-webhook-handler.service.ts @@ -303,10 +303,10 @@ export class StripeWebhookHandlerService const invoice = event.data.object; const subscriptionId = invoice.subscription as string; - const subscription = await stripe.subscriptions.retrieve(subscriptionId, { - expand: ['line_items'], - }); + // Retrieve the subscription + const subscription = await stripe.subscriptions.retrieve(subscriptionId); + // Here we need to retrieve the subscription and build the payload const accountId = subscription.metadata.accountId as string; const subscriptionPayloadBuilderService =