#benji07
1 messages · Page 1 of 1 (latest)
👋 Thanks for reaching out
Could you please share the invoiceId ?
in_1LmCTKB7WnaoNWSAcvBFq5sv
but the discount information is not on it
the payment intent associated with it : pi_3LmCOgB7WnaoNWSA1AgTjnvp
Hi! I'm taking over this thread.
So you want to find information about the promotion code used in the Checkout Session?
Hello, yes, i would like to generate an invoice containing that information
So in the Checkout Session object there is a total_details.amout_discount that you could use: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-total_details-amount_discount
i know, but i need the coupon label & code
ok, found it
stripe get cs_test_b1wROyjsRfy6ZihHKri63D6FhADdSS6bMsQhI2JDx1WhkP0DGJxfXz5RLQ --expand=total_details.breakdown
i just need to see how to retrieve that using the api
glad that you managed to solve your issue!
If you want to see examples of using expand: https://stripe.com/docs/expand