INVALID_REQUEST_ERROR (API endpoint not found) on `/v2/online-checkout/payment-links`

I am trying to create payment link using Checkout’s Create payment link api and it is giving me this error, I am currently on sandbox environment. Even this error is occuring on Square’s API Explorer Portal

:waving_hand: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Make your First API Call
Manage Checkout
Checkout API

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

Looks like your missing the connect.squareup.com. It needs to be https://connect.squareup.com/v2/online-checkout/payment-links :slight_smile:

1 Like

I am using sandbox environment, plus i am utilizing square’s Node.js SDK not the url directly. This same error is happening in Square’s API Explorer too

Me too facing the similar issue in sandbox

yeah it’s new last week this was working fine

The same issue exists here as well. Following up for a solution.

Was working for me the other day. I made no code changes and today it’s dead. NodeJS square@^43.1.1

Any updates on that? I’ve been facing the same issue since yesterday.

I am also experiencing this issue.
I submitted a support ticket earlier this morning and received this response:
“We’ve identified an issue with these endpoints in Sandbox, and the team is looking into a fix.“

Yes, please, I’m also experiencing the same issue since last 16-20 hours. Everything was working fine, and now my code and even the API explorer throwing the same error.

Working for a solution very quickly, as we’re very close to the Production deadline.

The team has deployed a fix and this is working again. Please don’t hesitate to reach out if you still seeing issues. :slight_smile: