Skip to main content

How to Configure Invoice Metaobjects (Shopify Plus Exclusive)

Automatically save invoice data as Shopify metaobjects with Comply. Step-by-step setup for Shopify Plus stores.

Written by Support Comply

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 Invoices

  • Type: 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

Invoice number

Single-line text (one value)

Invoice number generated by Comply.

Data

JSON (</>)

Detailed invoice information in structured format: amount, date, products, taxes, document type, etc

Type

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: Invoices

  • Namespace and key: comply.invoices

  • Content type: Metaobject

  • Reference: select Comply Invoices (created in step 1)

  • Quantity: List of entries

  • Customer Account API access: Read

  • Storefront API access: off (optional, depending on your use case)

Save your changes. You can then enable the feature from Comply > Settings.

Did this answer your question?