#mochihealth
1 messages · Page 1 of 1 (latest)
Can you share the example invoice ID (in_xxx) that you're looking for its promo code?
in_1NKu9nBPM36OC3gXBLmGyTfn
because I see that I cant query a discount from the api
which trail do i have to follow
You may make additional Invoice Retrieval API and expand discounts parameter. You will be able to find the promotion code in the discount object
- Invoice retrieval API: https://stripe.com/docs/api/invoices/retrieve
- Expand an object: https://stripe.com/docs/api/expanding_objects
- Promotion code in the Discount object: https://stripe.com/docs/api/discounts/object#discount_object-promotion_code
I feared as much lol
Is there any issue you're facing?
can you tell me what the
customer.discount.deleted webhook event is
From https://stripe.com/docs/api/events/types#event_types-customer.discount.deleted:
Occurs whenever a coupon is removed from a customer.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
what exactly does that mean