Issue: The category field is unavailable when using Shopify’s Python REST API library, throwing an AttributeError when attempting to access product[0].category.
Root Cause: The REST API does not support the category field. The Products REST API has been deprecated and will be discontinued next year.
Recommended Solution: Migrate to GraphQL API, which supports product categories.
Follow-up Problems: After switching to GraphQL:
First attempt using productCreate mutation with linked metafields returns error: “At least one value for the option linked to the ‘shopify.size’ metafield is invalid”
Second attempt following official documentation produces schema errors: fields productCategory, productTaxonomyNodeId, and options don’t exist on types UserError and ProductCreatePayload
Status: Unresolved. The user successfully identified the REST API limitation but encountered multiple GraphQL implementation errors, suggesting either API version mismatches or outdated documentation examples.
Summarized with AI on November 5.
AI used: claude-sonnet-4-5-20250929.