Unable to create a subscription

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

:wave: I see that the account you’re using is registered in Spain. Currently the Subscriptions API isn’t available in Spain. This is a very popular feature request and we hope to have more options for you soon, so thanks for your continued patience. :slightly_smiling_face:

Hello Bryan! Thank you for your fast reply. I will be attentive to see if this feature comes out :slight_smile:

Hi @DebisU ,

This feature has been launched in Spain.

Cheers,
Felipe

Hello @Bryan-Square & @feliper,

I’m testing Square Api and i’m facing the same probleme when i try to create a new subscription:

curl https://connect.squareupsandbox.com/v2/subscriptions \
  -X POST \
  -H 'Square-Version: 2022-03-16' \
  -H 'Authorization: Bearer {{access_token}}' \
  -H 'Content-Type: application/json' \
  -d '{
    "idempotency_key": "0489acb3-97ea-4723-8cff-3636382d68e0",
    "location_id": "LA6VF5WKRKKTA",
    "customer_id": "A6A96G42Q0SWHBKKN81QZ93WQ0",
    "plan_id": "A646QN2MZBZP6GRO4UGT3S7R",
    "card_id": "ccof:kmSc12jSlM9ZfzKz3GB"
  }'

The subscriptions API is it available in France ? Can you help me please ?

Hey, it seems like we had forgotten to enable it in sandbox.
It should be enabled now, let us know if you encounter any other issues.

Hi @feliper,

It’s working, thank you :pray:

Cheers,
Nidhal