Skip to main content

V1PlansBody

Properties

NameTypeRequiredDescription
currencystrThree-letter ISO 4217 code for the currency used in fields that represent monetary amounts. Uppercase.
intervalstrSpecifies the units used in defining the billing cycle.
productstrID of the 'product' object that this plan is for. The product must have type set to service.
aggregate_usagestrDetermines which quantity is used to calculate the pricing. Relevant when usage_type is metered. Default is sum.
amountfloatThe amount to charge in the billing cycle. For a free service, use 0. Relevant when billing_scheme is set to per_unit. When the billing_scheme is set to tiered, set the amount in the tiers array.
billing_schemestrDescribes how to compute the price per billing period. One of the following values - per_unit, tiered
id_strUnique ID for this payment plan. English alphanumeric characters and underscore. Limited to 44 characters. If the merchant does not define an ID, Rapyd generates a string starting with plan_.
interval_countfloatNumber of intervals in the billing cycle. Default is 1.
metadatadictA JSON object defined by the client.
nicknamestrBrief description of the pricing plan.
tiersstrDefines a tiered pricing structure. Array of objects. Must be null when billing_scheme is set to per_unit.
tiers_modestrDetermines the mode for calculating the total tiered charge.
transform_usagedictDefines the transformation that is applied to the reported usage before the billed price is computed.
trial_period_daysfloatSpecifies the number of days before charges begin to accrue. Use this parameter to define a free trial period for a service.
usage_typestrDetermines whether the customer is billed when the service is not actually used. One of the following values - metered, licensed

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →