#NEWJOSSY

1 messages ยท Page 1 of 1 (latest)

sullen wolfBOT
elder nova
viral hound
#

Yes, I tried many ways, but it does not work ๐Ÿ˜ฆ

#

Here is my code

#

`CustomerService customerService = new();
CustomerGetOptions customerGetOptions = new();
customerGetOptions.AddExpand("data.customer.subscriptions");

        Customer customer = await customerService.GetAsync(stripeCustomerId);`
#

And i tried many variations

#

customerGetOptions.AddExpand("subscriptions");
customerGetOptions.AddExpand("data.subscriptions");

#

and in response I get Subscriptions as null

elder nova
#

AddExpand("subscriptions"); should work. I am properly expanding the subscriptions on one of my customers right now with that exact same code so that is hopeful at least

#

Have you double checked that that customer does actually have subscriptions?

#

Also what API version are you using? I may be using a different one though I think any of them with this param should work

viral hound
#

here is my customer cus_NpG5vdLqQYWs55

#

My NuGet version is 41.4.0

#

And as I see from logs API version is
2022-11-15

#

Here is video

elder nova
#

Thanks for the info. Checking in to what the difference might be

mossy turtle
#

Hi there ๐Ÿ‘‹ taking a look, please bear with me a couple moments while I do.

viral hound
#

Ok

mossy turtle
#

Looking at the requests we received, it looks like we aren't receiving the expand parameter.

mossy turtle
viral hound
#

take a look at video

#

I've changed data.customer.subscriptions to subscriptions

mossy turtle
#

In there it still looks like you are not passing customerGetOptions to GetAsync

viral hound
#

Gosh

#

Guys I'm so sorry

#

Thank for your support

mossy turtle
#

No worries! It took us a while to spot it as well ๐Ÿ˜„

viral hound
#

Big thanks once more ๐Ÿ™‚ Have a good day !

mossy turtle
#

Thank you, hope you do the same! ๐Ÿ‘‹