Communicating with third party API

I’m having trouble with
Communicating with a third-party API that handles Delivery. anytime when i am trying to call i am getting a cloudflare error and i am unsure why. i have been reading the docs but i am not finding any solutions

Working in
Dev Mode

Extra context

I suspect if you’re getting a Cloudflare error, this will be on the side of the third party API.

Do you know at what point it’s erroring in the code? Got any documentation about the third party API?

hey good day i am getting the error in the line where i am checking if !response.ok. Unfortunately i won’t be able to send you the docs because you will have to sign up for an account to get access to it. i also even reached out to the owners of the API and they could not see anything on there end where i am being blocked. i try giving them my ip and still nothing. am i doing anything wrong in my code?

this is the endpoint i am trying to use

I’m not seeing anything out of the ordinary in the code at first glance.

The only thing that I’d check is the format it’s expecting client_id - the documentation simply has Client id so not as helpful as it could be :sweat_smile: It could be clientId clientID, client_Id etc. etc.

I’d probably seek clarity on that from the API owner.

Also might be worth running a test from something like Postman to simply run a request to the API - will help rule out if it’s a Wix issue, something with the request, the API etc.

i tried it in postman and it works well. i can confirm that it is client_id.

so does this mean its a wix issue?

hey you still there any help will be greatly appreciated

Checked in with the team, and it’s hard to say without the full error.

If it’s working in postman and there’s no restrictions on the API providers side, I’d recommend opening a ticket with Customer Care who’ll be able to collect all the info and investigate further than we’re able to do through the community :slight_smile: