agentsclimarketplace

Gplay orders

Skill unliftedq/agents/android-dev/skills/gplay-orders

Look up and refund Google Play orders by order ID with gplay `orders` — the admin commerce surface. `orders view <orderId>...` reads one order (orders.get) or a batch (orders.batchget); `orders refund <orderId>` is a money-moving, irreversible write, so it is `--confirm`-gated. Reading needs the `CAN_VIEW_FINANCIAL_DATA` capability and refunding needs `CAN_MANAGE_ORDERS` — neither is part of a Role bundle. Use when a buyer complaint or payout report hands you an order ID and you need its state, or when issuing a refund. This is order-by-ID admin diagnostics, not runtime purchase-token verification.From its SKILL.md

Install
npx -y skills add unliftedq/agents --skill gplay-orders

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.3 KB, 995 tokens by cl100k_base, as published. Nobody here has run it

gplay orders (admin commerce: view + refund)

gplay orders is the admin commerce surface: look up an order by its order ID, and — when warranted — refund it. Both commands are [experimental]. Shared conventions (auth, output, exit codes, --package pinning, --dry-run/--confirm) are in gplay-cli-usage.

The admin/runtime boundary. orders is for when a human or agent already holds an order ID — from a buyer complaint, a chargeback, a payout report — and wants to read or reverse it. That is an admin diagnostic. It is not real-time purchase-token verification (purchases.products / purchases.subscriptionsv2), which is a runtime API gplay does not wrap. If the task is "verify this in-app purchase token from my backend", this is the wrong surface.

An order ID looks like GPA.1234-5678-9012-34567. Orders are keyed by package, so the pinned package (or --package) scopes the lookup.

Read an order — orders view

gplay orders view GPA.1234-5678-9012-34567                 # one order (orders.get)
gplay orders view GPA.1111-... GPA.2222-... GPA.3333-...   # a batch (orders.batchget)
gplay orders view GPA.1234-... --output json               # full Order, verbatim
  • One ID → a detailed orders.get. Several IDs → orders.batchget, 1–1000 per request (more is a usage error, exit 2).
  • Batch is all-or-nothing: if any ID is unknown or belongs to another package, the whole request fails — don't mix packages in one call.
  • The human view is a compact summary (id, state, total, creation time, line items). --output json passes the Order (single) or BatchGetOrdersResponse (batch) through verbatim (ADR-0003), including the fields the summary omits — buyer address, tax, order history, sales channel.
  • An unknown order ID fails with exit 30 (API 4xx).

Refund an order — orders refund (money-moving, irreversible)

# Rehearse first — no HTTP; under --output json the gate shows in "requires":
gplay orders refund GPA.1234-5678-9012-34567 --dry-run

# Live — moves money, so --confirm is required:
gplay orders refund GPA.1234-5678-9012-34567 --confirm

# Also terminate the entitlement (buyer loses access; a subscription stops
# billing too). Default is refund-money-but-keep-access:
gplay orders refund GPA.1234-5678-9012-34567 --revoke --confirm
  • Destructive tier. Refunding moves money and cannot be undone, so it refuses without --confirm (exit 3, naming the flag). CI=true never auto-confirms; GPLAY_READONLY refuses it outright (exit 4).
  • --revoke is the meaningful choice: without it, the buyer is refunded but keeps what they bought; with it, the entitlement is revoked (and a subscription's future payments stop). Decide before you run.
  • No bulk refund — one order per call, on purpose. (view batches; refund does not.)
  • Google rejects refunds for orders older than 3 years — that surfaces as a specific refusal, not a generic error.

Capabilities — never bundled into a role

Money capabilities are deliberately excluded from every Role bundle (vieweradmin), so a service account granted a role still cannot touch orders. They must be granted as explicit permissions (see gplay-team):

  • orders viewCAN_VIEW_FINANCIAL_DATA
  • orders refundCAN_MANAGE_ORDERS

A missing capability returns 403 (exit 11) and the message names the one it needs — grant it in the Play Console (Users & permissions) or via gplay team, then retry.

Confirm the current verbs and flags with gplay orders --help and gplay orders <command> --help — the surface is [experimental] (ADR-0031) and may still evolve.

What ships with it: 1 file

221 B alongside SKILL.md

Keep looking

Skills are one crate of 326,499. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.