How to implement Monetization Limits Check Policy correctly?

Hi everyone,

I created package, rate plan, and transaction recording policy. All based on Apigee Monetization Documentation. But, I haven't make the developer accept the rate plan on purpose.

So, all the incoming request from the corresponding developer should returned error from monetization limits check policy.

However, it didn't return error. Instead, the API proxy I created returned 200 OK.

I tried to synchronize Apigee Edge data with monetization, but it didn't change anything.

What should I do?

Below is my proxy bundle:

test-monet-rev1-2018-06-22.zip

Regards,

Yoga

0 2 391
2 REPLIES 2

Your MonetizationLimitsCheck policy is set to use the currency variable, however I don't think this variable is set anywhere before the check.

Actually I set it in Assign Message Policy prior to Monetization Limits Check Policy. So, I don't think this caused the issue.