Rate Cards
ModelsExpand Collapse
class AmountInput: …
The currency code of the amount.
value: Union[float, str]The value of the amount in the smallest unit of the currency.
The value of the amount in the smallest unit of the currency.
class FlatPriceInput: …Flat price is a price that linearly scales with the quantity.
Flat price is a price that linearly scales with the quantity.
The currency code of the amount.
value: Union[float, str]The value of the amount in the smallest unit of the currency.
The value of the amount in the smallest unit of the currency.
price_type: Optional[Literal["flat"]]
class FlatPriceOutput: …Flat price is a price that linearly scales with the quantity.
Flat price is a price that linearly scales with the quantity.
The currency code of the amount.
The value of the amount in the smallest unit of the currency.
price_type: Optional[Literal["flat"]]
class PackagePriceInput: …Package price is a price that is charged for a fixed number of units. For example, $10 per 1000 units. If the quantity is not a multiple of the package units, the rounding behavior will be applied.
Package price is a price that is charged for a fixed number of units. For example, $10 per 1000 units. If the quantity is not a multiple of the package units, the rounding behavior will be applied.
The currency code of the amount.
value: Union[float, str]The value of the amount in the smallest unit of the currency.
The value of the amount in the smallest unit of the currency.
rounding_behavior: Literal["round_up", "round_down"]
price_type: Optional[Literal["package"]]
class PackagePriceOutput: …Package price is a price that is charged for a fixed number of units. For example, $10 per 1000 units. If the quantity is not a multiple of the package units, the rounding behavior will be applied.
Package price is a price that is charged for a fixed number of units. For example, $10 per 1000 units. If the quantity is not a multiple of the package units, the rounding behavior will be applied.
The currency code of the amount.
The value of the amount in the smallest unit of the currency.
rounding_behavior: Literal["round_up", "round_down"]
price_type: Optional[Literal["package"]]
class RateCardResource: …
The ID of the rate card.
billing_interval: Literal["monthly", "yearly"]How often the customer will be billed for this rate card.
How often the customer will be billed for this rate card.
The date and time the rate card was created.
fixed_rates: List[FixedRate]The fixed rates of the rate card.
The fixed rates of the rate card.
price: FixedRatePriceFlat price is a price that linearly scales with the quantity.
Flat price is a price that linearly scales with the quantity.
class FlatPriceOutput: …Flat price is a price that linearly scales with the quantity.
Flat price is a price that linearly scales with the quantity.
The currency code of the amount.
The value of the amount in the smallest unit of the currency.
price_type: Optional[Literal["flat"]]
class PackagePriceOutput: …Package price is a price that is charged for a fixed number of units. For example, $10 per 1000 units. If the quantity is not a multiple of the package units, the rounding behavior will be applied.
Package price is a price that is charged for a fixed number of units. For example, $10 per 1000 units. If the quantity is not a multiple of the package units, the rounding behavior will be applied.
The currency code of the amount.
The value of the amount in the smallest unit of the currency.
rounding_behavior: Literal["round_up", "round_down"]
price_type: Optional[Literal["package"]]
Additional metadata about the rate card. You may use this to store any custom data about the rate card.
The name of the rate card.
The date and time the rate card was last updated.
usage_based_rates: List[UsageBasedRate]The usage based rates of the rate card.
The usage based rates of the rate card.
class UsageBasedRateSimpleUsageBasedRateInterface: …
price: UsageBasedRateSimpleUsageBasedRateInterfacePriceFlat price is a price that linearly scales with the quantity.
Flat price is a price that linearly scales with the quantity.
class FlatPriceOutput: …Flat price is a price that linearly scales with the quantity.
Flat price is a price that linearly scales with the quantity.
The currency code of the amount.
The value of the amount in the smallest unit of the currency.
price_type: Optional[Literal["flat"]]
class PackagePriceOutput: …Package price is a price that is charged for a fixed number of units. For example, $10 per 1000 units. If the quantity is not a multiple of the package units, the rounding behavior will be applied.
Package price is a price that is charged for a fixed number of units. For example, $10 per 1000 units. If the quantity is not a multiple of the package units, the rounding behavior will be applied.
The currency code of the amount.
The value of the amount in the smallest unit of the currency.
rounding_behavior: Literal["round_up", "round_down"]
price_type: Optional[Literal["package"]]
usage_based_rate_type: Optional[Literal["simple"]]
class UsageBasedRateDimensionalUsageBasedRateInterface: …
dimensions: List[UsageBasedRateDimensionalUsageBasedRateInterfaceDimension]
pricing_matrix: UsageBasedRateDimensionalUsageBasedRateInterfacePricingMatrix
cells: List[UsageBasedRateDimensionalUsageBasedRateInterfacePricingMatrixCell]
price: UsageBasedRateDimensionalUsageBasedRateInterfacePricingMatrixCellPriceFlat price is a price that linearly scales with the quantity.
Flat price is a price that linearly scales with the quantity.
class FlatPriceOutput: …Flat price is a price that linearly scales with the quantity.
Flat price is a price that linearly scales with the quantity.
The currency code of the amount.
The value of the amount in the smallest unit of the currency.
price_type: Optional[Literal["flat"]]
class PackagePriceOutput: …Package price is a price that is charged for a fixed number of units. For example, $10 per 1000 units. If the quantity is not a multiple of the package units, the rounding behavior will be applied.
Package price is a price that is charged for a fixed number of units. For example, $10 per 1000 units. If the quantity is not a multiple of the package units, the rounding behavior will be applied.
The currency code of the amount.
The value of the amount in the smallest unit of the currency.
rounding_behavior: Literal["round_up", "round_down"]
price_type: Optional[Literal["package"]]
usage_based_rate_type: Optional[Literal["dimensional"]]
The description of the rate card.