#shyam-m_api

1 messages ¡ Page 1 of 1 (latest)

hollow abyssBOT
#

👋 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/1410619698890145805

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

hallow marsh
#

Hi, what does 'adding it to customer credit balance from coupon promocode' mean exactly? Are you able to share an example please?

#

You can limit it that way if you're using the Coupons API

proper stream
#

promocode is created with limit 1 and here the example to add
var options = new CustomerBalanceTransactionCreateOptions
{
Amount = -amount, // amount in cents
Currency = currency,
};

    var transactionService = new CustomerBalanceTransactionService(_stripeClient);
    var transaction = await transactionService.CreateAsync(customerId, options);
hallow marsh
#

Are you able to try that?

proper stream
#

Coupon limit is working fine but how can restrict to US Customers as coupon is created with EUR Currency'

hallow marsh