rtdn-reference

rtdn-reference is a skill for Claude Code, Codex from RevenueCat/play-billing-skills. It costs 60 tokens per session (2,685 once invoked), scanned A, original, Apache-2.0.

A lookup guide for Google Play Real Time Developer Notifications, messages that tell your server when a purchase or subscription changes. It maps notification names and integer codes to the events that trigger them.

In plain words
What is it for?
Use it to decode subscription, one-time purchase, voided purchase, and test notifications. It is also useful when investigating events such as account hold, grace period, recovery, or cancellation.
Why use it?
The notification payload uses codes and separate message categories, making it easy to handle an event incorrectly or miss an important one. This reference helps identify what a notification means and what response it calls for.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to decode subscription, one-time purchase, voided purchase, and test notifications. It is also useful when investigating events such as account hold, grace period, recovery, or cancellation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/revenuecat/play-billing-skills/rtdn-reference
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add RevenueCat/play-billing-skills --skill rtdn-reference
Clone the repo
git clone --depth 1 https://github.com/RevenueCat/play-billing-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rtdn-reference

README.md
[![agentmods](https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/rtdn-reference/github.svg)](https://agentmods.dev/skills/revenuecat/play-billing-skills/rtdn-reference)
Your own site
<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/rtdn-reference"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/rtdn-reference/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rtdn-reference

Your own site · 80×15
<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/rtdn-reference"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/rtdn-reference.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,685 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.02685
Opus 5.5 $0.00024 $0.01074
Sonnet 5.5 $0.00012 $0.00537
Haiku 4.5 $0.00006 $0.00268

Measured 11d ago against content hash bfa31cf10e00, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rtdn-reference scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

google-play/rtdn-reference/SKILL.md · 217 lines

How it starts

The opening of the file, as written. The whole thing — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RTDN Reference

Phase 0: Intent

Tell the user: "I will look up the RTDN notification type you asked about and recommend handling."

Phase 1: Locate

Map the user's question to one of the tables in Phase 2:

  1. Integer code given (for example notificationType: 5): determine which notification family the user is in.
    • If the payload wraps the code in subscriptionNotification, use the Subscription Notification Types table.
    • If the payload wraps the code in oneTimeProductNotification, use the One Time Product Notification Types table.
    • If the payload has voidedPurchaseNotification, use the Voided Purchase Notification section.
    • If the payload has pendingRefundReviewNotification, use the Pending Refund Review section.
    • If the payload has testNotification, use the Test Notification section.
  2. Event name given (for example SUBSCRIPTION_ON_HOLD): search the Type column in the Subscription or One Time Product table.
  3. Symptom given (for example "user lost access after failed payment"): match the trigger phrase in the Trigger column. Account hold and grace period map to codes 5 and 6 respectively in the subscription table.
  4. Unassigned code (14, 15, 16, 21): report that the code is reserved and not emitted.

After locating the row, jump to Phase 3 for the handling guidance for that family.

Phase 2: Reference tables

RTDN Message Structure

Every RTDN message arrives as a Cloud Pub/Sub message with a base64 encoded JSON payload in the data field. The decoded JSON has this structure:

{
  "version": "1.0",
  "packageName": "com.example.app",
  "eventTimeMillis": "1234567890123",
  "subscriptionNotification": { },
  "oneTimeProductNotification": { },
  "voidedPurchaseNotification": { },
  "pendingRefundReviewNotification": { },
  "testNotification": { }
}

Only one notification field is present per message.

Subscription Notification Types

Code Type Trigger Subscription State After Required Action
1 SUBSCRIPTION_RECOVERED Recovered from account hold, or resumed from pause (grace period recovery arrives as code 2) ACTIVE Grant access. Call subscriptionsv2.get to confirm state.
2 SUBSCRIPTION_RENEWED Active subscription successfully renewed ACTIVE Extend entitlement. Update expiryTime in your database.
3 SUBSCRIPTION_CANCELED Subscription canceled (user, developer, or system) CANCELED Check canceledStateContext for reason. User retains access until expiryTime.
4 SUBSCRIPTION_PURCHASED New subscription purchased ACTIVE Verify purchase. Grant access. Acknowledge within 3 days.
5 SUBSCRIPTION_ON_HOLD Grace period expired, entered account hold ON_HOLD Revoke access. Notify user to fix payment method.
6 SUBSCRIPTION_IN_GRACE_PERIOD Renewal payment failed, entered grace period IN_GRACE_PERIOD Retain access. Notify user about payment issue. Show in app message.
7 SUBSCRIPTION_RESTARTED User restored canceled subscription from Play Store before expiration ACTIVE Grant access. Same purchase token.
8 SUBSCRIPTION_PRICE_CHANGE_CONFIRMED (Deprecated) User confirmed a price change No state change Deprecated. Use type 19 instead.
9 SUBSCRIPTION_DEFERRED Subscription billing date extended via subscriptionsv2.defer ACTIVE Update expiryTime in your database. Extend access.
10 SUBSCRIPTION_PAUSED Subscription paused (effective at end of current period) PAUSED Revoke access when pause begins.
11 SUBSCRIPTION_PAUSE_SCHEDULE_CHANGED Pause schedule modified (pause set, changed, or removed) Varies Call API to check current pause schedule.
12 SUBSCRIPTION_REVOKED Subscription revoked (refund, developer revocation) EXPIRED Immediately revoke access.
13 SUBSCRIPTION_EXPIRED Subscription expired after cancellation or account hold failure EXPIRED Revoke access. Clean up entitlement records.
17 SUBSCRIPTION_ITEMS_CHANGED Items in subscription bundle changed (add ons) Varies Call API to get updated line items.
18 SUBSCRIPTION_CANCELLATION_SCHEDULED Installment subscription cancellation scheduled at end of commitment ACTIVE (until commitment ends) Note the scheduled cancellation. User retains access through commitment period.
19 SUBSCRIPTION_PRICE_CHANGE_UPDATED Price change details updated for existing subscribers Varies Call API to get updated price change information.
20 SUBSCRIPTION_PENDING_PURCHASE_CANCELED Pending subscription purchase was canceled PENDING_PURCHASE_CANCELED Do not grant the new purchase. If linkedPurchaseToken is set, the old subscription is still owned: keep its entitlement and re-read it.
22 SUBSCRIPTION_PRICE_STEP_UP_CONSENT_UPDATED Price step up consent period begun or user provided consent (South Korea) Varies Call API to check consent status.

Read the full file on GitHub · 217 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed · +20 lines · +5 tokens per session bfa31cf10e00
  2. 1mo ago First seen · 197 lines · 55 tokens per session scan A afaf6d4b420c

Subscribe to this mod's changes

rtdn-reference is a skill published in the GitHub repository RevenueCat/play-billing-skills (58 stars, last pushed 12d ago), licensed Apache-2.0. It adds 60 tokens to every session and 2,685 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

food-order

Reorder previous Foodora orders, preview cart contents, and track delivery ETA/status with ordercli. Use when the user wants to reorder food, check delivery status, or browse recent Foodora order history. Never confirm an order without explicit user approval.

Bitterbot-AI/bitterbot-desktop · 53 tokens

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens

Product Photoshoot Workflow

A workflow for turning one product photo into a set of four e-commerce images from different visual directions.

jau123/MeiGen-AI-Design-MCP · 111 tokens

amazon-competitor-analyzer

Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.

browser-act/skills · 48 tokens

cloudbase-wechat-integration

A guide for connecting CloudBase applications to WeChat services, including payments, official accounts, and user identity.

TencentCloudBase/CloudBase-AI-Toolkit · 94 tokens