{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Monetization /
This question was closed Oct 28, 2016 at 07:51 PM by akhimich for the following reason: The question is answered, right answer was accepted
avatar image
2
Question by Jarosław Wojtalik · Apr 28, 2016 at 09:37 AM · 1.6k Views monetize

Why Monetization module limits are not applied/checked correctly?

Hello Apigee Community,

I have Monetization module configured in SaaS environment and custom limits created (limiting amount of calls made to API Proxys in product). But it seems like custom limits are being ignored while checking monetization limits policy.

Here is an example limit:

I have Monetization Limits Check policy attached to Proxy on which I want to limit amount of calls made. I attached AX logs(ax-log.pdf) from successful call made to this API Proxy (this proxy in used only in Service Callouts, calls are made by other Proxys).

Transaction Recording Policy for product:

Rate Plan (with only Rate Card and custom Currency) for product, purchased by developer:

Developer to register an app needs to:

1. fill company details and accept Terms & Conditions

2. purchase rate plan

3. only after this he can choose correct product, while registering an app

After his app is registered, limits are not applied on this app (no error messages). I think that this question may be similar to this one: monetization-limit-check-not-erroring-out.

What needs to be changed, for limits(with notifications) to be applied correctly? I also cannot generate billing reports, do I have to wait at least one month for them to be available?

limit-example.png (21.3 kB)
trtansaction-policy.png (31.5 kB)
rate-plan.png (44.3 kB)
ax-log.pdf (245.0 kB)
Comment
Add comment Show 2
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image akhimich ♦♦ · Oct 27, 2016 at 07:37 PM 0
Link

Is this question answered?

avatar image Jarosław Wojtalik akhimich ♦♦ · Oct 28, 2016 at 06:37 AM 0
Link

Yes, it is, it was misconfiguration in environment, I accepted your previous answer.

Close

3 Answers

  • Sort: 
avatar image
1
Best Answer

Answer by akhimich · Jun 01, 2016 at 09:46 PM

If you don't have any other records in 'transacion' table except that one probably:

a) Env is miss configured and there is no rating happens at all.

b) Check if developer has accepted the rate plan.

Comment
Add comment Show 1 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jarosław Wojtalik · Oct 24, 2016 at 09:21 AM 0
Link

I should have closed this ticket along time ago, the environment was indeed incorrectly installed.

avatar image
1

Answer by arghya das · Apr 29, 2016 at 04:56 AM

@Jarosław Wojtalik Monetization limits are applied to calls that are rated correctly. In this case, I see that you have setup transaction limit of 10 per day. This means this would allow 10 transaction for ANY developer or ANY app. Next, let's move on to your transaction recording policy. As per this policy configuration you are actually telling the system that mark the transaction as SUCCESS is the status received is OK from your transaction recording policy. So once these transactions are pushed to the monetization rating engine, monetization rating server would try to rate this transactions. The limit counters are incremented only if the rating is successful and the transactions is marked as SUCCESS.

If rating fails, then the status would be marked as FAILED or REVIEW depending on the reason for failure. One of the common reasons is that the developer doesn't have an active rateplan, in this case the transaction gets marked as REVIEW. Other reasons why rating might fail is due to transaction recording policy itself failing or the status is not OK, which doesn't match your txProviderStatus condition. In all these cases, the api call goes through but the rating fails, which means the limit counter would not get incremented and your limit policy would always allow more calls since the limit counter never gets incremented.

Ideally you should be able to query the transaction table in the monetization DB and check if your transactions have status=SUCCESS. If you are on Apigee's public cloud you would need to raise a support ticket and work with our support team to get this resolved since you won't have access to the database. If you are on-premise then you should be able to make these queries yourself as long as you have the credentials and system details.

To answer your second question, yes you cannot generate billing reports till the current month is closed. In the meantime you can use the reports section to generate transaction reports for developer or app or other such combinations using the apis as well as the monetization reports UI.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Jarosław Wojtalik · May 23, 2016 at 12:55 PM

Hi @arghya das I read explanation in your post and I wanted to update my question (because now I am in private cloud environment). I have configured similar limits as in previous post and tried your suggestion with querying Transaction table, but I did not find my answer there, I still do not know what am I doing incorrectly. I am attaching document : monetization-details.pdf in which my Monetization settings are described. At the end of this document, values from transaction table related to selected package are added. Do you have any idea why limits are not applied correctly?


monetization-details.pdf (464.4 kB)
Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

29 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Moving a developer to a different product package 1 Answer

how generate billing report with total sum paid ? 2 Answers

Error creating a rate plan through the API 1 Answer

Credit limits for monetisation - POSTPAID 2 Answers

Monetization by processing time or amount of data 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges