retrieve invoice data with Swell-js?

Hi all, I'm just building out the account page of our headless store. We sell a few books but the main revenue driver for the site is the subscriptions we offer.

I can easily grab subscription or order data for the customer but none of the returned data holds the actual payments/invoices. I can grab the total of all invoices from the subscription object and I can obviously grab the orders from the order object... only thing is the orders object only returns the initial order, not the subsequent charges that are tied to that order/subscription.

Any ideas how I can pull the payments associated with a subscription? I'm looking to map through them all so a subscriber ca see when they've been charged.

Thanks so much!



  • Hey all, it's been a few days so thought I'd follow with a bump... any help much appreciated 🤘

Sign In or Register to comment.