Hi,
I have a rate plan configured with Freemium limit of 20 API calls or 2 months whichever comes first.
My monetization limit check step is configured as follows -
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MonetizationLimitsCheck enabled="true" continueOnError="false" async="false" name="Monetization-limits-check">
<DisplayName>Monetization-limits-check</DisplayName>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
<Properties/>
<Variables>
<ClientId>apigeeClientId</ClientId>
</Variables>
<FaultResponse>
<Set>
<Headers/>
<Payload contentType="application/json;charset=UTF-8">
{
"errors": {
"error": [
{
"description": "Key Suspended - Limit exceeded",
"code": 4000
}
]
}
}
</Payload>
<StatusCode>429</StatusCode>
<ReasonPhrase>Too Many Requests</ReasonPhrase>
</Set>
</FaultResponse>
</MonetizationLimitsCheck>
When a user subscribed to the above rate plan attempts to go beyond the 20 request limit, he does not get an error for crossing the Freemium threshold.
The same monetization policy works fine when the rate plan is configured as a rate plan with volume banded.
Can you please suggest if any additional policy or steps need to be added to check the freemium usage limits via the Monetization limit check step? or something needs to be fixed,
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |