#krista2780
1 messages · Page 1 of 1 (latest)
Hello! Yeah, you can fetch the Balance Transactions from the connected account by making the API request on the connected account instead of on your platform. See here: https://stripe.com/docs/connect/authentication
you guys are so fast and helpful! thanks a million!
Happy to help!
it works for the balance transaction but doesnt seem to work for payment intents
Can you share more? Are you seeing an error? How are you making the request to list the Payment Intents?
This works - stripe.BalanceTransaction.retrieve(balance_transaction_id, account_id=account_id)
But this does not - stripe.PaymentIntent.retrieve(payment_intent_id, account_id=account_id)
one sec i will share the error
Can you share the request id where you're seeing this error? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
stripe.error.InvalidRequestError: Request req_eCuz1he6FYk5dJ: Received unknown parameter: account_id
You would want to use the Stripe Account Header here, https://stripe.com/docs/connect/authentication#stripe-account-header when trying to retrieve the PaymentIntent on the Connected Account, https://stripe.com/docs/api/payment_intents/retrieve.