Creation of subscription

I encountered a problem when creating a subscription.

I received the following error message:

{
“errors”: [
{
“code”: “BAD_REQUEST”,
“detail”: “Plan ‘2SSJLBHHIKY3RVEGFQN4CWSQ’ is not enabled”,
“category”: “INVALID_REQUEST_ERROR”
}
]
}
However, when I created a subscription plan variation, this ID was returned in the response. What could be the issue here?

{
“catalog_object”: {
“type”: “SUBSCRIPTION_PLAN_VARIATION”,
“id”: “2SSJLBHHIKY3RVEGFQN4CWSQ”,
“updated_at”: “2024-10-21T03:07:11.83Z”,
“created_at”: “2024-10-21T03:07:11.83Z”,
“version”: 1729480031830,
“is_deleted”: false,
“present_at_all_locations”: false,
“subscription_plan_variation_data”: {
“name”: “User Essential”,
“phases”: [
{
“uid”: “37BB7KIBUVAHER5YLFFPFWCZ”,
“cadence”: “MONTHLY”,
“ordinal”: 0,
“pricing”: {
“type”: “RELATIVE”
}
}
],
“subscription_plan_id”: “2W7NHBHV5NREKNXZCEINTVOD”
}
},
“id_mappings”: [
{
“client_object_id”: “#6458443”,
“object_id”: “2SSJLBHHIKY3RVEGFQN4CWSQ”
}
]
}

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

https://developer.squareup.com/docs/app-marketplace/requirements/subscriptions-api

Additional Documentation

Define Item Variations Using Options
Troubleshoot the Payments API
Retrieve Catalog Objects

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.

What’s your application ID? :slightly_smiling_face: