[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003eThis page provides debugging information for Apigee and Apigee hybrid monetization features.\u003c/p\u003e\n"],["\u003cp\u003eThe VerifyAPIKey policy phase checks for active published rate plans and populates flow variables such as \u003ccode\u003emint.mintng_is_apiproduct_monetized\u003c/code\u003e, \u003ccode\u003emint.mintng_rate_plan_id\u003c/code\u003e, and others if a plan is found.\u003c/p\u003e\n"],["\u003cp\u003eThe MonetizationLimitsCheck policy phase enforces developer subscriptions, setting flow variables like \u003ccode\u003emint.limitscheck.is_request_blocked\u003c/code\u003e and \u003ccode\u003emint.limitscheck.is_subscription_found\u003c/code\u003e to indicate subscription status.\u003c/p\u003e\n"],["\u003cp\u003eThe Quota policy enforces API product request limits, returning a \u003ccode\u003e429\u003c/code\u003e error if exceeded, while populating \u003ccode\u003eratelimit.*\u003c/code\u003e flow variables for details.\u003c/p\u003e\n"],["\u003cp\u003eThe DataCapture policy populates flow variables like \u003ccode\u003emint.mintng_currency\u003c/code\u003e, \u003ccode\u003emint.mintng_price\u003c/code\u003e to calculate the revenue generated, while variables like \u003ccode\u003emint.mintng_consumption_pricing_rates\u003c/code\u003e and \u003ccode\u003emint.mintng_dev_share\u003c/code\u003e are populated on successful execution to provide details on the monetization-based consumption.\u003c/p\u003e\n"]]],[],null,["# Debugging monetization using the Debug tool\n\n*This page\napplies to **Apigee** and **Apigee hybrid**.*\n\n\n*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*\n\n\nDebug monetization using Debug as described in the following sections.\n\nDebugging the authentication policy phase\n-----------------------------------------\n\n\nApigee monetization uses the VerifyAPIKey or VerifyAccessToken policy to\ndetermine if an incoming request is monetizable by checking for the active published rate plan.\nFor more information about adding the policy, see [Adding an authentication policy](/apigee/docs/api-platform/monetization/enforce-monetization-limits#auth).\n\n\nFor example, the following image shows the details of the VerifyAPIKey policy phase in the request flow.\n\n\nAfter authenticating the user, the VerifyAPIKey policy checks all published rate plans to determine which, if any, is active based on their activation and expiration times.\nIf an active published rate plan is found, the following flow variables are populated:\n\n\nIf no active published rate plan is found, the `mint.mintng_is_apiproduct_monetized` flow variable is set to `false` and the additional flow\nvariables are not populated.\n\nFor more information, see [mint](/apigee/docs/api-platform/reference/variables-reference#mint) flow variables.\n\nDebugging the MonetizationLimitsCheck policy phase\n--------------------------------------------------\n\n\nApigee monetization uses the MonetizationLimitsCheck policy to enforce developer subscriptions to the API product.\nFor more information about adding the policy, see [Enforcing developer subscriptions to API products](/apigee/docs/api-platform/monetization/enforce-monetization-limits#subscriptions).\n| **Note:** The MonetizationLimitsCheck policy has no effect if no active published rate plan is found and the `mint.mintng_is_apiproduct_monetized` flow variable is set to `false`.\n\n\nFor example, the following image shows the details of the MonetizationLimitsCheck policy phase in the request flow.\n\n\nIf the developer purchased a subscription to the API product, the following flow variables are populated:\n\nIf the developer did not purchase a subscription to the API product:\n\n- `mint.limitscheck_is_subscription_found` flow variable is set to `false`\n- `mint.limitscheck.is_request_blocked` is set to `true`\n- No other flow variables are populated.\n\nFor more information, see [mint](/apigee/docs/api-platform/reference/variables-reference#mint) flow variables.\n\nDebugging the Quota policy phase\n--------------------------------\n\n\nApigee monetization uses the Quota policy to enforce the quotas defined at the API product level. Quotas define the number of requests allowed for an API product\nover a given time period. For more information about the adding the policy, see [Enforcing monetization quotas in an API proxies](/apigee/docs/api-platform/monetization/enforce-monetization-limits#quotas).\n| **Note:** The MonetizationLimitsCheck policy has no effect if no active published rate plan is found and the `mint.mintng_is_apiproduct_monetized` flow variable is set to `false`.\n\n\nFor example, the following image shows the details of the Quota policy phase in the request flow where the quota has been exceeded.\n\n\nIn this example, the quota has been exceeded, an HTTP `429 Too Many Requests` status is returned, and the flow `ratelimit.*` flow\nvariables are populated to provide more details about the quota exception. For a description of the `ratelimit.*`, see the [Quota policy flow variables](/apigee/docs/api-platform/reference/policies/quota-policy#variables).\n\n\nDebugging the DataCapture policy phase\n--------------------------------------\n\nApigee uses the monetization variables captured by the DataCapture policy for rating,\ncalculating revenue share, and analytics. For more information about the capturing the\nmonetization variables in the policy,\nsee [Capturing monetization data](/apigee/docs/api-platform/monetization/capture-monetization-data).\n\nFor example, the following image shows the details of the DataCapture policy execution phase in the response flow.\n\n\nIf there are no errors when capturing the monetization variables, the following flow variables are populated for a transaction:\n\nDebugging the monetized API proxy execution phase\n-------------------------------------------------\n\nAfter the successful execution of the monetized API proxy, a set of flow variables are populated\nwith information about the monetization consumption-based fees and rates charged.\n\nFor example, the following image shows the details of the **Proxy Execution** phase in the\nPostClient flow where the variables are populated.\n\n\nIf the monetized API proxy execution succeeds, the following flow variables are populated:\n\nFor a detailed description of all the variables,\nsee [mint flow variables](/apigee/docs/api-platform/reference/variables-reference#mint)."]]