first version
This commit is contained in:
+13
-26
@@ -6,32 +6,11 @@ embedded = true
|
||||
name = "linumiq-invoice"
|
||||
|
||||
[access_scopes]
|
||||
# Learn more at https://shopify.dev/docs/apps/tools/cli/configuration#access_scopes
|
||||
scopes = "write_products,write_metaobjects,write_metaobject_definitions"
|
||||
|
||||
[product.metafields.app.demo_info]
|
||||
type = "single_line_text_field"
|
||||
name = "Demo Source Info"
|
||||
description = "Tracks products created by the Shopify app template for development"
|
||||
|
||||
[product.metafields.app.demo_info.access]
|
||||
admin = "merchant_read_write"
|
||||
|
||||
[metaobjects.app.example]
|
||||
name = "Example"
|
||||
description = "An example metaobject definition created by this template"
|
||||
|
||||
[metaobjects.app.example.access]
|
||||
admin = "merchant_read_write"
|
||||
|
||||
[metaobjects.app.example.fields.title]
|
||||
name = "Title"
|
||||
type = "single_line_text_field"
|
||||
required = true
|
||||
|
||||
[metaobjects.app.example.fields.description]
|
||||
name = "Description"
|
||||
type = "multi_line_text_field"
|
||||
# Read orders + customers + companies (B2B) for invoice data.
|
||||
# read_files / write_files for the generated PDFs uploaded to Shopify Files.
|
||||
# write_orders required to write the order metafield linking the latest PDF.
|
||||
# read_all_orders allows access to orders older than 60 days for backfill.
|
||||
scopes = "read_orders,write_orders,read_all_orders,read_customers,read_companies,read_files,write_files"
|
||||
|
||||
[webhooks]
|
||||
api_version = "2026-07"
|
||||
@@ -44,6 +23,14 @@ api_version = "2026-07"
|
||||
uri = "/webhooks/app/scopes_update"
|
||||
topics = [ "app/scopes_update" ]
|
||||
|
||||
[[webhooks.subscriptions]]
|
||||
uri = "/webhooks/orders/create"
|
||||
topics = [ "orders/create" ]
|
||||
|
||||
[[webhooks.subscriptions]]
|
||||
uri = "/webhooks/orders/updated"
|
||||
topics = [ "orders/updated" ]
|
||||
|
||||
[auth]
|
||||
redirect_urls = [ "https://example.com/api/auth" ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user