Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

sylphx money customer_subscriptions

Every sylphx money customer_subscriptions command: its argument, its flags and a run line.

The customer_subscriptions commands of Sylphx Money, as the CLI spells them: the same calls as the customer_subscriptions API page, typed for the shell. Install, sign in and the grammar are on the CLI index.

#get

Gets a customer subscription.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx money customer-subscriptions get orgs/acme/projects/shop/envs/production/customer_subscriptions/customer-subscription

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

#list

Lists customer subscriptions, 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 customer-subscriptions list orgs/acme/projects/shop/envs/production

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/customer_subscriptions · 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.

#cancel

Cancels a web subscription, now or at the period end, and optionally refunds its last payment (for example a statutory cancellation window).

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx money customer-subscriptions cancel orgs/acme/projects/shop/envs/production/customer_subscriptions/customer-subscription --yes

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/customer_subscriptions/customer-subscription:cancel · scope billing:write · effect destructive · Request, response and examples

Flags

FlagTypeWhat it does
--at-period-endboolEnd it at the period end (true) or now (false).
--refund-last-paymentboolRefund the last payment in full; only with at_period_end false.
--yesboolDo not ask before this destructive call.

#resume

Resumes a web subscription set to cancel at its period end.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx money customer-subscriptions resume orgs/acme/projects/shop/envs/production/customer_subscriptions/customer-subscription

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/customer_subscriptions/customer-subscription:resume · scope billing:write · effect write · Request, response and examples

#update-quantity

Changes the seat quantity of a web subscription, now, and syncs the processor's subscription item to it. A retry with the same Idempotency-Key (required) and the same request changes nothing twice.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx money customer-subscriptions update-quantity orgs/acme/projects/shop/envs/production/customer_subscriptions/customer-subscription

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/customer_subscriptions/customer-subscription:updateQuantity · scope billing:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--quantityintThe new quantity (seats) of the subscription's one item; at least 1. To end the subscription, cancel it. Required.
--proration-behaviorenumHow the change is billed; unspecified is create_prorations. One of create_prorations, none, always_invoice.