#OpenExO
1 messages · Page 1 of 1 (latest)
hello, you're using Checkout with PromoCodes, is that right?
and with one time payments or Subscriptions?
err I guess it's in the product category as
what do you mean?
I dont know if that term is interchangeable
on the dashboard I have Coupon codes, and that's what im trying to get
Who used the coupon code on checkout
so here's how you do this
1/ list CheckoutSessions: https://stripe.com/docs/api/checkout/sessions/list
and pass expand: subscription.discount.coupon
that will get you each CheckoutSession and each underlying Subscription and the Discount object on each: https://stripe.com/docs/api/discounts and the Coupon object inside that
give that a shot
:/ I just don't know how to represent this in our automation software... using Make.com for the marketing team to get this data sent
yeah I'm not sure how to construct it in that tool but look at the curl snippets and work backwards from there: https://stripe.com/docs/api/expanding_objects
keep in mind that expand takes in an array of strings e.g.
expand: ["x.y.z", "a.b.c"]
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
not sure what syntax looks like in your tool
assuming this is the only way to do it huh?