# 500 error on subscription create api

**URL:** <https://developer.squareup.com/forums/t/500-error-on-subscription-create-api/10081>\
**Category:** Questions\
**Tags:** payments-api, subscriptions-api\
**Created:** [July 25, 2023, 11:25pm UTC](https://developer.squareup.com/forums/t/500-error-on-subscription-create-api/10081 "2023-07-25T23:25:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nman0171](https://avatars.discourse-cdn.com/v4/letter/n/a698b9/32.png) [@nman0171](https://developer.squareup.com/forums/u/nman0171)\
**Post date:** [July 25, 2023, 11:25pm UTC](https://developer.squareup.com/forums/t/500-error-on-subscription-create-api/10081/1 "2023-07-25T23:25:38Z")

</div>

I am getting 500 response on subscription create api .

i have successfully created customer and subscription plan using create customer api and catalog api .

but when i am using the subscription api its responding

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

```

this is the request i am providing:

```auto
curl https://connect.squareup.com/v2/subscriptions \
  -X POST \
  -H 'Square-Version: 2023-07-20' \
  -H 'Authorization: Bearer EAAAFGe7xVttDJywmY-##########' \
  -H 'Content-Type: application/json' \
  -d '{
    "location_id": "LQSJF2P####",
    "plan_variation_id": "SK2DGD7RFKGHHSLH43J5GN4M",
    "plan_id": "WPYYHDEJAZHYC6HHKUVPEZA2",
    "customer_id": "CW466A8NP2W42M70MEJ5HS7E0R"
  }'

```

---

<div class="post-metadata">

**Author:** ![josh-square](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@josh-square](https://developer.squareup.com/forums/u/josh-square)\
**Post date:** [July 26, 2023, 8:53pm UTC](https://developer.squareup.com/forums/t/500-error-on-subscription-create-api/10081/2 "2023-07-26T20:53:42Z")

</div>

Hey @nman0171, can you let me know what your application ID is?

---

<div class="post-metadata">

**Author:** ![nman0171](https://avatars.discourse-cdn.com/v4/letter/n/a698b9/32.png) [@nman0171](https://developer.squareup.com/forums/u/nman0171)\
**Post date:** [July 26, 2023, 8:55pm UTC](https://developer.squareup.com/forums/t/500-error-on-subscription-create-api/10081/3 "2023-07-26T20:55:58Z")

</div>

app id: sq0idp-ho5lEePZJ1IEn2gXwoHA-A

---

<div class="post-metadata">

**Author:** ![josh-square](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@josh-square](https://developer.squareup.com/forums/u/josh-square)\
**Post date:** [July 28, 2023, 1:27am UTC](https://developer.squareup.com/forums/t/500-error-on-subscription-create-api/10081/4 "2023-07-28T01:27:36Z")

</div>

Are the `order_template_ids` being used in your CreateSubscription request from the same merchant account? It looks like they may be coming from different accounts, which is causing an error.
