#hakeem_connect-platform-creditnotes

1 messages ยท Page 1 of 1 (latest)

proven terraceBOT
#

๐Ÿ‘‹ 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/1296526063245070356

๐Ÿ“ 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.

frank bluff
#

Hi ๐Ÿ‘‹

#

Can you describe the API interactions that lead up to this request?

atomic moon
#

Yes. After giving the customer some amount of credit in the dashboard, I:

  1. Sign the customer up for a subscription
  2. Issue a credit note for the portion of the subscription that they paid for without their stripe credit: in Python, with an invoice: stripe.Invoice object from their subscription, I do stripe.CreditNote.create_async(invoice=invoice.id, refund_amount=invoice.amount_paid, amount=invoice.amount_paid)
  3. Give them Stripe credit balance to refund the amount that was used to pay for the invoice: stripe.Customer.create_balance_async(stripe_customer_id, amount=-applied_stripe_credit_balance, currency=invoice.currency) where applied_stripe_credit_balance is the difference between their balance before and after the invoice

I get the credit note I expect, and the initial Stripe credit balance I expect. But, the extra $0.01 credit note (which is then applied to the Stripe credit balance) with the description "tax" confounds me.

frank bluff
#

Interestingly, the Invoice and orignal credit note were both created by acct_1MExQ9BjIQrRQnux direclty

#

BUT the extra credit note for 1 is created by a Platform account acct_1JFlc7BVHV773kvx using the Stripe Account header

#

So this request is not coming from Stripe but it appears to be a 3rd party integration

atomic moon
#

Hmmm, I'm not able to find either of those accounts in my dashboard (in test mode and not)

frank bluff
#

acct_15HMLaC1xQHbZMSt

#

But, essentially, the odd credit note is coming from some other Platform account's integration that is connected to the same Standard Account

#

It's not your integration that is creating it

#

Or the Standard Account's

atomic moon
#

I see. I think this might be coming from Anrok. Thank you for the help! I'll follow up with them now

frank bluff
#

Sure thing, happy to help ๐Ÿ™‚

proven terraceBOT