Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
40rty-ai avatar

Shopify Admin Gift Card Liability Report

  • 2 installs
  • 173 repo stars
  • Updated June 26, 2026
  • 40rty-ai/shopify-admin-skills

shopify-admin-gift-card-liability-report is a Shopify Admin skill that computes total outstanding gift-card liability broken down by issue cohort and balance band.

About

A Shopify Admin skill that calculates the store's total outstanding gift-card liability and breaks it down by issue-month cohort and remaining-balance band. It flags breakage candidates (stale or near-expiry cards) so finance can size, age, and forecast the obligation. It is the bookkeeping companion to the gift-card-balance-report and is read-only. Finance teams use it for deferred-revenue and breakage recognition.

  • Breaks liability down by issue-month cohort and balance band
  • Flags breakage candidates by staleness and near expiry
  • Read-only, references ASC 606 / IFRS 15

Shopify Admin Gift Card Liability Report by the numbers

  • 2 all-time installs (skills.sh)
  • Ranked #870 of 1,106 Finance & Trading skills by installs in the Skillselion catalog
  • Data as of Aug 1, 2026 (Skillselion catalog sync)
At a glance

shopify-admin-gift-card-liability-report capabilities & compatibility

Free; requires an authenticated Shopify CLI session with read_gift_cards scope.

Capabilities
liability reporting · breakage forecast · financial reporting
Use cases
data analysis
Pricing
Free
From the docs

What shopify-admin-gift-card-liability-report says it does

Calculates the store's total outstanding gift card liability — the sum of unredeemed gift card balances that represent a future obligation to deliver goods.
SKILL.md
This is the bookkeeping companion to `gift-card-balance-report` (which lists individual cards). Read-only — no mutations.
SKILL.md
npx skills add https://github.com/40rty-ai/shopify-admin-skills --skill shopify-admin-gift-card-liability-report

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2
repo stars173
Last updatedJune 26, 2026
Repository40rty-ai/shopify-admin-skills

What it does

Calculate total outstanding Shopify gift-card liability broken down by issue cohort and balance band for finance and breakage forecasting.

Who is it for?

Sizing, aging, and forecasting gift-card liability for finance and breakage recognition.

Skip if: Listing individual cards for customer lookup; that is the balance-report skill's job.

When should I use this skill?

During accounting close or when forecasting gift-card breakage.

What you get

A liability figure broken down by cohort and balance band with a breakage-candidate subtotal.

  • Total liability with per-cohort and per-band tables
  • Breakage-candidate subtotal

By the numbers

  • Default balance bands [10, 50, 100, 250, 500]
  • Default stale_days of 365

Files

SKILL.mdMarkdownGitHub ↗

Purpose

Calculates the store's total outstanding gift card liability — the sum of unredeemed gift card balances that represent a future obligation to deliver goods. Breaks the liability down by issue-month cohort and remaining-balance band so finance can size the obligation, age it, and forecast breakage. This is the bookkeeping companion to gift-card-balance-report (which lists individual cards). Read-only — no mutations.

Prerequisites

  • Authenticated Shopify CLI session: shopify store auth --store <domain> --scopes read_gift_cards
  • API scopes: read_gift_cards

Parameters

ParameterTypeRequiredDefaultDescription
storestringyesStore domain (e.g., mystore.myshopify.com)
statusstringnoenabledFilter by status: enabled, disabled, or all
balance_bandsarrayno[10, 50, 100, 250, 500]Upper edges of balance bands (in store currency) for distribution table
stale_daysintegerno365Cards untouched longer than this are flagged as breakage candidates
as_ofstringnotoday (UTC)ISO date for the "as of" snapshot label on the report
formatstringnohumanOutput format: human or json

Safety

ℹ️ Read-only skill — no mutations are executed. The dollar figure produced is the deferred-revenue liability for accounting purposes; review with your accountant before booking journal entries.

Liability Model

For every enabled gift card with balance > 0:

1. Outstanding balance = sum of balance.amount (the liability) 2. Issue cohort = year-month of createdAt 3. Balance band = first band edge ≥ remaining balance, or >max for cards above the largest edge 4. Breakage candidate = card with balance > 0 and (updatedAt older than stale_days ago OR expiresOn within next 30 days)

Aggregations:

  • Total outstanding (overall + per cohort + per band)
  • Card counts per cohort and per band
  • Weighted-average days since issue
  • Breakage candidate total — useful for revenue recognition under ASC 606 / IFRS 15 for stores in jurisdictions where breakage can be recognized

Workflow Steps

1. OPERATION: giftCards — query Inputs: query: "status:<status> balance:>0", first: 250, select id, balance, initialValue, createdAt, updatedAt, expiresOn, enabled, lastCharacters, pagination cursor Expected output: All gift cards with positive balance; paginate until hasNextPage: false

2. For each card, compute issue cohort, balance band, and breakage flag

3. Aggregate totals: overall liability, per-cohort table, per-band table, breakage candidate subtotal

4. Compute redeemed-to-date as Σ(initialValue - balance) for context

GraphQL Operations

# giftCards:query — validated against api_version 2025-01
query GiftCardLiability($query: String, $after: String) {
  giftCards(first: 250, after: $after, query: $query) {
    edges {
      node {
        id
        balance {
          amount
          currencyCode
        }
        initialValue {
          amount
          currencyCode
        }
        enabled
        createdAt
        updatedAt
        expiresOn
        lastCharacters
        customer {
          id
          displayName
          defaultEmailAddress {
            emailAddress
          }
        }
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}

Session Tracking

Claude MUST emit the following output at each stage. This is mandatory.

On start, emit:

╔══════════════════════════════════════════════╗
║  SKILL: Gift Card Liability Report           ║
║  Store: <store domain>                       ║
║  As of: <YYYY-MM-DD>                         ║
║  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):

══════════════════════════════════════════════
GIFT CARD LIABILITY  (as of <date>)
  Active cards w/ balance:   <n>
  Total outstanding:         $<amount>
  Initial value issued:      $<amount>
  Redeemed to date:          $<amount>  (<pct>%)
  Breakage candidates:       <n>  ($<amount>)

  By issue cohort (YYYY-MM):
    2024-12  Cards: <n>  Liability: $<n>
    2025-01  Cards: <n>  Liability: $<n>

  By balance band:
    ≤ $10     Cards: <n>  Liability: $<n>
    ≤ $50     Cards: <n>  Liability: $<n>
    ≤ $100    Cards: <n>  Liability: $<n>
    > $500    Cards: <n>  Liability: $<n>

  Output: gift_card_liability_<date>.csv
══════════════════════════════════════════════

For format: json, emit:

{
  "skill": "gift-card-liability-report",
  "store": "<domain>",
  "as_of": "<YYYY-MM-DD>",
  "active_with_balance": 0,
  "total_outstanding": 0,
  "initial_value_issued": 0,
  "redeemed_to_date": 0,
  "redemption_rate_pct": 0,
  "breakage_candidates_count": 0,
  "breakage_candidates_value": 0,
  "currency": "USD",
  "by_cohort": [],
  "by_band": [],
  "output_file": "gift_card_liability_<date>.csv"
}

Output Format

CSV file gift_card_liability_<YYYY-MM-DD>.csv with columns: gift_card_id, last_characters, initial_value, balance, redeemed, currency, created_at, issue_cohort, balance_band, updated_at, expires_on, breakage_candidate, customer_email

Error Handling

ErrorCauseRecovery
THROTTLEDAPI rate limit exceededWait 2 seconds, retry up to 3 times
No gift cards with positive balanceStore hasn't issued any, or all redeemedExit with $0 liability
Multi-currency cardsCards issued in different presentment currenciesGroup totals by currency code; do not sum across currencies
Card with null expiresOnNo expiry policyTreat as non-expiring; do not include in expiry-based breakage

Best Practices

  • Run on the last day of every accounting period so the figure aligns with your balance-sheet close.
  • The total outstanding amount is the deferred-revenue liability — book it in your accounting system, do not treat issued gift cards as revenue.
  • Breakage policy varies by jurisdiction; consult your accountant before recognizing breakage candidates as revenue. The stale_days and expiresOn flags here are inputs to that policy, not a substitute for it.
  • Track the redemption-rate trend month over month — declining redemption can indicate a customer-experience issue (recipients can't find / remember their cards).
  • Pair with gift-card-issuance to monitor flow: liability should increase by issuance and decrease by redemption + breakage.

Related skills

FAQ

How does it differ from the balance report?

The balance report lists individual cards; this one aggregates liability into issue-month cohorts and balance bands for bookkeeping.

What counts as a breakage candidate?

A card with balance > 0 that is untouched longer than stale_days (default 365) or expiring within the next 30 days.

Finance & Tradingfinanceecommerce

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.