Menu
Platform
AI
App store purchases
Database
Flags
Jobs and cron
Localization
Monitoring
Notifications
Payments
Queues
Sandboxes
Webhooks
Getting Started
Authentication
KV Store
Deploy & Infrastructure
Reference
sylphx money store_purchases
Every sylphx money store_purchases command: its argument, its flags and a run line.
The store_purchases commands of Sylphx Money, as the CLI spells them: the same
calls as the store_purchases API page, typed for the
shell. Install, sign in and the grammar are on the CLI index.
#verify
Verifies a store purchase with the store, binds it to the subject, and returns its record and a signed grant. Re-verifying returns the same record and grant. Called from the app's server with a secret key that holds billing:write; a publishable key cannot call it.
NAME — the resource's name; a bare id is enough below the linked
project.
CLI
sylphx money store-purchases verify orgs/acme/projects/shop/envs/productionPOST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/store_purchases:verify · scope billing:write · effect write · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--subject | json | Who bought it. Required. |
--store | string | app_store or google_play. Required. |
--signed-transaction | string | App Store: the StoreKit 2 signed transaction (jwsRepresentation). |
--purchase-token | string | Google Play: the purchase token. |
--product-id | string | Google Play: the store product id (for a subscription, its id). |
--package-name | string | Google Play: the package name, when the connection covers several. |
#get
Gets a store purchase.
NAME — the resource's name; a bare id is enough below the linked
project.
CLI
sylphx money store-purchases get orgs/acme/projects/shop/envs/production/store_purchases/store-purchaseGET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/store_purchases/store-purchase · scope billing:read · effect read · Request, response and examples
#list
Lists store purchases, newest first.
PARENT — optional: the CLI fills it from the linked project or the
key's scope when it is left out.
CLI
sylphx money store-purchases list orgs/acme/projects/shop/envs/productionGET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/store_purchases · scope billing:read · effect read · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--page-size | int | At most this many; default 50, clamped to 1000. |
--page-token | string | next_page_token of the previous page. |
--filter | string | AIP-160 filter over filterable fields, for example transaction_id = "…". |