Panelr

Verify Trial

POST ?action=verify_trial

Validates a trial code and returns the associated activation context. Use this to power a trial upgrade flow — verify the code first, then pass the activation_id and selected product to create_renewal.

Request Parameters

FieldTypeRequiredDescription
trial_codestringRequiredone of these twoTrial code issued to the customer
activation_tokenstringRequiredone of these twoThe long token from the trial's own links — what Panelr's trial-upgrade redirect hands your store as ?t=…

Response Fields

FieldTypeDescription
trial_request_idintegerTrial request ID
activation_idintegerActivation ID linked to this trial
customer_emailstringCustomer email address
customer_namestringCustomer full name
expiration_datestring|nullTrial expiration datetime UTC
connectionsintegerNumber of connections on the current trial line
eligible_productsarrayActive non-trial products available for upgrade — see Product Object below. Only plans from the same service as the line — a renewal cannot cross services

Product Object

FieldTypeDescription
idintegerProduct ID
namestringProduct name
alternate_namestring|nullAlternate display name
price_decimalfloatProduct price
currencystringCurrency code e.g. USD
duration_monthsintegerSubscription duration in months
connectionsintegerNumber of simultaneous connections