Skip to content

Stripe: Product catalog schemas

6 Stripe schemas with complete fields and constraints.

← Product catalog operations · All schemas

Create a trial offer — response body

FieldTypePresenceDescription and constraints
$objectRootTrial offers let you define free or paid introductory pricing for a subscription item.
A TrialOffer specifies the price to charge during the trial, how many billing intervals
the trial lasts, and what price the subscription item transitions to when the trial ends.
You attach a TrialOffer to a subscription item
using `items[current_trial][trial_offer]` when creating or updating a subscription.
activebooleanRequired within parentWhether the trial offer is active. Set to false to archive the trial offer.
durationModelRequired within parentExpand Create a trial offer — response body — duration
end_behaviorModelRequired within parentExpand Create a trial offer — response body — end behavior
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
nicknameJSONOptional
nickname (anyOf 1)stringAlternativeA brief description of the trial offer, hidden from customers.
Maximum length: 255
nickname (anyOf 2)nullAlternative
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: product_catalog.trial_offer
priceJSONRequired within parentThe price during the trial offer.
price (anyOf 1)stringAlternativeMaximum length: 5000
price (anyOf 2)ModelAlternativeExpand Create a price — response body
price (anyOf 3)ModelAlternativeExpand Create a trial offer — response body — price / deleted: True, object: price

Referenced models: Create a trial offer — response body — price / deleted: True, object: price, Create a price — response body, Create a trial offer — response body — duration, Create a trial offer — response body — end behavior

Create a trial offer — response body — duration

FieldTypePresenceDescription and constraints
$objectRoot
relativeModelOptionalExpand Create a trial offer — response body — duration relative
typestringRequired within parentThe type of trial offer duration.
Known values: relative

Referenced models: Create a trial offer — response body — duration relative

Create a trial offer — response body — duration relative

FieldTypePresenceDescription and constraints
$objectRoot
iterationsJSONRequired within parent
iterations (anyOf 1)integerAlternativeThe number of iterations of the price's interval for this trial offer.
iterations (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Create a trial offer — response body — end behavior

FieldTypePresenceDescription and constraints
$objectRoot
transitionModelOptionalExpand Create a trial offer — response body — end behavior transition
typestringRequired within parentThe type of behavior when the trial offer ends.
Known values: transition

Referenced models: Create a trial offer — response body — end behavior transition

Create a trial offer — response body — end behavior transition

FieldTypePresenceDescription and constraints
$objectRoot
priceJSONRequired within parentThe new price to use at the end of the trial offer period.
price (anyOf 1)stringAlternativeMaximum length: 5000
price (anyOf 2)ModelAlternativeExpand Create a price — response body
price (anyOf 3)ModelAlternativeExpand Create a trial offer — response body — price / deleted: True, object: price

Referenced models: Create a trial offer — response body — price / deleted: True, object: price, Create a price — response body

Create a trial offer — response body — price / deleted: True, object: price

FieldTypePresenceDescription and constraints
$objectRoot
deletedbooleanRequired within parentAlways true for a deleted object
Known values: True
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: price

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.