#mamtabajaj_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1354216155698696294
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mamtabajaj_api, 6 days ago, 9 messages
Hi! Can you share the Request ID from your Dashboard for that API call please?
req_U171iWM0HCveFt
While creating I choose this product: prod_RyeeJKLcw39hg2
but in Retrieve API I can't find this information
That's the creation request.
You haven't made any GET requests for the coupon, so you've just repeatedly updated it with no updates.
I am calling GET via postman
You're right, you are.
The Coupon object doesn't include the objects with which it's associated.
how can I get that information then?
neither I can find in promotion code if I create under the coupon
๐ taking over for my teammate, give me a few minutes to catch up
Yep, sorry!
To be clear, your goal is to retrieve the Coupon and, from the response, understand if it's limited to specific Products?
yes, I need to get the product id its restricted to
Okay, got it. You'll need to use expansion
applies_to won't be returned unless you expand it: https://docs.stripe.com/api/coupons/object#coupon_object-applies_to
let me try
Is there any sample request API for the expanding one coupon only?
I have something for promotion code, but this returns all promotion codes inside my stripe account
https://api.stripe.com/v1/promotion_codes?expand[]=data.coupon.applies_to
And I am using this API to retrieve coupon information
https://docs.stripe.com/api/coupons/retrieve
Are you doing this in cURL or Postman or somewhere else?
I am able to do other way around using something like this
https://api.stripe.com/v1/promotion_codes?expand[]=data.coupon.applies_to&coupon=CARWASH20
thanks for your help!