Trials

Get trials for a store

get
Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequiredExample: 411486491630370816
Query parameters
customer_idstring · flake-idOptional

Filters trials by the customer identifier.

Example: 411486491630370816
subscription_idstring · flake-idOptional

Filters trials by the associated subscription identifier.

Example: 411486491630370816
checkout_idstring · flake-idOptional

Filters trials by the checkout session identifier that initiated them.

Example: 411486491630370816
trial_idstring · flake-idOptional

Filters to a specific trial by its identifier.

Example: 411486491630370816
limitinteger · int32 · min: 1 · max: 100Optional

The maximum number of items to return in a single request.

afterstring · flake-idOptional

Returns items after the specified ID. Used for forward pagination through results.

Example: 411486491630370816
beforestring · flake-idOptional

Returns items before the specified ID. Used for backward pagination through results.

Example: 411486491630370816
ascbooleanOptional

Determines the sort order of returned items. When true, items are returned in ascending order. When false, items are returned in descending order.

Responses
chevron-right
200

OK

application/json
idstring · flake-idRequiredExample: 411486491630370816
pretty_idstringRead-onlyRequired

The human-readable formatted version of the trial identifier.

store_idstring · flake-idRequiredExample: 411486491630370816
checkout_idstring · flake-idOptionalExample: 411486491630370816
checkout_line_idstring · flake-idOptionalExample: 411486491630370816
customer_idstring · flake-idRequiredExample: 411486491630370816
product_idstring · flake-idRequiredExample: 411486491630370816
product_version_idstring · flake-idRequiredExample: 411486491630370816
product_namestringRequired

The name of the product being trialed.

product_image_urlstring · nullableOptional

The URL of the product image, if available.

period_valueinteger · int32Required

The duration value of the trial period.

period_scalestringRequired

The timescale unit for the trial period (e.g., "days", "weeks", "months").

starts_atstring · nullableOptional

The date and time when the trial period starts, if applicable.

ends_atstring · nullableOptional

The date and time when the trial period ends, if applicable.

statusstring · enumRequiredPossible values:
created_atstring · date-timeRequired

The date and time when the trial was created.

canceled_atstring · nullableOptional

The date and time when the trial was canceled, if applicable.

get
/v1/stores/{storeId}/trials

Get a trial by ID for a store

get
Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequiredExample: 411486491630370816
trialIdstring · flake-idRequiredExample: 411486491630370816
Responses
chevron-right
200

OK

application/json
idstring · flake-idRequiredExample: 411486491630370816
pretty_idstringRead-onlyRequired

The human-readable formatted version of the trial identifier.

store_idstring · flake-idRequiredExample: 411486491630370816
checkout_idstring · flake-idOptionalExample: 411486491630370816
checkout_line_idstring · flake-idOptionalExample: 411486491630370816
customer_idstring · flake-idRequiredExample: 411486491630370816
product_idstring · flake-idRequiredExample: 411486491630370816
product_version_idstring · flake-idRequiredExample: 411486491630370816
product_namestringRequired

The name of the product being trialed.

product_image_urlstring · nullableOptional

The URL of the product image, if available.

period_valueinteger · int32Required

The duration value of the trial period.

period_scalestringRequired

The timescale unit for the trial period (e.g., "days", "weeks", "months").

starts_atstring · nullableOptional

The date and time when the trial period starts, if applicable.

ends_atstring · nullableOptional

The date and time when the trial period ends, if applicable.

statusstring · enumRequiredPossible values:
created_atstring · date-timeRequired

The date and time when the trial was created.

canceled_atstring · nullableOptional

The date and time when the trial was canceled, if applicable.

get
/v1/stores/{storeId}/trials/{trialId}

Get trial eligibility overrides for a specific customer

get

Retrieves all trial eligibility overrides for the specified customer.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to retrieve trial eligibility overrides for.

Example: 411486491630370816
customerIdstring · flake-idRequired

The ID of the customer to retrieve trial eligibility overrides for.

Example: 411486491630370816
Query parameters
limitinteger · int32 · min: 1 · max: 100Optional

The maximum number of items to return in a single request.

afterstring · flake-idOptional

Returns items after the specified ID. Used for forward pagination through results.

Example: 411486491630370816
beforestring · flake-idOptional

Returns items before the specified ID. Used for backward pagination through results.

Example: 411486491630370816
ascbooleanOptional

Determines the sort order of returned items. When true, items are returned in ascending order. When false, items are returned in descending order.

Responses
chevron-right
200

OK

application/json
idstring · flake-idRequiredExample: 411486491630370816
pretty_idstringRead-onlyRequired

The human-readable formatted version of the override identifier.

store_idstring · flake-idRequiredExample: 411486491630370816
customer_idstring · flake-idRequiredExample: 411486491630370816
product_idstring · flake-idRequiredExample: 411486491630370816
product_namestringRequired

The name of the product associated with this override.

product_image_urlstring · nullableOptional

The URL of the product image, if available.

created_atstring · date-timeRequired

The date and time when this override was created.

expires_atstring · date-timeRequired

The date and time when this override expires and is no longer valid.

used_atstring · nullableOptional

The date and time when this override was used to start a trial, if applicable.

used_on_trial_idstring · flake-idOptionalExample: 411486491630370816
notestring · nullableOptional

An optional note or comment about this override.

deleted_atstring · nullableOptional

The date and time when this override was deleted, if applicable.

get
/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides

Create trial eligibility override for a customer

post

Creates a new trial eligibility override for the specified customer.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to create the trial eligibility override for.

Example: 411486491630370816
customerIdstring · flake-idRequired

The ID of the customer to create the trial eligibility override for.

Example: 411486491630370816
Body
product_idstring · flake-idRequiredExample: 411486491630370816
expires_atstring · date-timeRequired
notestringOptional
Responses
chevron-right
200

OK

application/json
idstring · flake-idRequiredExample: 411486491630370816
pretty_idstringRead-onlyRequired

The human-readable formatted version of the override identifier.

store_idstring · flake-idRequiredExample: 411486491630370816
customer_idstring · flake-idRequiredExample: 411486491630370816
product_idstring · flake-idRequiredExample: 411486491630370816
product_namestringRequired

The name of the product associated with this override.

product_image_urlstring · nullableOptional

The URL of the product image, if available.

created_atstring · date-timeRequired

The date and time when this override was created.

expires_atstring · date-timeRequired

The date and time when this override expires and is no longer valid.

used_atstring · nullableOptional

The date and time when this override was used to start a trial, if applicable.

used_on_trial_idstring · flake-idOptionalExample: 411486491630370816
notestring · nullableOptional

An optional note or comment about this override.

deleted_atstring · nullableOptional

The date and time when this override was deleted, if applicable.

post
/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides

Delete trial eligibility override for a customer

delete

Deletes an existing trial eligibility override.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to delete the trial eligibility override for.

Example: 411486491630370816
trialEligibilityOverrideIdstring · flake-idRequired

The ID of the trial eligibility override to delete.

Example: 411486491630370816
customerIdstringRequired
Responses
delete
/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides/{trialEligibilityOverrideId}

No content

Last updated

Was this helpful?