How do I test Shoify Plus features in app development?

I’m working with a motivated Shopify Plus store to get an integration completed. They asked if the app was able to support Company/Contact structure that their Shopify Plus store uses, and I have not been able to test this feature in a development store before going into production in their environment.

E.g. I’ve used the GraphQL API and added in the scopes for reading companies.

I believe my problem is that I don’t have a development Shopify Plus store for testing.

Am I able to create this? Or am I getting scopes wrong?

I’ve added in the following scopes for Company to my test app on my test store:

customer_read_companies,

customer_write_companies,

customer_read_locations,

customer_write_locations

Further, my GQL query has been:

companies(first: 10) {
edges {
node {
id
name
}
}
}

To just try to get a list of companies working before I go further.

Thanks for any help or advice on this!

For anyone having this issue, I think I have worked it out for the time being!

I created a Company in the dashboard, then queried it’s ID. This gave me a much better error message, which listed a read_companies and write_companies scope which is not in the public documentation.

I added this to my app and auth process. Then, I noticed my returned scopes were missing the new companies scopes. This was discouraging, though I ran the query anyway and voila it worked! So, it seems there are some “invisible” scopes which need to be added to make these work.

Further, I got an error before which said:

“Access denied for company field. Required access: read_customers access scope or read_companies access scope. Also: The API client must be installed on a Shopify Plus store.”

This was also discouraging, but it ended up not being the case. Setup a development store, add in the above scopes, and you should be on your way. There are probably a lot more other invisible scopes, or there may be a page I am missing.

Have fun!

Reach out via me@jackhales.com if found this helpful and would like to deploy it or have any questions!