#Kontrolol - Invoice Items
1 messages · Page 1 of 1 (latest)
I cannot use the price ID when creating the invoice item, I must use the amount of the price ID and make it negative?
Hi, I'm not quire sure what you mean here. Could you re-word this?
when creating an invoice item, it shows that you can specify the price_id, and of course the required customer id.
specifying the price_id will allow it to pull the amount from the referenced price.
I assume this will create an invoice item that will add that amount to the amount due.
the only way to apply a negative invoice is to use the amount property and specify a negative value
Why are you trying to create a $0 invoice in the first place?
For the purpose of giving free months to user using a rewards service
So this is not a subscription, just a one off?
Customer has a subscription.
Two possible monthly subscriptions exist because there are two products
With our promoting and rewards service we will be handing out free months
In previous discussing with dev help, I was told that invoice items was the way to go
Since creating an invoice item only with a customer ID and negative amount would result in the next generated invoice looking for any other unused invoice item and applying them until balance is 0. Which means there can be a list of invoice items with negative amounts which represent the number of accumulated free months
Credit note does not seem to be what we need.
It has to be for any upcoming payment. Not an already paid invoice.
Hello
Hi sorry, lots of threads
No problem
Okay gotcha, thanks for that context
So have you tested using basic negative amounts? Or do you want to specify negative prices that reflect specific rewards?
Well, I was just wondering if the only way to have a negative amount for an invoice item was to use the amount property and use a negative value.
According to APIs it seems so. It just seems cleaner to specify the price Id and if there was another way to make it so that it used the related amount as a negative
I would suspect our Price objects to not accept negative values. If that is what you've found then I expect you will need to use amounts to achieve this behavior
The other option would be using coupons for specified amounts to discount the appropriate "credit"