{ 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 /
avatar image
0
Question by Vijay Muralitharan · Jun 24, 2020 at 10:16 AM · 79 Views apigee edge

Not able to enforce monetization

HI All

I have created

API proxy(with "Monetization Limits Check" policy preceded by APIKey validation policy) and API Product

Product Bundle(With transaction recording policy)

with txProviderStatus=='success' and

Response location as Header and Header name as 'status'

And the Header status == 'success' is set in the API response flow using assign message

and created a Rate plan.

Created two developers and apps

Developer-A >> App-A

Developer-B >> App-B

Then purchased the rate plan for Developer-A using API (https://api.enterprise.apigee.com/v1/mint/organizations/{ord}/developers/{developerid}/developer-rateplans

(since i could not find an option in UI)

upon invoking the API,the API is successful using the App Keys of both App-A and App-B

When the expectation was the App-B would have been rejected since the Developer-B has not purchased a Rate plan

Please let me know what am i missing here

Comment
Add comment
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

Close

1 Answer

  • Sort: 
avatar image
0
Best Answer

Answer by rajanish · Jun 24, 2020 at 11:31 AM

The steps followed seems to be right and expectations mentioned also seems to be right.

In order to further debug,

can you trace the api call and check the following in the ax execution - refer screenshot mint.png

  1. api product is correctly resolved in mint.tx.prod_id
  2. mint.tx.status is correctly resolved to status variable, in your case 'success' (Header status == 'success')
  3. make sure mint.tx.ignoreMessage is set to false - This will be set to false most probably if one of the two conditions above is not met.

Check reports

you can also make revenue reports api call to check if prod A is really captured in reports

https://docs.apigee.com/api-platform/monetization/create-reports#reptransactapi

alternatively use revenue reports api

curl --request POST 'https://api.enterprise.apigee.net/v1/mint/organizations/{org}/developers/{dev}/revenue-reports' \ 
--header 'Content-type: application/json' \ 
--data-raw '{ "fromDate":"2020-06-22", "toDate":"2020-06-24", "showSummary":true, "currencyOption":"USD", "groupBy":["PACKAGE","PRODUCT","DEVELOPER","APPLICATION"] }'

mint.png (203.2 kB)
Comment
Add comment Show 2 · 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 Vijay Muralitharan · Jun 24, 2020 at 11:47 AM 0
Link

Hi Rajanish, thanks for the response

Please find the results below

These are for the Developer B which has not purchased any plan

mint.tx.ignoreMessage false
mint.tx.prod_id Monetize_Product_1
mint.tx.status success

And the report says it didn't find any matching transactions

avatar image rajanish Vijay Muralitharan · Jun 25, 2020 at 04:30 AM 0
Link

I think you might be running into some kind of monetization provisioning issue unfortunately !! is your organization newly provisioned ? Please create support ticket with org/proxy and all the details you already mentioned here.

Follow this Question

Answers Answers and Comments

120 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 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 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 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 avatar image avatar image avatar image avatar image

Related Questions

Apigee Monetization Developer Credits Issue 0 Answers

[Monetization] Usage and amount response parameters in managed prepaid/postpaid balance API 0 Answers

Calculate monetization billing based on amount of transaction 0 Answers

How can I edit or delete a rate plan in the Monetization module? 1 Answer

Possibility of updating (adding products) to an existing rate plan 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