#TheKents
1 messages ยท Page 1 of 1 (latest)
You'd need to use the List All Promotion Codes API: https://stripe.com/docs/api/promotion_codes/list
You would then have to ingest the payload and create custom code to iterate through them to find the one you're looking for
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Sure thing!
"In order to retrieve a promotion code by the customer-facing code use list with the desired code."
could i just use list with code param to fetch it
Ah, I didn't realize you knew the code already. So yeah, that would obviously work in your case