Shopify - Filecheck
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
<div id="fc-slot">
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
Navigate to header: Multiple upload items in one order
Navigate to header: Lines bought without a file