Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

On this page

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

Shell
sylphx money store-purchases verify orgs/acme/projects/shop/envs/production

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/store_purchases:verify · scope billing:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--subjectjsonWho bought it. Required.
--storestringapp_store or google_play. Required.
--signed-transactionstringApp Store: the StoreKit 2 signed transaction (jwsRepresentation).
--purchase-tokenstringGoogle Play: the purchase token.
--product-idstringGoogle Play: the store product id (for a subscription, its id).
--package-namestringGoogle 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

Shell
sylphx money store-purchases get orgs/acme/projects/shop/envs/production/store_purchases/store-purchase

GET 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

Shell
sylphx money store-purchases list orgs/acme/projects/shop/envs/production

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/store_purchases · scope billing:read · effect read · Request, response and examples

Flags

FlagTypeWhat it does
--page-sizeintAt most this many; default 50, clamped to 1000.
--page-tokenstringnext_page_token of the previous page.
--filterstringAIP-160 filter over filterable fields, for example transaction_id = "…".