Hello! I’m new to squareup and I’m developing an android application. Basically my app will have a subscription plan and I followed different tutorials like Sandbox 101: Subscriptions API - YouTube
So basically the steps I followed are:
Catalog → Upsert Catalog Object
Catalog → Retrieve catalog object (id EXGWF2KIAGNXUTJRXOPP2GKC)
customers → Create customer
customers → list customers (id X7BYCHKS68R55537DYVH4EBHHR)
Subscriptions → Create Subscription
Request:
curl https://connect.squareupsandbox.com/v2/subscriptions \
-X POST \
-H 'Square-Version: 2022-02-16' \
-H 'Authorization: Bearer {{ACCESS_TOKEN}}' \
-H 'Content-Type: application/json' \
-d '{
"customer_id": "X7BYCHKS68R55537DYVH4EBHHR",
"location_id": "LZ0SSWT4574WT",
"plan_id": "EXGWF2KIAGNXUTJRXOPP2GKC",
"idempotency_key": "6350ee34-7114-4848-9000-367bc5a7e773",
"card_id": "ccof:WzC3fxYbAdl3QlKx4GB"
}'
Response:
{
"errors": [
{
"code": "NOT_IMPLEMENTED",
"detail": "Creating subscriptions is not allowed for merchant with token `MLXD4TCP1SXCT`",
"category": "API_ERROR"
}
]
}
I tried to research for the specific detail of the error but i’m no able to find anything.
Any help would be appreciated, Thanks in advance