providerEndpoint with your shop’s https://SHOP.myshopify.com origin and /admin/api/2026-10/graphql.json. Seal the installed app’s Admin API token as the X-Shopify-Access-Token header. Give the app read_products for the product feed. Bind the receiver and the mount under the same restricted data label.
- For product metadata, initialize with
{ profile: { mode: "provider", provider: "shopify.products.observations", limit: 25 } }. The source records product GID, title, handle, status and update time. It walks by ID using GraphQL’s opaque connection cursor and starts again after the last page. This is a live sweep. Missing products stay landed. The bounds are 100 records and 36 KiB per response. - For a bulk operation already submitted by the same installed Shopify app, initialize a separate mount with
{ profile: { mode: "provider", provider: "shopify.bulk-operation.status", limit: 1, selection: "gid://shopify/BulkOperation/123" } }. The source records status, counts, timestamps and error code by operation GID. It completes on a terminal status. Each poll has one response record and a 36 KiB limit.
Bulk product export
- Use
providerWriterwithshopify.bulk-products.submit, your shop origin and the sealed Admin API header. Pass it inreceivers.writersunder its mode. As the mount’s operator, callwrites.submitwith the mode and{ action: "create", payload: "{}" }under a caller-assigned key. The command launches the fixed product query with ID, title, handle, status and update time. It records the operation GID inwrites.get({ key }).recordwhen Shopify acknowledges launch. Use the same key to recover the decision after a lost response. A launch that settledUnknowncan still have started a job. - Pass as
receivers.providera receiver bound withproviderEndpointinshopify.bulk-operation.statusmode. Bindshopify_bulk_resultwithshopifyBulkDownload(data). Use the same restricted label on the mount and all three receivers. The download receiver uses the signed result URL on Shopify’s reviewed Google Cloud Storage path. It sends no Admin API token. - Call
reports.request({ key, profile: { kind: "shopify", id: "gid://shopify/BulkOperation/123" } })as the mount’s operator. It polls that operation only. When it succeeds, the source stages the result in sealed File parts. It matches the provider’s byte count and checks the final row count against Shopify’s completion evidence. An empty export completes with no rows. Callreports.get({ key })for the result andreports.records({ run, from: null })to page the rows.
reports.get({ key }) returns a workflow reason and a refusal with
code and message if a task refused. Format the refusal for display
with refusalText from @bijectionhq/bijection/client.
The staged JSONL result can hold up to 8 MiB and 100,000 flat products. On a range response the receiver binds later ranges to the first strong validator. Each page commits its rows and exact position together, up to 32 rows and 24 KiB per page. Earlier pages remain if a later page fails. Product IDs identify rows within the run. Missing products never delete existing rows. Read modes require the bundled parser artifact.
Shopify bulk operations
Orders, customers, inventory and fulfillments
Bind a separate protected mount andproviderEndpoint for each mode. Use the same Admin GraphQL origin, version and sealed header as the product source. Initialize each with { profile: { mode: "provider", provider, limit, selection } }, omitting selection for store-wide collections.
Each answer is bounded to 1–100 records and 36 KiB. Paginated modes resume the opaque cursor within the sweep and return to the head on completion. Fulfillments are reread each poll without a cursor. Absent rows remain landed.
Write orders, customers and fulfillments
UseproviderWriter and the write mount guide. Supply the named GraphQL input object as the JSON payload. For updates, supply the GID as the command’s id and omit it from the payload.
Use the same restricted label on the writer and mount. Each caller key fixes one command with up to 24 KiB of input. Acknowledgment requires the resource GID and a reply free of GraphQL and mutation errors. Under the
unkeyed contract a lost reply settles the task Unknown. These modes carry no read cursor or deletes.
Shopify Admin GraphQL reference
Submit mode shopify.fulfillments.cancel through the existing fulfillment writer with { action: "cancelFulfillment", id }. The ID is a Fulfillment GID. The writer binds the exact caller key and acknowledges only a matching CANCELLED fulfillment without GraphQL or mutation errors. This workflow changes status and carries no read cursor.
Shopify fulfillment cancellation
Upsert products by external ID
Pass theshopify.bulk-products.submit writer in receivers.writers under its mode, at
the protected data label with the same Admin API header and write_products.
Define a unique product ID metafield. Use mode shopify.products.upsert with
{ action: "upsert", field: "custom.id", externalId: "12345", payload } and
an exact command key. Set field to the metafield namespace and key.
The JSON object may set title, descriptionHtml, handle, vendor,
productType, and status. The receiver uses once. A successful
synchronous productSet response gives the product GID in record.
A structured mutation error gives its code in detail when available.
Shopify product upsert
Webhook-assisted polling
Shopify HMAC notifications wake the installed Shopify feed. Bind the REST mount to a protecteddata label and follow the
verified wake route setup
to seal the signing secret and register the subscription for this source.
Bulk-create products
Use the same Admin API writer withwrite_products.
Bind shopifyBulkUpload(data) as receivers.shopifyUpload and
shopifyBulkDownload(data) as shopify_bulk_result. Bind all three
receivers and the mount to the same protected data label. The storage
receivers use Shopify’s private staged form and signed result URL.
They use no Admin API credential.
Submit mode shopify.products.bulk-create with
{ action: "bulkProducts", records: [{ key, title }] } under an exact
command key. Supply up to 25 distinct caller row keys and product titles.
Titles are limited to 500 UTF-8 bytes, JSONL input to 15 KiB, the signed
multipart upload to 24 KiB, and result downloads to 36 KiB. The writer
stages one private JSONL upload and runs the fixed productCreate mutation
once per line. Each receiver call uses once.
The app retains the launched mutation’s GID in job and polls it for up
to the follow-up deadline. The download stages version-checked File bytes at
data and retires them after decoding. A result line must identify an input line with
Shopify’s __lineNumber. The row’s evidence retains the caller key and, on
success, the product GID. A matched structured mutation refusal marks its
row failed. An available partial result file can prove individual rows.
Missing or conflicting rows stay unknown. partial is reserved for a
mixed batch whose individual results are all known.
Shopify bulk mutation imports