Apigee uses the monetization variables for rating, calculating revenue share, and analytics. If
you want your Apigee analytics to show the monetization information. By using the monetization
variables, you can enhance the monetization capabilities of your transactions.
Monetization variables
The monetization variable names are predefined, and you can't create, edit,
or delete the variables. You can assign either request or response variables to the
monetization variables.
This table describes the monetization variables available in Apigee:
Monetization variable
Data type
Description
currency
String
Specifies the currency for calculating the revenue from a transaction.
perUnitPriceMultiplier
Float
Specifies the factor (multiplier) by which the per-transaction cost is multiplied.
The per-transaction cost is specified in the rate plan's
Consumption-based fees pricing.
The multiplication is performed for a transaction only if the transaction is
monetizable. A transaction is monetizable if any one of the following condition
is satisfied:
If the transactionSuccess variable is true.
If the transactionSuccess variable is NULL and
the message.status.code is 2xx (success).
revShareGrossPrice
Float
Specifies the revenue of the transaction for calculating the developer's share. Apigee calculates
the developer's share only if you have enabled revenue sharing in your rate plan.
transactionSuccess
boolean
Specifies if the transaction should be monetized.
If the variable is set to true, the transaction is monetized.
If the variable is set to false, the transaction is not monetized.
If you don't specify this variable, the transactions are monetization based on the
value of the HTTP status code available in the message.status.code variable.
If the HTTP status code of the response is NULL or >=300, a
transaction is not monetized; for all other status codes, the transaction is monetized.
Value assignment examples
The following examples show how to assign values to the monetization variables:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This documentation covers monetization variables for Apigee and Apigee hybrid, which are used for rating, calculating revenue share, and analytics within the platform."],["Monetization variable names are predefined and cannot be created, edited, or deleted, but you can assign either request or response variables to them, and override them via the DataCapture policy."],["There are four main monetization variables: `currency`, `perUnitPriceMultiplier`, `revShareGrossPrice`, and `transactionSuccess`, each with specific data types and purposes related to transaction monetization and revenue sharing."],["The `transactionSuccess` variable determines if a transaction should be monetized, based on its boolean value or, if not set, on the HTTP status code."],["Examples are provided, demonstrating how to assign values to each of the monetization variables using the DataCapture policy, pulling data from JSON payloads and response headers."]]],[]]