I’m pushing this to production but found this odd error.
Context: Our app has approval from Shopify to read all orders.
Version couldn’t be created. │
│ │
│ app-access │
│ │
│ Validation errors │
│ • optional_scopes: ‘read_all_orders’ requires ‘read/write_orders’ scope
[access_scopes]
scopes = “read_assigned_fulfillment_orders,read_checkout_branding_settings,read_customer_events,read_customers,read_discounts,read_fulfillments,read_inventory,read_locations,read_markets,read_merchant_managed_fulfillment_orders,read_order_edits,read_orders,read_payment_customizations,read_products,read_store_credit_accounts,read_themes,unauthenticated_read_checkouts,unauthenticated_read_content,unauthenticated_read_customer_tags,unauthenticated_read_customers,unauthenticated_read_metaobjects,unauthenticated_read_product_inventory,unauthenticated_read_product_listings,unauthenticated_read_product_pickup_locations,unauthenticated_read_product_tags,unauthenticated_read_selling_plans,unauthenticated_write_checkouts,unauthenticated_write_customers,write_assigned_fulfillment_orders,write_cart_transforms,write_checkout_branding_settings,write_customers,write_draft_orders,write_markets,write_merchant_managed_fulfillment_orders,write_online_store_navigation,write_order_edits,write_orders,write_payment_customizations,write_pixels,write_products,write_shipping,write_store_credit_account_transactions,write_third_party_fulfillment_orders,customer_read_customers,customer_write_customers,customer_read_orders,customer_read_markets,unauthenticated_read_product_pickup_locations,read_translations,read_locales,write_locales,read_metaobject_definitions,write_metaobject_definitions,unauthenticated_read_selling_plans,write_metaobjects,read_metaobjects”
optional_scopes = [
“read_all_orders”,
“read_purchase_options”,
“write_purchase_options”,
“write_discounts”,
“write_files”
]
Putting read_all_orders as an optional scope seems to cause an error, so I’d put read_orders in the optional scopes too but it throws a separate error about not duplicating my scopes.
Would optional scopes work with read_all_orders?