#jim-carry_api
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/1293602379224322141
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! This request doesn't have any parameters at all. Have a look at it in your Dashboard here: https://dashboard.stripe.com/test/logs/req_LTeez4nZvNc5NO
How did you create the request?
Its a tool with drag and drop stuff, doesn't give too much control over stuff. But if I hardcode the unit_amount to a fixed value like 50,000, the API works.
Our API does not accept incoming JSON.
So that's why it's not working.
You need to send a form-encoded payload instead. See here for details: https://docs.stripe.com/api
Can you show me the request ID for that one?
I guarantee you the JSON didn't make that happen.
You're sure you didn't have "form-encoded" selected?
I don't know what to tell you. We don't accept incoming JSON. That won't work. I don't know anything about how the tool you're using works, so I can speak to any specifics there.
So If I use form-encoded URL, that will work as well? (I mean that's the proper way right?)
Our API requires form-encoded requests, yeah.
I just had a look at the raw logs for that successful request on our side, and the POST body was form-encoded.
It was not JSON.
Well now im confused. Like I said I didnt change anything besides that value. I guess I'll try the form.
It's very much recommended to use our official SDKs instead of constructing requests yourself manually, by the way.
Doing so helps you avoid whole classes of issues, like this one.
I asked chatgpt ๐
It changed colors though, now its saying this isn't the proper format haha
Anyway, thanks for the help. I'm trying form-encoded now.
I recommend you don't trust your money movement flow to an LLM unless you can vet and audit the output 100% (in which case you wouldn't need the LLM).