500 error on subscription create api

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

{
  "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:

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"
  }'

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

app id: sq0idp-ho5lEePZJ1IEn2gXwoHA-A

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.