#jim-carry_api

1 messages ยท Page 1 of 1 (latest)

near parcelBOT
#

๐Ÿ‘‹ 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.

fiery oracle
#

How did you create the request?

alpine badger
#

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.

fiery oracle
#

Our API does not accept incoming JSON.

#

So that's why it's not working.

fiery oracle
#

Can you show me the request ID for that one?

#

I guarantee you the JSON didn't make that happen.

alpine badger
#

req_MsPDO55utkkJsA

#

All i did was change {{ride_cost_cents_stripe}} to 50000.

fiery oracle
#

You're sure you didn't have "form-encoded" selected?

alpine badger
#

Nope.

fiery oracle
#

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.

alpine badger
#

So If I use form-encoded URL, that will work as well? (I mean that's the proper way right?)

fiery oracle
#

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.

alpine badger
#

Well now im confused. Like I said I didnt change anything besides that value. I guess I'll try the form.

fiery oracle
#

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.

alpine badger
#

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.

fiery oracle
#

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

alpine badger
#

Understood.

#

Thanks, it seems to have fixed my issue.