# An internal error has occurred, and the API was unable to service your request

**URL:** <https://developer.squareup.com/forums/t/an-internal-error-has-occurred-and-the-api-was-unable-to-service-your-request/21227>\
**Category:** Questions\
**Tags:** subscriptions-api\
**Created:** [February 27, 2025, 7:04am UTC](https://developer.squareup.com/forums/t/an-internal-error-has-occurred-and-the-api-was-unable-to-service-your-request/21227 "2025-02-27T07:04:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noriaki](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@Noriaki](https://developer.squareup.com/forums/u/Noriaki)\
**Post date:** [February 27, 2025, 7:04am UTC](https://developer.squareup.com/forums/t/an-internal-error-has-occurred-and-the-api-was-unable-to-service-your-request/21227/1 "2025-02-27T07:04:42Z")

</div>

Hello, this is Noriaki.

When I create a subscription, I was using the

- customer\_id
- card\_id
- order\_id

without any problems, but suddenly I was unable to register a subscription.

When I checked the error message, I got the following:

```auto
{
"errors": [
{
"code": "INTERNAL_SERVER_ERROR",
"detail": "An internal error has occurred, and the API was unable to service your request.",
"category": "API_ERROR"
}
]
}

```

Is this a problem with the Square server?

Please check this as soon as possible.

⚫︎Sandbox Application ID  
sandbox-sq0idb-BlXwMTyiLXbQLywJXKmNlA

---

<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:** [February 27, 2025, 7:04am UTC](https://developer.squareup.com/forums/t/an-internal-error-has-occurred-and-the-api-was-unable-to-service-your-request/21227/2 "2025-02-27T07:04:57Z")

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

> **[Handling Errors](https://developer.squareup.com/docs/build-basics/handling-errors)**
>
> Improve your user experience by handling error information from Square APIs and SDKs.

> **[Handling Errors](https://developer.squareup.com/docs/build-basics/general-considerations/handling-errors)**
>
> Improve your user experience by handling error information from Square APIs and SDKs.

> **Additional Documentation**
>
> [Square Developer](https://developer.squareup.com/docs/app-marketplace/requirements/subscriptions-api)  
> [Troubleshoot the Payments API](https://developer.squareup.com/docs/payments-api/error-codes)  
> [Guidelines and Limitations](https://developer.squareup.com/docs/checkout-api/guidelines-and-limitations)

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:** [February 27, 2025, 6:13pm UTC](https://developer.squareup.com/forums/t/an-internal-error-has-occurred-and-the-api-was-unable-to-service-your-request/21227/3 "2025-02-27T18:13:44Z")

</div>

If you try the subscription now does it work? 🙂

---

<div class="post-metadata">

**Author:** ![Noriaki](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@Noriaki](https://developer.squareup.com/forums/u/Noriaki)\
**Post date:** [February 27, 2025, 10:18pm UTC](https://developer.squareup.com/forums/t/an-internal-error-has-occurred-and-the-api-was-unable-to-service-your-request/21227/4 "2025-02-27T22:18:23Z")

</div>

I checked it and it worked without any problems! Thank you for your quick response!
