# Send Shopify Admin to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "shopify-admin",
    "name": "Shopify Admin",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/robsannaa/shopify-admin",
    "canonicalUrl": "https://clawhub.ai/robsannaa/shopify-admin",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/shopify-admin",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=shopify-admin",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "shopify-admin.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "shopify-admin",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-08T19:13:39.606Z",
      "expiresAt": "2026-05-15T19:13:39.606Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=shopify-admin",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=shopify-admin",
        "contentDisposition": "attachment; filename=\"shopify-admin-1.1.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "shopify-admin"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/shopify-admin"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/shopify-admin",
    "downloadUrl": "https://openagent3.xyz/downloads/shopify-admin",
    "agentUrl": "https://openagent3.xyz/skills/shopify-admin/agent",
    "manifestUrl": "https://openagent3.xyz/skills/shopify-admin/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/shopify-admin/agent.md"
  }
}
```
## Documentation

### shopify-admin - Shopify Admin API

Interact with Shopify Admin API for order management, product operations, customer data, and store analytics.

### Prerequisites

Required binaries: curl, jq (must be installed and on PATH).

Environment: The script uses only the process environment. It does not source any file (no ~/.openclaw/.env or other dotenv). Set these variables where the OpenClaw agent/gateway runs (e.g. export in shell, or in a file that your gateway loads at startup):

SHOPIFY_STORE_DOMAIN=your-store.myshopify.com
SHOPIFY_ACCESS_TOKEN=shpat_xxx

If the script is run by the agent, ensure the gateway process has these vars (many setups load ~/.openclaw/.env when starting the gateway — then the agent inherits them; the script itself does not read that file).

### REST API

Base URL: https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/

### GraphQL API

Endpoint: https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/graphql.json

### Orders

List orders:

curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/orders.json?status=any&limit=10" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN" \\
  -H "Content-Type: application/json"

Get specific order:

curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/orders/{order_id}.json" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"

### Products

List products:

curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/products.json?limit=50" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"

Search products:

curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/products.json?title={title}" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"

Delete product:

curl -s -X DELETE "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/products/{product_id}.json" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"

### Customers

List customers:

curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/customers.json?limit=50" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"

Get customer:

curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/customers/{customer_id}.json" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"

### GraphQL Queries

Get order with customer details:

curl -s -X POST "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/graphql.json" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{
    "query": "query { order(id: \\"gid://shopify/Order/{order_id}\\") { id name customer { firstName lastName email } } }"
  }'

### Marketing Events

List marketing events (campaigns, UTMs):

curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/marketing_events.json?limit=50" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"

Get specific marketing event:

curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/marketing_events/{event_id}.json" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"

Create marketing event (track campaign):

curl -s -X POST "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/marketing_events.json" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{
    "marketing_event": {
      "event_type": "ad",
      "utm_campaign": "spring_sale",
      "utm_source": "facebook",
      "utm_medium": "cpc",
      "started_at": "2026-01-15T00:00:00Z"
    }
  }'

### Reports & Analytics

List available reports:

curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/reports.json" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"

Get report (sales, traffic, etc.):

curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/reports/{report_id}.json" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"

### Shop Analytics (Sessions, Traffic)

Get shop analytics/sessions data via GraphQL:

curl -s -X POST "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/graphql.json" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{
    "query": "query { shop { name analytics { onlineStoreSessions { count } } } }"
  }'

Get online store sessions (REST):

# Note: Sessions data is typically available via Shopify Analytics API or Reports
curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/shop.json" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN" | jq '.shop'

### Order Attribution (UTM tracking)

Get order with attribution data:

curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/orders/{order_id}.json" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN" | jq '.order | {id, name, referring_site, landing_site, source_name}'

List orders with UTM parameters:

curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/orders.json?fields=id,name,referring_site,landing_site,source_name,created_at&limit=50" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"

### Customer Events (Behavior tracking)

List customer events (visits, actions):

curl -s "https://$SHOPIFY_STORE_DOMAIN/admin/api/2026-01/customers/{customer_id}/events.json" \\
  -H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"

### PII Access Limitations

Customer names, emails, addresses require Shopify plan or higher
Basic plan: PII fields return null via API
Web UI always shows full customer data
Workaround: Use webhooks to capture PII before masking

### API Versions

Current: 2026-01
Update version in URL for newer features

### Rate Limits

REST: 2 calls/second (Shopify plan)
GraphQL: Same bucket as REST
Check X-Shopify-Shop-Api-Call-Limit header

### Response Codes

200: Success
201: Created
204: Deleted (no body)
429: Rate limited
403: Permission denied (check scopes)

### Scopes Required

read_orders, write_orders
read_products, write_products
read_customers, write_customers
read_analytics
read_marketing_events, write_marketing_events
read_customer_events
read_reports

### Tips

Use jq for JSON parsing: | jq '.orders[0]'
Add -w "\\nHTTP: %{http_code}" to curl for status codes
Use GraphQL for complex nested queries
REST is simpler for basic CRUD operations
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: robsannaa
- Version: 1.1.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-08T19:13:39.606Z
- Expires at: 2026-05-15T19:13:39.606Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/shopify-admin)
- [Send to Agent page](https://openagent3.xyz/skills/shopify-admin/agent)
- [JSON manifest](https://openagent3.xyz/skills/shopify-admin/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/shopify-admin/agent.md)
- [Download page](https://openagent3.xyz/downloads/shopify-admin)