Nav
Nav

Reputation: 1185

Shopify api - uninstall app programmatically

I want to give the merchant the option to unlink their account from my app. Is there a way to issue a remove/ unlink request via shopify api?

Upvotes: 3

Views: 3110

Answers (2)

Kevin
Kevin

Reputation: 771

This feature has just been added: http://docs.shopify.com/api/authentication/uninstalling-applications

Upvotes: 4

Dylan Smith
Dylan Smith

Reputation: 1522

To my knowledge, the Shopify API doesn't provide a way for applications to uninstall themselves.

The Shopify admin interface already provides a way merchants to uninstall applications in a uniform manner. You could link to this url where the merchant can remove the application.

https://#{shop_name}.myshopify.com/admin/applications

Or to link directly to your application, get your application's id by visiting your application in the partners interface, which has the format https://app.shopify.com/services/partners/api_clients/#{application_id}. Then you can use a fragment to autoscroll the merchant to your application on the application's page:

https://#{shop_name}.myshopify.com/admin/applications#application-#{application_id}

Upvotes: 4

Related Questions