Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Make new subscribers via new subscription API accounts mandatory at checkout

Make new subscribers via new subscription API accounts mandatory at checkout

Sal_francis
Shopify Partner
12 0 5

We are using the new subscriptions API via our customised app. Does anyone know how we can make customer account creation mandatory for subscription checkout? We want it optional for once-off orders but for subscriptions they must create an account to check out. If we cant make it mandatory for just subscriptions what is a way via subscriptions app we can send customer account activation URL to the subscribe customers?

Reply 1 (1)

J-ROM
Shopify Staff (Retired)
66 6 8

Hey Sal_francis,

The Shop.customerAccounts field can only be read via API. It cannot be set to change whether Customer Accounts are disabled, optional or mandatory on the whole store.

The best I can suggest as an alternative would be to look if you can leverage the Storefront API to send your prospective subscription customers through a custom flow where they would provide their email  and password for you to create their customer accounts programmatically.

Hope this helps.
J-ROM

To learn more visit the Shopify Help Center or the Community Blog.