If your store is on the Shopify Plus plan, you can enable an advanced feature that automatically saves the data from each invoice generated by Comply as metaobjects inside Shopify. This enables integrations with automated workflows via the metaobjects/create webhook.
Step 1: Create the “Comply Invoices” Metaobject Type
In your Shopify admin, go to Settings > Custom data > Metaobject definitions and click Add definition.
Set up the definition with these values:
Name:
Comply InvoicesType:
comply_invoices(assigned automatically)
Then add the following fields. Field names must be entered exactly as shown, including capitalization and spacing
Fields to Add
The following fields must be defined in the Comply Invoices metaobject type:
Name | Data Type | Description |
| Single-line text (one value) | Invoice number generated by Comply. |
| JSON (</>) | Detailed invoice information in structured format: amount, date, products, taxes, document type, etc |
| Single-line text (one value) | Invoice type generated by Comply (FS, FC, RS, or RC). |
Step 2: Create the Order Metafield to Link Invoices
Once the Comply Invoices metaobject is defined, create a metafield definition for orders. This lets each order reference its invoices issued by Comply.
Go to Settings > Custom data > Orders and click Add definition. Configure the fields as follows:
Name:
InvoicesNamespace and key:
comply.invoicesContent type: Metaobject
Reference: select
Comply Invoices(created in step 1)Quantity: List of entries
Customer Account API access:
ReadStorefront API access: off (optional, depending on your use case)
Save your changes. You can then enable the feature from Comply > Settings.



