#prakharwp
1 messages · Page 1 of 1 (latest)
Ok, and what are you having trouble with exactly?
in Api response I am not getting applies product list , and when sends promo to create subscription there no error is getting
Can you share an example request that doesnt have the expected result?
And what is the request you're making? eg req_123
https://stripe.com/docs/api/request_ids
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
req_4OB9aGJCr3mhNs
OK so it looks like the promo code you supplied is limited to a different product that the one for the price on the subscription
What part of the the result here is unexpected to you?
it is not giving any error even promo code is limited
It's not expected to error, it's expected to provide no discount
If you want to perform validation for your integration, you'll need to inspect those restrictions yourself
how will I inspect these such type of validation if API doesn't provide these detaisl?
You can look at the coupon applies_to to validation those limitations
note that this is expandable meaning it is not included by default, you need to request it
You can use expansion for this: https://stripe.com/docs/expand