#red_api

1 messages · Page 1 of 1 (latest)

rocky jewelBOT
#

👋 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/1435688294297108611

📝 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.

lean spire
#

Hi there,
do you have a request ID for me?

#

Or an account ID and I can try to find one?

zenith coyote
#

the document shows that it's not even supported yet in node.js

lean spire
#

Oh yeah. That is true. Sorry about that. The API is relatively new .

zenith coyote
#

which is a huge gap given I've started using the API

#

what do you suggest as a workaround?

rocky jewelBOT
clear trail
#

Hi, taking over as my teammate needs to step away. Let me catch up.

zenith coyote
#

Hi

clear trail
rocky jewelBOT
zenith coyote
#

Ummm no - first time seeing it

#

Is it production ready?

#

That’s still showing curl for me?

clear trail
zenith coyote
#

how do I access it?

#

as in, is it Node.js?

clear trail
zenith coyote
#

"We show the cURL request because this method is currently unsupported in the Node.js client. To see it in the library, let us know about your use case."

clear trail
#

Let me look further and test this on my end as well. Since this is new, I have not played with it just yet.

zenith coyote
#

ok thanks. I don't see anything in the release notes regarding it

clear trail
#

Actually, I'm wrong.

#

Can you try this please?

zenith coyote
#

sure

#

i'm on 10-29

#

where do I see the format of the retrieve payment record call?

#

I'm expecting something like

stripe.paymentRecords.retrieve

#

it doesn't auto-complete in my editor fwiw

clear trail
#

Yeah, it should look something like that: stripe.paymentRecords.retrieve

#

Let me know if that did not work

zenith coyote
#

have to refactor a little to try it

#
    "errorType": "TypeError",
    "errorMessage": "Cannot read properties of undefined (reading 'retrieve')",
    "stack": [
        "TypeError: Cannot read properties of undefined (reading 'retrieve')",
        "    at handleQuery (file:///var/task/index.mjs:114:61)",
        "    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)",
        "    at async Runtime.handler (file:///var/task/index.mjs:32:16)"
    ]
}```
#

for code:

var paymentRecord = await stripe.paymentRecords.retrieve(paymentRecordId);

clear trail