#devil_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1260922509105172520
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
i basically have this:
const charge = await this.stripe.charges.retrieve(
String(dispute.charge)
on some webhook
get thrown: Error: No such charge: 'ch_3PbLFWQHtchOUOrh1DQHtymE'
is it intended like this?
Can you share the ID (req_xxx) of the API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
dsipute id:
dp_1PbLFXQHtchOUOrhgCPJ60zu
on the dashboard i can see:
ch_3PbLFWQHtchOUOrh1DQHtymE
yeah 1 sec
I suspect you're missing the Stripe-Account header from your charges.retrieve call
It's a direct charge/dispute on the connected account, so if this is the platform's API key the resource missing error is right
i have the api key set though
Yes, the platform API key. Those objects don't exist on the platform account โ they exist on the conncted account
AHA
So you need to 'authenticate' as the conncted account
okay okay
how would I go on
about retrieving
stripe.charges.retrieve(<ID>, { stripeAccount: <ACCOINT_ID>) ?
i cant initiate stripe with the account id
stripe.charges.retrieve('ch_xxx', {}, {stripeAccount: 'acct_'})
it worked, thank you