#Neeraj Kumar
1 messages · Page 1 of 1 (latest)
👋 @knotty rain How can we help?
Hi @woeful mesa thanks for faster response. Let me give you the inforation.
I am creating the transfer and that transfer having destination payment id.
paymentId is like py_somerandomeId
After getting that payment id, I have to update the description of that destination payment id charge or payment.
But i'm getting error when updating that transfer.
{"type":"StripeInvalidRequestError","raw":{"code":"resource_missing","doc_url":"https://stripe.com/docs/error-codes/resource-missing","message":"No such charge: '' }
This is the error i'm getting.
This is how I creating the transfer
and that's how i'm trying to update the description of that payment or charge
@woeful mesa please help. i'm stuck here now.
Can you share the request ID (req_xxx) where you see the error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
okay let me check
"requestId":"req_uFZuiZHyADrpMU"
@woeful mesa this is the request Id
There are others requests Id as well.
Looking into it now
py_1MdbMrIfunyzmOsHseGKARMf is on the connected account, but you were trying to access it from the platform
In order to update the description of py_1MdbMrIfunyzmOsHseGKARMf on the connected account, you should add Stripe-Account header as connected account ID in your request: https://stripe.com/docs/connect/authentication#stripe-account-header
Yes, the Destination Id is this one.
py_1MdbMrIfunyzmOsHseGKARMf is the destination payment on the connected account. To update description on the destination payment, you should include Stripe-Account header since the object is in connected account, not platform anymore
So I need to add this information while creating the payment intent or when creating the transfers? @woeful mesa
Stripe-Account header should be added when you're trying to perform update on the description of py_xxx
Not payment intent creation or transfer
More specifically,
stripe.charges.update(...)
Yes
okay. Thank you so much @woeful mesa Let me try this if this can solve my problem.
You're life saver
No problem! Let me know if there's any further questions
Sure @woeful mesa