# INVALID\_REQUEST\_ERROR (API endpoint not found) on \`/v2/online-checkout/payment-links\`

**URL:** <https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778>\
**Category:** Questions\
**Tags:** checkout-api, sandbox\
**Created:** [December 12, 2025, 2:38am UTC](https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778 "2025-12-12T02:38:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![rewq\_poiuyt](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@rewq\_poiuyt](https://developer.squareup.com/forums/u/rewq_poiuyt)\
**Post date:** [December 12, 2025, 2:38am UTC](https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778/1 "2025-12-12T02:38:39Z")

</div>

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**

 ![image](https://global.discourse-cdn.com/square/original/2X/2/23f4cbcf464974199f7a27c21894a49550040c6f.png)

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [December 12, 2025, 2:38am UTC](https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778/2 "2025-12-12T02:38:54Z")

</div>

👋 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:

> **[Quick Pay Checkout](https://developer.squareup.com/docs/checkout-api/quick-pay-checkout)**
>
> Learn how to create a Square-hosted quick pay checkout page by only specifying the name and price (without having to specify the Order object).

> **[Checkout API](https://developer.squareup.com/docs/checkout-api)**
>
> Learn how to use Square-hosted checkout pages for processing payments.

> **Additional Documentation**
>
> [Make your First API Call](https://developer.squareup.com/docs/get-started/make-api-request)  
> [Manage Checkout](https://developer.squareup.com/docs/checkout-api/manage-checkout)  
> [Checkout API](https://developer.squareup.com/docs/checkout-api-overview)

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.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [December 12, 2025, 3:49am UTC](https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778/3 "2025-12-12T03:49:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rewq\_poiuyt](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@rewq\_poiuyt](https://developer.squareup.com/forums/u/rewq_poiuyt)\
**Post date:** [December 12, 2025, 5:32am UTC](https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778/4 "2025-12-12T05:32:33Z")

</div>

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

 ![image](https://global.discourse-cdn.com/square/original/2X/0/0bb14976c3e27d063b1e6ac6173a333536d86eaf.png)

---

<div class="post-metadata">

**Author:** ![Naveen](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Naveen](https://developer.squareup.com/forums/u/Naveen)\
**Post date:** [December 12, 2025, 6:56am UTC](https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778/5 "2025-12-12T06:56:35Z")

</div>

Me too facing the similar issue in sandbox

---

<div class="post-metadata">

**Author:** ![rewq\_poiuyt](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@rewq\_poiuyt](https://developer.squareup.com/forums/u/rewq_poiuyt)\
**Post date:** [December 12, 2025, 9:27am UTC](https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778/6 "2025-12-12T09:27:28Z")

</div>

yeah it’s new last week this was working fine

---

<div class="post-metadata">

**Author:** ![asanga](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@asanga](https://developer.squareup.com/forums/u/asanga)\
**Post date:** [December 12, 2025, 3:37pm UTC](https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778/7 "2025-12-12T15:37:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mcgilldevtech](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mcgilldevtech](https://developer.squareup.com/forums/u/mcgilldevtech)\
**Post date:** [December 12, 2025, 5:05pm UTC](https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778/8 "2025-12-12T17:05:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mprovensi](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@mprovensi](https://developer.squareup.com/forums/u/mprovensi)\
**Post date:** [December 12, 2025, 5:47pm UTC](https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778/9 "2025-12-12T17:47:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Programmatis](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Programmatis](https://developer.squareup.com/forums/u/Programmatis)\
**Post date:** [December 12, 2025, 5:57pm UTC](https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778/10 "2025-12-12T17:57:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![salmanfarooqi](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@salmanfarooqi](https://developer.squareup.com/forums/u/salmanfarooqi)\
**Post date:** [December 12, 2025, 6:41pm UTC](https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778/11 "2025-12-12T18:41:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [December 12, 2025, 7:19pm UTC](https://developer.squareup.com/forums/t/invalid-request-error-api-endpoint-not-found-on-v2-online-checkout-payment-links/24778/12 "2025-12-12T19:19:19Z")

</div>

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