RateplanDetails

Schema

RateplanDetails
aggregateFreemiumCounters

boolean

Flag that specifies whether or not aggregate counters are enabled to determine if usage of an API product is in the free range. Aggregate counters must be enabled to set up a freemium plan for a product.

aggregateStandardCounters

boolean

Flag that specifies whether or not aggregate counters are used to determine the band of usage (such as a volume band for a rate card plan).

currency

object

id

string

ISO 4217 code for the currency, such as usd for United States dollar or chf for Swiss franc.

duration

number

Period of time for the aggregation basis, together with durationType. For example, set duration to 30 and durationType to DAY to specify an aggregation basis of 30 days.

durationType

string

Period of time for the aggregation basis, together with durationType. Valid values include: DAY, WEEK, MONTH, QUARTER, or YEAR.

freemiumDuration

integer

Period of time for the freemium period for an individual API product together with freemiumDurationType. For example, to specify that the freemium period is 30 days, set freemiumDuration to 30 and freemiumDurationType to DAY.

freemiumDurationType

string

Period of time for the freemium period for an individual API product together with freemiumDuration. Valid values include: DAY, WEEK, MONTH, QUARTER, or YEAR.

freemiumUnit

string

Freemium quantity for an API product. The value can be the number of transactions or the number of units pertaining to a custom attribute recorded in the transaction recording policy.

meteringType

string

Charging model for a rate card plan. Valid values include: UNIT (flat rate), VOLUME (volume-banded), STAIR_STEP (bundled), or DEV_SPECIFIC (adjustable notification revenue model only).

paymentDueDays

number

Payment due date for a postpaid developer. For example, set the value to 30 to indicate that payment is due in 30 days.

ratePlanRates

array

Rate plan rate details, such as the type of rate plan (REVSHARE or RATECARD), the rate for a rate card plan, the revenue share for a revenue share plan, and the range (starting unit and ending unit for which the rate plan rate applies).

RateplanRates
endUnit

number

End unit.

id

string

ID of the rate plan rate. Only valid and required when you are updating a draft rate plan rate.

rate

number

Rate for the rate card plan. Specify for RATECARD plans only.

revshare

number

Revenue share. Specify for REVSHARE plans only.

startUnit

number

Start unit.

type

string

Type of the rate plan. Valid values include: REVSHARE or RATECARD.

ratingParameter

string

Basis for the rate plan. The rate plan is based on transactions or on a custom attribute. Valid values include: VOLUME (based on volume of transactions) or MINT_CUSTOM_ATTRIBUTE_{num}. If you set it to MINT_CUSTOM_ATTRIBUTE_{num}, then the rate plan is based on a custom attribute, where {num} is an integer for example, MINT_CUSTOM_ATTRIBUTE_1. This value is defined in the transaction recording policy for the API product and is valid for rate card plans only. The custom attribute name cannot be defined as VOLUME.

ratingParameterUnit

string

Unit that applies to the ratingParameter.

revenueType

string

Basis of the revenue share in a revenue share plan. Valid values include: GROSS (based on percentage of the gross price of a transaction) and NET (based on a percentage of the net price of a transaction).

type

string

Revenue model for the plan. Valid values include: REVSHARE, RATECARD, REVSHARE_RATECARD, USAGE_TARGET (adjustable notifications).