gplay purchase-options
gplay purchase-options
Section titled “gplay purchase-options”Manage one-time product purchase options.
gplay purchase-options <subcommand> [flags]Manage purchase options for one-time products.
Purchase options define how a one-time product can be purchased, including pricing, availability, and regional configurations.
Use “otp-offers” to manage offers within purchase options.
gplay purchase-options batch-update-states
Section titled “gplay purchase-options batch-update-states”Batch activate/deactivate purchase options.
gplay purchase-options batch-update-states --package <name> --product-id <id> --json <json>Batch update states for multiple purchase options.
JSON format: { “requests”: [ { “activatePurchaseOptionRequest”: { “packageName”: “com.example.app”, “productId”: “premium_item”, “purchaseOptionId”: “default” } }, { “deactivatePurchaseOptionRequest”: { “packageName”: “com.example.app”, “productId”: “premium_item”, “purchaseOptionId”: “legacy_option” } } ] }
Each request must contain exactly one of:
- activatePurchaseOptionRequest
- deactivatePurchaseOptionRequest
| Flag | Description | Default |
|---|---|---|
--json |
BatchUpdatePurchaseOptionStatesRequest JSON (or @file) | `` |
--output |
Output format: json (default), table, markdown | json |
--package |
Package name (applicationId) | `` |
--pretty |
Pretty-print JSON output | false |
--product-id |
One-time product ID | `` |
gplay purchase-options batch-delete
Section titled “gplay purchase-options batch-delete”Batch delete purchase options.
gplay purchase-options batch-delete --package <name> --product-id <id> --json <json> --confirmBatch delete multiple purchase options in a single request.
JSON format: { “requests”: [ { “packageName”: “com.example.app”, “productId”: “premium_item”, “purchaseOptionId”: “old_option”, “force”: true }, { “packageName”: “com.example.app”, “productId”: “basic_item”, “purchaseOptionId”: “legacy_option” } ] }
Up to 100 requests per batch. Set “force” to true to also delete any offers associated with the purchase option. Requires –confirm.
| Flag | Description | Default |
|---|---|---|
--confirm |
Confirm deletion | false |
--json |
BatchDeletePurchaseOptionsRequest JSON (or @file) | `` |
--output |
Output format: json (default), table, markdown | json |
--package |
Package name (applicationId) | `` |
--pretty |
Pretty-print JSON output | false |
--product-id |
One-time product ID | `` |