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