For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tier Groups

Get customer tier groups

get

Retrieves tier group state for a logged in customer. Returns an empty array if not logged in.

Authorizations
AuthorizationstringOptional

A Customer token generated using an API Key in the format 'Customer TOKEN_HERE'.

Responses
200

OK

application/json
tier_group_idstring · flake-idRequiredExample: 411486491630370816
active_product_idstring · flake-idRequiredExample: 411486491630370816
pending_change_product_idstring · flake-idOptionalExample: 411486491630370816
next_renewal_atstring · date-timeRequired

The date and time of the next subscription renewal for this tier group.

next_billing_amountinteger · int64Required

The next billing amount in the smallest currency unit (e.g., cents) in the settlement currency.

next_billing_presentment_amountinteger · int64Required

The next billing amount in the smallest currency unit (e.g., cents) in the customer-facing presentment currency.

currencystringRequired

The settlement currency code (e.g., "usd").

presentment_currencystringRequired

The customer-facing presentment currency code (e.g., "eur").

get/v1/store/tier-groups

Update subscription tier group

post

Upgrades or downgrades an existing subscription tier group. The customer must have an active subscription within this tier group.

Authorizations
AuthorizationstringRequired

A Customer token generated using an API Key in the format 'Customer TOKEN_HERE'.

Path parameters
idstring · flake-idRequiredExample: 411486491630370816
Body
target_product_idstring · flake-idRequiredExample: 411486491630370816
verification_codestring · nullableOptional

A verification code sent to the customer's subscription billing e-mail. Pass this if the status field on the subscription_change object equals pending_verification.

Responses
200

OK

application/json

Response returned after a subscription change is initiated.

post/v1/store/tier-groups/{id}/change

Preview update subscription tier group

post

Previews an upgrade or a downgrade an existing subscription tier group. The customer must have an active subscription within this tier group.

Authorizations
AuthorizationstringRequired

A Customer token generated using an API Key in the format 'Customer TOKEN_HERE'.

Path parameters
idstring · flake-idRequiredExample: 411486491630370816
Body
target_product_idstring · flake-idRequiredExample: 411486491630370816
verification_codestring · nullableOptional

A verification code sent to the customer's subscription billing e-mail. Pass this if the status field on the subscription_change object equals pending_verification.

Responses
200

OK

application/json

Response returned after a subscription change is initiated.

post/v1/store/tier-groups/{id}/change/preview

Last updated

Was this helpful?