Skip to content
Console
Menu

Generated Assets

Workflows

Getting Started

Authentication

KV Store

On this page

sylphx money checkout_policies

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

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

#get

Gets the environment's checkout policy: which buyer countries consumer checkout refuses. An environment that never wrote one refuses none.

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

CLI

Shell
sylphx money checkout-policies get orgs/acme/projects/shop/envs/production/checkout_policies/checkout-policy

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

#update

Updates the environment's checkout policy, whole.

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

CLI

Shell
sylphx money checkout-policies update orgs/acme/projects/shop/envs/production/checkout_policies/checkout-policy

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/checkout_policies/checkout-policy · scope billing:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--meta.labelskey=valueCaller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value.
--meta.annotationskey=valueCaller-writable, unindexed annotations. Repeat the flag for each value.
--meta.display-namestringCaller-writable human-readable name.
--spec.denied-country-codesstringBuyer countries consumer checkout refuses: ISO 3166-1 alpha-2 codes (DE), or the group EU (the 27 member states). At most 300 entries. Empty refuses nobody. Repeat the flag for each value.
--spec.allow-tax-id-buyersboolWhether a buyer from a denied country who gives a tax id (a business) may still buy. Checkout then asks for the tax id; default false.
--allow-missingboolCreate the policy when it does not exist (declarative upsert).
--dry-runboolValidate and print the result without writing (validate_only).