Skip to content

gplay orders

Manage orders.

gplay orders <subcommand> [flags]

Manage orders and refunds.

Orders represent completed transactions for in-app products and subscriptions.

Get order details.

gplay orders get --package <name> --order-id <id>
Flag Description Default
--order-id Order ID (e.g., GPA.1234-5678-9012-34567) ``
--output Output format: json (default), table, markdown json
--package Package name (applicationId) ``
--pretty Pretty-print JSON output false

Get multiple orders.

gplay orders batch-get --package <name> --order-ids <id1,id2,...>
Flag Description Default
--order-ids Comma-separated list of order IDs ``
--output Output format: json (default), table, markdown json
--package Package name (applicationId) ``
--pretty Pretty-print JSON output false

Refund an order.

gplay orders refund --package <name> --order-id <id> [--revoke] --confirm

Refund an order.

Options: –revoke: Also revoke the entitlement (user loses access to the purchased item) Without this flag, the user keeps access but the payment is refunded.

Flag Description Default
--confirm Confirm refund false
--order-id Order ID to refund ``
--output Output format: json (default), table, markdown json
--package Package name (applicationId) ``
--pretty Pretty-print JSON output false
--revoke Revoke entitlement (user loses access) false