#hakeem_connect-platform-creditnotes
1 messages ยท Page 1 of 1 (latest)
๐ 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.
- hakeem_invoice-void, 1 hour ago, 11 messages
Hi ๐
Can you describe the API interactions that lead up to this request?
The request that created this credit note appears to be coming from your integration here>: https://dashboard.stripe.com/test/logs/req_jFcCE9JZA4DbSl
Yes. After giving the customer some amount of credit in the dashboard, I:
- Sign the customer up for a subscription
- Issue a credit note for the portion of the subscription that they paid for without their stripe credit: in Python, with an
invoice: stripe.Invoiceobject from their subscription, I dostripe.CreditNote.create_async(invoice=invoice.id, refund_amount=invoice.amount_paid, amount=invoice.amount_paid) - 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)whereapplied_stripe_credit_balanceis 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.
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
Hmmm, I'm not able to find either of those accounts in my dashboard (in test mode and not)
Okay tha tis because this request: https://dashboard.stripe.com/test/logs/req_CdHz3tCCCwrPLY is coming from a different platform account
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
I see. I think this might be coming from Anrok. Thank you for the help! I'll follow up with them now
Sure thing, happy to help ๐