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.

Distribute custom app via GraphQL

Distribute custom app via GraphQL

Ollie_B
Visitor
1 0 0

Hi,

 

I am working to automate some of the process of setting up custom apps for merchants that I work with. I have succeeded in reverse-engineering the Shopify CLI source code as others have suggested, and can now programmatically create custom apps. However I am now trying to distribute the app (assign it to the .myshopify.com store URL and get an install URL back), and am coming up against issues related to authentication/access.

 

The web UI uses the mutation "customAppAgreementCreate" to distribute the app on the GraphQL endpoint: https://partners.shopify.com/[ORG_ID]/api/graphql

This mutation is not available on the CLI GraphQL endpoint: https://partners.shopify.com/api/cli/graphql.

 

Is it possible to use this mutation (or something that achieves the same outcome) from a CLI/program?

Replies 0 (0)