#Julio-upcoming-invoice-coupon

1 messages ยท Page 1 of 1 (latest)

thin geode
#

Hi ๐Ÿ‘‹ taking a look

rotund onyx
#

Hi toby

#

I feel like i 'm not understanding how to use the API ๐Ÿ˜‰

thin geode
#

That coupon is set up to only discount a specific product, and that product isn't on the invoice so there is nothing to discount.

rotund onyx
#

ho

#

and how do you see that

#

( i mean , is it in the response API ? )

thin geode
#

No, that's not included in the provided response by default and I had to inspect the coupon to find this info. Though I think you could retrieve the info with the invoice if you used expand to reach down into the object structure to expand applies_to:
https://stripe.com/docs/api/coupons/object#coupon_object-applies_to