Store plugins

### Shopify

Add the Filecheck Element to a Shopify product page with a theme app extension, line item properties and cart attributes.

### Navigate to header: Overview Overview

1

Theme app extension block

Drop

&lt;div id="fc-slot"&gt;

and the script tag onto the product page. Block settings:

workflowId

,

presentation

. Per-product via the metafield

filecheck.workflowId

.

2

Line item properties (per item — the source of truth)

Once

canProceed === true

, the extension fills two hidden inputs inside the product form so they ride along on add to cart as

line item properties

:

\_filecheck\_job\_id

(the job id) and

\_filecheck\_job\_url

(a link to the job in your Filecheck dashboard). The leading underscore hides them from customer-facing pages; the Admin API sees them on each line item’s

customAttributes

. Every upload item in the cart carries its own pair, so multi-item orders stay fully mapped.

Add to cart

stays disabled client-side until then.

3

Cart attribute (order-level convenience)

The extension also writes

cart.attributes\['Filecheck Job'\]

via the AJAX Cart API. This is a single order-level key holding the

most recently completed

job only — with two or more upload items in one cart, earlier values are overwritten. Use it for single-item flows and quick lookups; use the line item properties (or

GET /jobs?orderId=

) whenever an order can contain more than one upload item.

4

Order webhooks

On

orders/paid

, read

\_filecheck\_job\_id

from each line item’s properties (or

note\_attributes\['Filecheck Job'\]

for single-item carts), call

GET /jobs/\{id\}

with your secret key, and attach the output file via the Files API.

5

Embedded admin

Build a Polaris \+ App Bridge admin for key entry, the workflow picker, default presentation, and the metafield writer.

### Navigate to header: Multiple upload items in one order Multiple upload items in one order

An order can contain several upload products, each with its own Filecheck job. Two server-side ways to enumerate them all.

The line item property is the contract

: it is on the order the moment Shopify creates it, with no dependency on timing. The order lookup below is a convenience for reconciling from the Filecheck side.

Per line item

— each line item carries its job reference as a property:

\{

order

(

id

:

"gid://shopify/Order/12984500650332"

) \{

lineItems

(

first

:

20

) \{

nodes

\{

id

customAttributes

\{

key

value

\} \}

\}

\}

\}

Look for

\_filecheck\_job\_id

on each node, then verify each job via

GET /jobs/\{id\}

.

Per order

— reconcile from the Filecheck side with your secret key:

GET /jobs?orderId=\{numericShopifyOrderId\}

Returns every job linked to that order, plus a

linked

flag. Jobs acquire their order linkage when Shopify’s

orders/create

webhook reaches Filecheck, moments after checkout, and your own

orders/create

subscriber may run before ours does.

linked

tells the two cases apart:

| Response | Meaning | What to do |
| --- | --- | --- |
| linked: false | Filecheck has not processed this order yet. | Retry shortly (e.g. back off from 2s). |
| linked: true , jobs present | The order is linked; the list is complete. | Use it. |
| linked: true , jobs: \[\] | The order was received and has no Filecheck uploads. | Stop; nothing to fetch. |

linked

is only set to

true

after every job in the order has been linked, so a

true

response never carries a partial list. Order links are retained for 180 days.

### Navigate to header: Lines bought without a file Lines bought without a file

With

artwork after checkout

, a product can be bought before its artwork exists. Its line item has no

\_filecheck\_job\_id

at checkout. Filecheck records the line from

orders/create

, and the job created when the customer uploads on your upload page is linked to the order straight away, so

GET /jobs?orderId=

lists it once it exists. Until then, check for the line on

GET /orders/\{id\}/upload-link

, which also returns the signed link to send the customer.

### Navigate to header: Connector (optional) Connector (optional)

Store the connector JSON in a metafield (

filecheck.connector

) and pass it as the

connector

option to drive quantity and size inputs from

file facts

.

### Navigate to header: Billing Billing

Use usage-based billing via the Shopify Billing API (per check).

Suggest edits

Raise issue

[GET /jobs/\{id\}](https://filecheck.io/docs/server/verify-jobs)

[artwork after checkout](https://filecheck.io/docs/configuration/artwork-after-checkout)

[GET /orders/\{id\}/upload-link](https://filecheck.io/docs/api-reference/orders/get-an-order-upload-link)

[file facts](https://filecheck.io/docs/element/connectors)

[Suggest edits](https://github.com/sterlyai/mintlify-docs/edit/main/integrations/shopify.mdx)

[Raise issue](https://github.com/sterlyai/mintlify-docs/issues/new?title=Issue%20on%20docs&body=Path:%20/integrations/shopify)

[Navigate to header: Overview](https://filecheck.io/docs/integrations/shopify#overview)

[Navigate to header: Multiple upload items in one order](https://filecheck.io/docs/integrations/shopify#multiple-upload-items-in-one-order)

[Navigate to header: Lines bought without a file](https://filecheck.io/docs/integrations/shopify#lines-bought-without-a-file)

[Navigate to header: Connector (optional)](https://filecheck.io/docs/integrations/shopify#connector-optional)

[Navigate to header: Billing](https://filecheck.io/docs/integrations/shopify#billing)