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.

List all Shopify resource types

List all Shopify resource types

AlchemicRejuven
Visitor
1 0 0

The documentation for the Admin REST API states the following:

 

 

All Admin REST API endpoints follow this pattern:

https://{shop_id}.myshopify.com/admin/api/2022-01/{resource}.json

 

 

Is it possible to programmatically determine all valid values for Shopify resource types? For example, the documentation lists them here: https://shopify.dev/api/admin-rest#top, but I am trying to avoid having to manually specify those in code, as if a new resource type is added, the code wouldn't immediately be able to handle it.

 

Thank you

Replies 0 (0)