#xavier_84866
1 messages ยท Page 1 of 1 (latest)
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
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 ๐