#Codex-proration

1 messages · Page 1 of 1 (latest)

trail patrol
#

Hi

#

Yes it's a limitation on CreditNote to only responsible to a positive amount. What do you want to achieve specifically? We can look into alternatives to CreditNote

fickle grove
#

We need to undo/re-calculate taxes from Stripe Tax for lost disputes/chargebacks on Prorations

#

And since chargebacks don't automatically undo/re-calculate taxes for Stripe Tax, we need to use Credit Notes to do that

trail patrol
#

I somehow get the idea, eventually you want to give back your customer some amount, correct?

#

due to their chargebacks

fickle grove
#

No not give back the amount to the customer

#

Their credit card company/bank will give it back

#

We'll use out_of_band_amount for stripe.CreditNote.create to specify that the amount was credited outside of Stripe

#

However, we want to create a credit note just to undo/re-calculate our total tax from Stripe Tax

trail patrol
#

I see

#

Have you tried the custom_line_item here?

fickle grove
#

Since we don't have their money anymore, but Stripe Tax still thinks we owe the tax they paid

#

Hmm no I haven't used custom_line_item yet, but it seems that custom_line_item needs quantity, which errors out for prorations since there is no unit quantity (that is one of the errors described initially)

trail patrol
#

I mean with custom_line_item you can put a custom amount from any calculation logic. You don't need to put it specifically for a positive or negative line item, you can sum both item, and create a custom_line_item

#

to solve this part

Alright... so if I sum the two proration item amounts, which id do I use?

fickle grove
#

Ahh I see, in order to not need an id

#

Alright, thanks for the help

trail patrol
#

Good luck!