#allan-egidio_api

1 messages · Page 1 of 1 (latest)

weary deltaBOT
#

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

📝 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.

vast dawn
#

Can you share an example invoice ID (in_123) which the credit grant is not applied?

pale agate
#

Hello River

#

This is the invoice id: in_1RtYB9S5MCZY2pF9PcRoFkoj
This is the credit grant id: credgr_test_61T2w7B8BpaQBmf8641S5MCZY2pF99HU

#

I want that when I create an Invoice, and if the customer has a credit grant, it supposed to be used automatically

#

The customer Id: cus_RwVLKB9vjyxAMo

vast dawn
#

Credit grant can only be used at usage-based price for an invoice from a subscription as explained in https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits

You can’t apply credit grants to:
One-off invoices that weren’t created by a subscription.

Grant billing credits to your customers so they can use them to pay for usage-based products or services, memberships, pay-as-you-go plans, or subscriptions. Learn about approved and prohibited use cases for billing credits, how to apply credit grants, and what information displays in the credit balance summary and in credit balance transactions.

#

Your invoice is an one-time invoice and the price is also not usage-based price.

#

It's expected that credit grant won't be applied

pale agate
#

Look I have the following situation, everything that I tried on Stripe doesn't work for my sitatuion, I already checked:

  • Credit Note
  • Coupon
  • Promotional Code
  • Credit Grant

Everything has a wall blocking me follow with my needs.

What I want is just add a credit to my customer with a expiration data.
This credit should be applied to any invoice created to this customer.
What do you have for me? I'm totally exausted 🙁

#

It is supposed to be something really simple

vast dawn
pale agate
#

But it seems like this one is not able to receive expiration data taking a look on the API

#

Coupons didn't work for me, because if the next invoice be cheaper than the coupon the customer will lost the money

vast dawn
#

Ah yes! Alternatively, you can manage the expiration yourself

#

If the credit balance expires, you can reset the balance on the customer

#

That's also another way

pale agate
#

Reset how? Update the credit balance given with amount zero?

#

There is another way where I don’t need to control de expiration? We have so many options and no one offer the possibility?

weary deltaBOT
vast dawn
#

Reset how? Update the credit balance given with amount zero?
Yes, that's right!

Coupons didn't work for me, because if the next invoice be cheaper than the coupon the customer will lost the money
Coupon is meant to offset the amount on an invoice. It doesn't have a concept of balance.

pale agate
#

There is any way to change the invoice one time for invoice subscription ?

ionic bloom
#

Hi 👋

I'm stepping in as my colleague needs to go. As you have found, most of our methods for offering discounts do not include the concept of an expiration date. This is something you would need to manage yourself.

pale agate
#

Actually we saw that credit grant would work but my invoice would need to be based on subscription and not one time invoice.

#

Im trying to identify how I can create a invoice subscription instead one off

ionic bloom
#

Credit grants won't work because they don't apply to your situation

#

Not only the Subscription but you are not using a compatible price

#

Credit grants will only work if you are using usage base billing

pale agate
#

Omg everything has a wall to reach the other side 🤣

ionic bloom
#

You are trying to make use of features that do not fit your model. My colleague and I are trying to point out the best solution for this problem but there isn't one that does exactly what you want given how you are creating Invoices.

pale agate
#

I think add credit balance and delete it at end of the month is my only option 🥲

ionic bloom
#

Yes, that is straight forward and fairly simple.

pale agate
#

All right thank you man, also thanks for your colleague river

weary deltaBOT
pale agate
#

Hello

#

I tried create a credit balance for the customer but I can't set it to zero. I mean they are immutable

#

What I want is just to add a credit to my customer, and at the end of the current month, if this credit wasn't used, I need to delete it or void or expire.

#

This credit would need to be aplied to the invoice automaticaly

sinful token
#

hi there, my teammate needs to step away, give me a few minutes to catch up

pale agate
#

river's suggestion about set to zero the credit balance didn't work 🙁

#

All denton, hope we can reach a solution 🙁

sinful token
#

based on your use case, I think the suggestion about using customer credit balance transactions for the initial credit and then managing the expiration on your backend makes the most sense

pale agate
#

Yes but there is a problem:

#

Beucase of this I can't for example control it, I can't even set to zero

#

I can't delete also

sinful token
#

right, you wouldn't update the original, you would create a new transaction at the end of the expiration to reverse the credit

#

you would also need to track whether the credit was used on an invoice, so you don't wind up reversing a credit that's already been used

#

I realize that's a little involved but unfortunately there's no built-in way that meets all of your requirements

pale agate
#

Ok man, that is really sad

#

so If I choose to use credit balance transaction, at end of month I need to "debit" this credit?

sinful token
#

essentially yes. but you'll need to check to make sure that the credit was not used for an invoice before doing so

pale agate
#

if this credit is used in a previous invoice, will it not just disappear?

sinful token
#

it will, but if you then apply the "debit", it will create a positive charge on the customer's next invoice

pale agate
#

All right I will do some tests debiting this one