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.
npx skills add RevenueCat/play-billing-skills --skill billing-response-codesgit clone --depth 1 https://github.com/RevenueCat/play-billing-skillsWrote 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.
[](https://agentmods.dev/skills/revenuecat/play-billing-skills/billing-response-codes)<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/billing-response-codes"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/billing-response-codes/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.
<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/billing-response-codes"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/billing-response-codes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00043 | $0.02352 |
| Opus 5 | $0.00022 | $0.01176 |
| Sonnet 5 | $0.00009 | $0.00470 |
| Haiku 4.5 | $0.00004 | $0.00235 |
Grade A, and why
billing-response-codes 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.
How it starts
The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Billing Response Codes
Phase 0: Intent
Use this skill when you need to look up the meaning, category, or handling strategy for a value returned by BillingResult.getResponseCode() or BillingResult.getOnPurchasesUpdatedSubResponseCode() in the Play Billing Library. This reference covers:
- All
BillingResponseCodeconstants defined in PBL 9.x (the constant set is unchanged from PBL 8.x; v9 added no codes and removed none). - All
OnPurchasesUpdatedSubResponseCodeconstants added in PBL 8.0. - Retry eligibility for each code.
- The recommended response strategy per code.
- A decision tree that maps any received code to an action.
Use this skill to answer questions like "what does response code 7 mean", "should I retry on SERVICE_UNAVAILABLE", or "how do I handle ITEM_ALREADY_OWNED".
Do not use this skill to author new integration code from scratch. Use the launch or purchase flow skills for that. This skill is a lookup table.
Phase 1: Locate
The authoritative copy of the tables and decision tree lives in the full appendix on revenuecat.com. When a question asks for:
- The literal integer value of a code, see "Response Codes".
- Sub response codes introduced in PBL 8.0, see "Sub Response Codes (PBL 8.0+)".
- The retry strategy for a code, see "Retry Implementation Summary".
- A full flow from received code to action, see "Error Handling Decision Tree".
The tables reproduced below in Phase 2 mirror the appendix verbatim so you can answer most lookups without opening the chapter.
Phase 2: Reference Tables
BillingResponseCode values
| Code | Value | Retriable | Description | Recommended Strategy |
|---|---|---|---|---|
OK |
0 | N/A | Operation succeeded | Process the result normally. |
USER_CANCELED |
1 | No | User dismissed the purchase dialog | No action needed. Do not show an error message. |
SERVICE_UNAVAILABLE |
2 | Yes | Google Play service is temporarily unavailable | Retry with exponential backoff (2s base, 2x factor, max 3 attempts). |
BILLING_UNAVAILABLE |
3 | No (auto) | Billing is unavailable on this device or for this user | Do not auto retry. Check Play Store version and user account. Let the user try again manually. PBL 9 (with androidx.core 1.9+) also routes a system blocked Play Store here with a "Play Store is blocked" debugMessage, where PBL 8 returned ERROR. |
ITEM_UNAVAILABLE |
4 | No | The requested product is not available for purchase | Refresh product details with queryProductDetailsAsync(). The product may have been deactivated. |
DEVELOPER_ERROR |
5 | No | Invalid arguments passed to the API | Fix your code. Check product IDs, offer tokens, and parameter construction. This is a programming error. |
ERROR |
6 | Yes | An internal Google Play error occurred | Retry with exponential backoff. If persistent, report to Google. |
ITEM_ALREADY_OWNED |
7 | No | The user already owns this non consumable item | Call queryPurchasesAsync() to refresh your local purchase cache. The user may have purchased on another device. |
ITEM_NOT_OWNED |
8 | No | Attempted to consume or acknowledge an item the user does not own | Call queryPurchasesAsync() to refresh your local purchase cache. The purchase may have been refunded. |
NETWORK_ERROR |
12 | Yes | A network error occurred during the operation | Retry with a short delay (1-2 seconds). Check device connectivity. |
SERVICE_DISCONNECTED |
-1 | Yes | The BillingClient is not connected to Google Play Services |
With enableAutoServiceReconnection() (PBL 8), the library retries automatically. Without it, call startConnection() and retry. |
FEATURE_NOT_SUPPORTED |
-2 | No | The requested feature is not supported on this device or Play Store version | Check isFeatureSupported() before calling feature specific APIs. Provide fallback behavior. |
SERVICE_TIMEOUT |
-3 | Yes (Deprecated) | The request timed out | Deprecated in recent PBL versions. Treat as SERVICE_UNAVAILABLE and retry with backoff. |
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.
- 11d ago First seen · 170 lines · 43 tokens per session scan A c47eeffe2ebc
billing-response-codes is a skill published in the GitHub repository RevenueCat/play-billing-skills (53 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 43 tokens to every session and 2,352 once invoked, about $0.0002 per session on Opus 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.
Other skills, from other repositories
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…
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.
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.
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.
product-description-generator
E-commerce product description generator for any platform. Generates optimized titles, bullet points, descriptions, and backend keywords using competitor research + keyword scoring + FABE copywriting. Two modes: (A) Create — generate listing from product specs with optional competitor analysis, (B) Optimize — improve…
amazon-price-tracker
Amazon price monitoring and competitive pricing intelligence. Real-time price tracking, Buy Box analysis, promotion detection, and dynamic pricing strategy optimization. Use when the user asks about price monitoring, competitor pricing, Buy Box tracking, or pricing strategy.