Swap variations multiple customer API Trigger show this error

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

curl https://connect.squareupsandbox.com/v2/subscriptions/bulk-swap-plan
-X POST
-H ‘Square-Version: 2024-01-18’
-H ‘Authorization: Bearer ACCESS_TOKEN’
-H ‘Content-Type: application/json’
-d ‘{
“new_plan_variation_id”: “QUCRBX3I4MPG6STADV3PDQBV”,
“old_plan_variation_id”: “LF6JG97GWPW36”,
“location_id”: “C6KDSUQWYX4YL2C22USU3SNG”
}’

In the future please don’t share any access tokens they are secrete and we recommend that you recycle the one you just shared.

As for the error the error message can improve but the location_id your passing in C6KDSUQWYX4YL2C22USU3SNG isn’t a valid location_id. :slightly_smiling_face:

Hello team,

I am Naveen Kumar. We are implementing a bulk swap plan API, and we are facing the following error. How can we fix this issue?

curl https://connect.squareupsandbox.com/v2/subscriptions/bulk-swap-plan
-X POST
-H ‘Square-Version: 2023-10-18’
-H ‘Authorization: ACCESS_TOKEN’
-H ‘Content-Type: application/json’
-d ‘{
“location_id”: “LF6JG97GWPW36”,
“new_plan_variation_id”: “S4Y3RLRRFXUS6N7TLOOZ54RC”,
“old_plan_variation_id”: “YW2CGYI6BE3XCDIWLAXLBIIJ”
}’

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

The team is looking into this. :slightly_smiling_face:

Okay sir,
The client’s plan amount needs to be change. Could you please check and update it quickly?

Our project has been moved to production. Please check and update, sir.

Are you still getting this error in production? :slightly_smiling_face:

“Sir, our project has now been moved into production, and we need to change the plan amount. We have implemented this change in the sandbox environment (https://connect.squareupsandbox.com/v2/subscriptions/bulk-swap-plan), but it is showing an error. How can we move this API to production? We first tested the bulk-swap-plan API in the sandbox, and now we want to move it to production. Please check the previous post for details on the issue.”

Hello sir any update?

sir i need to implement an swap variations multiple customer API.Could you please check the issue above and update it quickly, sir