一键导入
shopify-admin-payout-reconciliation
Read-only: reconciles Shopify Payments payouts against the order transactions that funded them and flags amount discrepancies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Read-only: reconciles Shopify Payments payouts against the order transactions that funded them and flags amount discrepancies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Master skill collection for Shopify store operators. Provides access to all merchandising, marketing, support, and operations capabilities.
Edit the theme's robots.txt.liquid to explicitly allow AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Google-Extended, OAI-SearchBot, Amazonbot) so AI assistants are permitted to read the catalog.
Rewrite thin product descriptions into structured, fact-rich copy (materials, fit, use-cases, the words shoppers actually type) so AI agents have something concrete to quote and match.
Generate and set descriptive alt text on product images so AI agents (which can't 'see' pixels) can understand and recommend what each product looks like.
Generate and publish an /llms.txt guide (brand summary, flagship products, key policies, contact) via a theme template so AI assistants get a curated, machine-readable map of the store.
Define and populate agentic-commerce metafields (material, attributes, key features, specs, sizing) so AI agents can filter and match products to specific shopper requirements.
| name | shopify-admin-payout-reconciliation |
| role | finance |
| description | Read-only: reconciles Shopify Payments payouts against the order transactions that funded them and flags amount discrepancies. |
| toolkit | shopify-admin, shopify-admin-execution |
| api_version | 2025-01 |
| graphql_operations | ["shopifyPaymentsAccount:query","orders:query"] |
| status | stable |
| compatibility | Claude Code, Cursor, Codex, Gemini CLI |
Reconciles Shopify Payments payouts to the order transactions that contributed to them. For each payout, sums gross sales, refunds, adjustments, and fees, and compares the computed net to the payout's reported net amount. Discrepancies are flagged with a delta and the suspected cause. Read-only — no mutations.
shopify store auth --store <domain> --scopes read_shopify_payments_payouts,read_ordersread_shopify_payments_payouts, read_orders| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| store | string | yes | — | Store domain (e.g., mystore.myshopify.com) |
| days_back | integer | no | 30 | Lookback window covering payouts issued in this period |
| tolerance | number | no | 0.01 | Acceptable delta in store currency before flagging a discrepancy |
| format | string | no | human | Output format: human or json |
ℹ️ Read-only skill — no mutations are executed. Reconciliation output is informational; do not treat flagged discrepancies as confirmed errors before reviewing the underlying transactions in the Shopify admin.
OPERATION: shopifyPaymentsAccount — query
Inputs: select payouts(first: 100, query: "issued_at:>='<NOW - days_back days>'") with id, issuedAt, status, net, gross, summary { chargesGross, chargesFee, refundsGross, refundsFee, adjustmentsGross, adjustmentsFee, retriedPayoutsGross, retriedPayoutsFee }
Expected output: All payouts in the window. If account is null, exit — store does not use Shopify Payments.
For each payout, compute reconciliation expectation:
expected_net = chargesGross - chargesFee
- refundsGross + refundsFee (refundsFee is normally negative / reversed)
+ adjustmentsGross - adjustmentsFee
+ retriedPayoutsGross - retriedPayoutsFee
delta = reported_net - expected_net
OPERATION: orders — query (only for flagged payouts to drill down)
Inputs: query: "transactions:'gateway:shopify_payments processed_at:>=<payout.issuedAt - 7d> processed_at:<=<payout.issuedAt + 1d>'", first: 250
Expected output: Candidate orders that may have contributed to the payout, used for an order-level cross-check on top discrepancies
Classify each payout:
ok if |delta| <= tolerancediscrepancy otherwise — record sign (positive: payout overpaid us; negative: payout underpaid)Aggregate totals across the window: total payouts, total reconciled, total discrepancies, sum of absolute deltas
# shopifyPaymentsAccount:query — validated against api_version 2025-01
query PayoutReconciliation($payoutQuery: String!, $payoutAfter: String) {
shopifyPaymentsAccount {
id
payoutSchedule { interval }
payouts(first: 100, after: $payoutAfter, query: $payoutQuery) {
edges {
node {
id
issuedAt
status
net { amount currencyCode }
gross { amount currencyCode }
summary {
chargesGross { amount currencyCode }
chargesFee { amount currencyCode }
refundsFeeGross { amount currencyCode }
refundsFee { amount currencyCode }
adjustmentsGross { amount currencyCode }
adjustmentsFee { amount currencyCode }
retriedPayoutsGross { amount currencyCode }
retriedPayoutsFee { amount currencyCode }
}
}
}
pageInfo { hasNextPage endCursor }
}
}
}
# orders:query — validated against api_version 2025-01
query OrdersFundingPayout($query: String!, $after: String) {
orders(first: 250, after: $after, query: $query) {
edges {
node {
id
name
processedAt
totalPriceSet { shopMoney { amount currencyCode } }
totalReceivedSet { shopMoney { amount currencyCode } }
transactions {
id
gateway
kind
status
processedAt
amountSet { shopMoney { amount currencyCode } }
}
}
}
pageInfo { hasNextPage endCursor }
}
}
Claude MUST emit the following output at each stage. This is mandatory.
On start, emit:
╔══════════════════════════════════════════════╗
║ SKILL: Payout Reconciliation ║
║ Store: <store domain> ║
║ Started: <YYYY-MM-DD HH:MM UTC> ║
╚══════════════════════════════════════════════╝
After each step, emit:
[N/TOTAL] <QUERY|MUTATION> <OperationName>
→ Params: <brief summary of key inputs>
→ Result: <count or outcome>
On completion, emit:
For format: human (default):
══════════════════════════════════════════════
PAYOUT RECONCILIATION (<days_back> days)
Payouts in window: <n>
Reconciled (ok): <n>
Discrepancies: <n> ⚠️
Sum of abs deltas: $<amount>
Top discrepancies:
Payout <date> Reported: $<n> Expected: $<n> Δ: $<n>
Output: payout_reconciliation_<date>.csv
══════════════════════════════════════════════
For format: json, emit:
{
"skill": "payout-reconciliation",
"store": "<domain>",
"period_days": 30,
"payouts_count": 0,
"reconciled_count": 0,
"discrepancy_count": 0,
"sum_abs_delta": 0,
"currency": "USD",
"output_file": "payout_reconciliation_<date>.csv"
}
CSV file payout_reconciliation_<YYYY-MM-DD>.csv with columns:
payout_id, issued_at, status, reported_net, expected_net, delta, currency, charges_gross, charges_fee, refunds_gross, refunds_fee, adjustments_gross, verdict
| Error | Cause | Recovery |
|---|---|---|
THROTTLED | API rate limit exceeded | Wait 2 seconds, retry up to 3 times |
shopifyPaymentsAccount is null | Store does not use Shopify Payments | Exit cleanly; suggest reconciling via the third-party gateway dashboard |
| Currency mismatch within payout | Multi-currency store | Reconcile only payouts in the presentment currency that matches account currency; flag others as currency_mismatch |
Payout still IN_TRANSIT | Not yet final | Skip — reconcile after status moves to PAID |
refundsGross, which can look like an underpayment if you forget to reconcile across windows.