app-store-server
Skill0 starsChanged 30 days agoMITView on GitHub
App Store Server API reference for the apple plugin — look up in-app purchase transactions, subscription status, order IDs, refunds, server notification history, test notifications, and decode signed JWS payloads (signedPayload, signedTransactionInfo). Load for customer-support investigations on purchases or StoreKit server work (storekit_* tools).
In this repository15 other files it gives its agents.
- apnsSkill
- apple-business-managerSkill
- apple-mapsSkill
- apple-musicSkill
- apple-newsSkill
- apple-search-adsSkill
- apple-servicesSkill
- app-store-connectSkill
- cloudkitSkill
- docsSkill
- icloudSkill
- setupSkill
- sign-in-with-appleSkill
- statusSkill
- weatherkitSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
All signed fields (signedTransactionInfo, signedRenewalInfo, signedPayload, signedTransactions[]) are decoded automatically (signature not …
- Very specific: line 22
Customer says "I paid but…": ask for the order id from their receipt e-mail → storekit_order_lookup (status 0 = valid) → transaction ids → …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
App Store Server API (tools storekit_*, apple_jws_decode)
Auth: ES256 JWT from app_store_server.key_id/issuer_id/private_key with bid = bundle id
(In-App Purchase key from App Store Connect → Integrations). Hosts:
production api.storekit.itunes.apple.com, sandbox api.storekit-sandbox.itunes.apple.com
(environment param or config). A transaction only exists in one environment: if production
returns 404 TransactionIdNotFound, retry with environment: sandbox.
All signed fields (signedTransactionInfo, signedRenewalInfo, signedPayload,
signedTransactions[]) are decoded automatically (signature not verified — the server trusts
Apple's TLS endpoint; for webhook payloads received from third parties verify the x5c chain
against Apple Root CA G3 before trusting).
Tasks
- Customer says "I paid but…": ask for the order id from their receipt e-mail →
storekit_order_lookup(status 0 = valid) → transaction ids →storekit_history/storekit_subscriptions. - Subscription state:
storekit_subscriptions→ per group:status1 active, 2 expired, 3 billing retry, 4 grace period, 5 revoked;renewalInfo.autoRenewStatus,expirationIntent,gracePeriodExpiresDate,priceIncreaseStatus, offer fields. - Refunds:
storekit_refund_history(revocationDate/revocationReason on transactions). - Did we receive the webhook?
storekit_notification_historyfor a date range (ms epoch; ≤180 days back), filternotificationType(SUBSCRIBED, DID_RENEW, DID_CHANGE_RENEWAL_STATUS, EXPIRED, GRACE_PERIOD_EXPIRED, REFUND, REFUND_DECLINED, CONSUMPTION_REQUEST, RENEWAL_EXTENDED, PRICE_INCREASE, OFFER_REDEEMED, ONE_TIME_CHARGE, TEST…) ortransaction_id;storekit_test_notificationfires a TEST notification to the configured URL and reports delivery. - Consumption info for refund requests:
storekit_request PUT /inApps/v1/transactions/consumption/{transactionId}with{"customerConsented": true, "consumptionStatus": 1, "platform": 1, "sampleContentProvided": false, "deliveryStatus": 0, "appAccountToken": "", "accountTenure": 4, "playTime": 0, "lifetimeDollarsRefunded": 0, "lifetimeDollarsPurchased": 3, "userStatus": 1, "refundPreference": 0}. - Extend a renewal (goodwill):
storekit_request PUT /inApps/v1/subscriptions/extend/{originalTransactionId}{"extendByDays": 7, "extendReasonCode": 1, "requestIdentifier": "<uuid>"}; mass extension:POST /inApps/v1/subscriptions/extend/mass. - Transaction fields:
transactionId,originalTransactionId,webOrderLineItemId,productId,type(Auto-Renewable Subscription, Non-Consumable, Consumable, Non-Renewing Subscription),purchaseDate/expiresDate(ms +_iso),environment,storefront,price(milli-units) +currency,offerType/offerDiscountType,transactionReason(PURCHASE, RENEWAL),inAppOwnershipType(PURCHASED, FAMILY_SHARED),appAccountToken. apple_jws_decodealso decodes Sign in with Apple id_tokens and StoreKit 2jwsRepresentation.
Docs: apple_docs_index technology=appstoreserverapi.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

