#xavier_84866

1 messages ยท Page 1 of 1 (latest)

tame lanceBOT
eager karma
#

Hi ๐Ÿ‘‹

You need to expand the discount property to get the full information. Here's our doc on expanding API responses: https://stripe.com/docs/expand

hasty comet
#

Thank you for your help ๐Ÿ˜€

I think is this exactly what I have done :

Stripe::Invoice.retrieve(
  {
    id: 'in_xxx', 
    expand:['lines.data.discounts']
  }
)```

Isn't it ?
#

Got it !
You don't need to specify expand in the retrieve call
But do need to specify in the lines.list() call
Thanks for pointing me in the right direction ๐Ÿ˜‰