#vicky-discount-email
1 messages · Page 1 of 1 (latest)
vicky-discount-email
@covert shadow no that isn't really something we support directly. But that's also not really how our entire API works. It doesn't have any concept of an "email address" so I'm wondering if you can better explain what you are trying to do?
For example you can limit a PromotionCode to a specific Customer object cus_123456 in your account which could be associated with that email address
so, what i m trying to do is , when a customer will try to make a payment we will provide them some discount. now this discount varies from customer to customer. how can i achieve this?
@covert shadow can you provide more specific information? There are numerous ways of integration our APIs and products and I need to know what you are doing exactly
Are you using a no-code solution like PaymentLink? Or maybe our Checkout product? Or something else?
i m using Checkout product
so, in our web application, we are letting the user to create an account , and later then can purchase any plan
and now, since i have user basic details, i will give them discount when they will buy the plan by mathcing some identifier
Okay so if you use Checkout as a developer, you can ask for their email upfront first and then use that to associate the right Customer id cus_123with the Checkout Session so that only that person can use a specific PromotionCode
how can i have customer_id?
do i need to call stripe api when they will create an acoount on our web app?
yes
what api and payload i have to pass to create a customer on stripe?
Please carefully read our docs first https://stripe.com/docs/api/customers/create
sure, thank you so much
sure thing!