I was in the process of changing the billing anchor date of a subscription. I have a subscription whose billing date is 23rd and the customer wanted to advance it to 15th. So when I set the billing anchor date as below:
curl https://connect.squareup.com/v2/subscriptions/XXXXX/billing-anchor \
-X POST \
-H 'Square-Version: 2024-02-22' \
-H 'Authorization: Bearer XXXX \
-H 'Content-Type: application/json' \
-d '{
"monthly_billing_anchor_date": 15
}'
I got the response as:
"actions": [{"id": "ZZZZZ","type": "CHANGE_BILLING_ANCHOR_DATE","effective_date": "2024-05-16","monthly_billing_anchor_date": 15}
So I decided to delete the action with
curl https://connect.squareup.com/v2/subscriptions/XXXXXX/actions/ZZZZZ\
-X DELETE \
-H 'Square-Version: 2024-03-20' \
-H 'Authorization: Bearer XXXX' \
-H 'Content-Type: application/json'
Now I got the response as:
{"errors": [{"code": "INTERNAL_SERVER_ERROR","detail": "Subscription ID `XXXXX` is locked and is not billable. Please retry or contact support.","category": "API_ERROR"}]}
Now I am not able to even retrieve the subscription. What should I do ?