ONE shopify:sync
← Receivers

shopify:sync

shopify family

Pull your group's Shopify store through its own Composio connection: customers (with their email and SMS consent), orders (paid ones, refunds and cancellations on orders already imported), the catalog (price drops and restocks) and open checkouts (an abandoned checkout with an email fires once). Bounded per run: capped/more say there is more to pull. auto:true opts the group into the hourly pull, auto:false takes it out; leaving auto out changes nothing. Refused by name: workspace_not_yours, bad_scope, bad_since, not_connected (with the connect link), unauthorized; a Composio failure is ok:false with its error, never a throw

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_integrations
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
no
This cannot be undone. Dry-run it first where the contract allows.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/shopify:sync \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "workspace": <string>, "scope": <string>, "since": <string>, "auto": <boolean> }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • workspace string optional Your group; naming one you do not control is refused workspace_not_yours
  • scope string optional customers · orders · catalog · checkouts · all (default all); anything else is refused bad_scope
  • since string optional ISO date or datetime floor; refused bad_since when it does not parse
  • auto boolean optional true: pull this group every hour; false: stop; absent: leave as it is

Response

What comes back from the call.

  • ok boolean
  • error string workspace_not_yours · bad_scope · bad_since · not_connected · unauthorized · no_db · composio_not_configured · a Composio error
  • workspace string
  • scope string
  • scopes string[] On bad_scope: the scopes there are
  • connect string On not_connected: where to connect Shopify
  • capped boolean The run stopped at its query budget
  • more boolean A pass is not finished; the next run carries on from its cursor
  • queries number
  • pages number
  • customers object
  • orders object
  • catalog object
  • checkouts object

Traffic

Every call to shopify:sync, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names shopify:sync, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 2
  • one.ie/web/src/lib/receiver-index.generated.ts:476
  • one.ie/web/src/lib/shopify/resolvers.ts:62
CLI 3
  • packages/cli/src/lib/receivers-index.generated.ts:497
  • packages/cli/src/lib/receivers.generated.ts:497
  • packages/cli/src/shopify.ts:31
→

Answered by

shopify:sync Resolved outside this repo — the pay, channels or api worker answers it. Dispatched through POST /api/ask/shopify:sync, after the envelope validates the payload.

shopify family · 1 more

JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Your group; naming one you do not control is refused workspace_not_yours",
      "type": "string"
    },
    "scope": {
      "description": "customers · orders · catalog · checkouts · all (default all); anything else is refused bad_scope",
      "type": "string"
    },
    "since": {
      "description": "ISO date or datetime floor; refused bad_since when it does not parse",
      "type": "string"
    },
    "auto": {
      "description": "true: pull this group every hour; false: stop; absent: leave as it is",
      "type": "boolean"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "error": {
      "description": "workspace_not_yours · bad_scope · bad_since · not_connected · unauthorized · no_db · composio_not_configured · a Composio error",
      "type": "string"
    },
    "workspace": {
      "type": "string"
    },
    "scope": {
      "type": "string"
    },
    "scopes": {
      "description": "On bad_scope: the scopes there are",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "connect": {
      "description": "On not_connected: where to connect Shopify",
      "type": "string"
    },
    "capped": {
      "description": "The run stopped at its query budget",
      "type": "boolean"
    },
    "more": {
      "description": "A pass is not finished; the next run carries on from its cursor",
      "type": "boolean"
    },
    "queries": {
      "type": "number"
    },
    "pages": {
      "type": "number"
    },
    "customers": {
      "type": "object",
      "properties": {
        "seen": {
          "type": "number"
        },
        "created": {
          "type": "number"
        },
        "updated": {
          "type": "number"
        },
        "skipped": {
          "type": "number"
        },
        "subscribed": {
          "type": "number"
        },
        "unsubscribed": {
          "type": "number"
        },
        "keptDeclined": {
          "type": "number"
        },
        "smsStops": {
          "type": "number"
        }
      },
      "required": [
        "seen",
        "created",
        "updated",
        "skipped",
        "subscribed",
        "unsubscribed",
        "keptDeclined",
        "smsStops"
      ]
    },
    "orders": {
      "type": "object",
      "properties": {
        "seen": {
          "type": "number"
        },
        "created": {
          "type": "number"
        },
        "updated": {
          "type": "number"
        },
        "unchanged": {
          "type": "number"
        },
        "refunds": {
          "type": "number"
        },
        "skippedNotPaid": {
          "type": "number"
        },
        "skippedOwn": {
          "type": "number"
        },
        "skipped": {
          "type": "number"
        }
      },
      "required": [
        "seen",
        "created",
        "updated",
        "unchanged",
        "refunds",
        "skippedNotPaid",
        "skippedOwn",
        "skipped"
      ]
    },
    "catalog": {
      "type": "object",
      "properties": {
        "seen": {
          "type": "number"
        },
        "created": {
          "type": "number"
        },
        "updated": {
          "type": "number"
        },
        "priceDrops": {
          "type": "number"
        },
        "restocks": {
          "type": "number"
        },
        "skipped": {
          "type": "number"
        }
      },
      "required": [
        "seen",
        "created",
        "updated",
        "priceDrops",
        "restocks",
        "skipped"
      ]
    },
    "checkouts": {
      "type": "object",
      "properties": {
        "seen": {
          "type": "number"
        },
        "emitted": {
          "type": "number"
        },
        "noEmail": {
          "type": "number"
        },
        "tooOld": {
          "type": "number"
        },
        "completed": {
          "type": "number"
        },
        "skipped": {
          "type": "number"
        }
      },
      "required": [
        "seen",
        "emitted",
        "noEmail",
        "tooOld",
        "completed",
        "skipped"
      ]
    }
  },
  "required": [
    "ok"
  ]
}