- Resource: RatePlan
- BillingPeriod
- PaymentFundingModel
- Money
- ConsumptionPricingType
- RateRange
- RevenueShareType
- RevenueShareRange
- State
- Methods
Resource: RatePlan
Rate plan details.
JSON representation |
---|
{ "name": string, "apiproduct": string, "displayName": string, "description": string, "billingPeriod": enum ( |
Fields | |
---|---|
name |
Output only. Name of the rate plan. |
apiproduct |
Name of the API product that the rate plan is associated with. |
displayName |
Display name of the rate plan. |
description |
Description of the rate plan. |
billingPeriod |
Frequency at which the customer will be billed. |
paymentFundingModel |
DEPRECATED: This field is no longer supported and will eventually be removed when Apigee Hybrid 1.5/1.6 is no longer supported. Instead, use the Flag that specifies the billing account type, prepaid or postpaid. |
currencyCode |
Currency to be used for billing. Consists of a three-letter code as defined by the ISO 4217 standard. |
setupFee |
Initial, one-time fee paid when purchasing the API product. |
fixedRecurringFee |
Fixed amount that is charged at a defined interval and billed in advance of use of the API product. The fee will be prorated for the first billing period. |
fixedFeeFrequency |
Frequency at which the fixed fee is charged. |
consumptionPricingType |
Pricing model used for consumption-based charges. |
consumptionPricingRates[] |
API call volume ranges and the fees charged when the total number of API calls is within a given range. The method used to calculate the final fee depends on the selected pricing model. For example, if the pricing model is
Then the following fees would be charged based on the total number of API calls (assuming the currency selected is
The number of API calls cannot exceed 200. |
revenueShareType |
Method used to calculate the revenue that is shared with developers. |
revenueShareRates[] |
Details of the revenue sharing model. |
state |
Current state of the rate plan (draft or published). |
startTime |
Time when the rate plan becomes active in milliseconds since epoch. |
endTime |
Time when the rate plan will expire in milliseconds since epoch. Set to 0 or |
createdAt |
Output only. Time that the rate plan was created in milliseconds since epoch. |
lastModifiedAt |
Output only. Time the rate plan was last modified in milliseconds since epoch. |
BillingPeriod
Billing period that defines the frequency at which the customer will be billed.
Enums | |
---|---|
BILLING_PERIOD_UNSPECIFIED |
Billing period not specified. |
WEEKLY |
Weekly billing period. Note: Not supported by Apigee at this time. |
MONTHLY |
Monthly billing period. |
PaymentFundingModel
Billing account type.
Enums | |
---|---|
PAYMENT_FUNDING_MODEL_UNSPECIFIED |
Billing account type not specified. |
PREPAID |
Prepaid billing account type. Developer pays in advance for the use of your API products. Funds are deducted from their prepaid account balance. Note: Not supported by Apigee at this time. |
POSTPAID |
Postpaid billing account type. Developer is billed through an invoice after using your API products. |
Money
Represents an amount of money with its currency type.
JSON representation |
---|
{ "currencyCode": string, "units": string, "nanos": integer } |
Fields | |
---|---|
currencyCode |
The three-letter currency code defined in ISO 4217. |
units |
The whole units of the amount. For example if |
nanos |
Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If |
ConsumptionPricingType
Pricing models used for consumption-based charges.
Enums | |
---|---|
CONSUMPTION_PRICING_TYPE_UNSPECIFIED |
Pricing model not specified. This is the default. |
FIXED_PER_UNIT |
Fixed rate charged for each API call. |
BANDED |
Variable rate charged for each API call based on price tiers. Example:
Note: Not supported by Apigee at this time. |
TIERED |
Note: Not supported by Apigee at this time. |
STAIRSTEP |
Note: Not supported by Apigee at this time. |
RateRange
API call volume range and the fees charged when the total number of API calls is within the range.
JSON representation |
---|
{
"start": string,
"end": string,
"fee": {
object ( |
Fields | |
---|---|
start |
Starting value of the range. Set to 0 or |
end |
Ending value of the range. Set to 0 or |
fee |
Fee to charge when total number of API calls falls within this range. |
State
State of the rate plan.
Enums | |
---|---|
STATE_UNSPECIFIED |
State of the rate plan is not specified. |
DRAFT |
Rate plan is in draft mode and only visible to API providers. |
PUBLISHED |
Rate plan is published and will become visible to developers for the configured duration (between startTime and endTime ). |
Methods |
|
---|---|
|
Create a rate plan that is associated with an API product in an organization. |
|
Deletes a rate plan. |
|
Gets the details of a rate plan. |
|
Lists all the rate plans for an API product. |
|
Updates an existing rate plan. |