Notify when Depleted Freemium Rate Plan

Not applicable

Hi there,

I want to notify the Developer and the API provider that a specific Freemium Rate plan is about to finish or that it finished. How can I do this?

I tried this through Management UI and checked "Depleted Freemium Rate Plan". I entered some text, but when I save the "Updating..." I get an Error Popup:

3290-errornotificationdepletedfreemiumrateplan.png

Can you please help me?

Solved Solved
0 4 178
1 ACCEPTED SOLUTION

rajanish
Participant III

Thanks Emilia,

unfortunately there is an issue on UI which is causing the error. While we are getting it fixed you could use api to setup the notifications for freemium used up.
Below is 2 step process for setting up

POST https://api.enterprise.apigee.com/v1/mint/organizations/{ORG_NAME}/notification-email-templates
<br>Header - Content-Type : application/json<br><br>{ "name": "DEFAULT_FREEMIUM_USED_UP", "subject": "Freemium used up for ", "htmlImage": "<p>${developer.legalName} , ${developer.name} have used the available freemium in plan ${ratePlan.displayName} ", "source": "Manual setup" }

Capture the id from the response, which is then used in next step

example : "id": "5198ab26-ce1b-43d0-8e86-a96b2c45f32e",

POST https://api.enterprise.apigee.com/v1/mint/organizations/{ORG_NAME}/notification-conditions<br>Header - Content-Type : application/json<br><br>{
    "notificationCondition": [
      {
        "attribute": "FREEMIUM_USED_UP",
        "value": "TRUE"
      },
      {
        "attribute": "PUBLISHED",
        "value": "TRUE"
      }

    ],
   "actions": [{
          "actionAttribute": "DEV_ID",
          "value": "ANY",
          "templateId": "5198ab26-ce1b-43d0-8e86-a96b2c45f32e" 
        }]
  }

tempateId is the id captured in step 1

The UI issue will be fixed in asap(probably in next 2 weeks).

View solution in original post

4 REPLIES 4

Not applicable

rajanish
Participant III

This could be a org configuration issue, I can take a look at it.

if you are using clould, Can you provide the org name you are using.

or else if its opdk, Can you provide the version and steps performed during installation.

@rajanish@apigee.com

, I have this problem on the Apigee Cloud with organization emea-demo5.

Let me know if you need more information.

rajanish
Participant III

Thanks Emilia,

unfortunately there is an issue on UI which is causing the error. While we are getting it fixed you could use api to setup the notifications for freemium used up.
Below is 2 step process for setting up

POST https://api.enterprise.apigee.com/v1/mint/organizations/{ORG_NAME}/notification-email-templates
<br>Header - Content-Type : application/json<br><br>{ "name": "DEFAULT_FREEMIUM_USED_UP", "subject": "Freemium used up for ", "htmlImage": "<p>${developer.legalName} , ${developer.name} have used the available freemium in plan ${ratePlan.displayName} ", "source": "Manual setup" }

Capture the id from the response, which is then used in next step

example : "id": "5198ab26-ce1b-43d0-8e86-a96b2c45f32e",

POST https://api.enterprise.apigee.com/v1/mint/organizations/{ORG_NAME}/notification-conditions<br>Header - Content-Type : application/json<br><br>{
    "notificationCondition": [
      {
        "attribute": "FREEMIUM_USED_UP",
        "value": "TRUE"
      },
      {
        "attribute": "PUBLISHED",
        "value": "TRUE"
      }

    ],
   "actions": [{
          "actionAttribute": "DEV_ID",
          "value": "ANY",
          "templateId": "5198ab26-ce1b-43d0-8e86-a96b2c45f32e" 
        }]
  }

tempateId is the id captured in step 1

The UI issue will be fixed in asap(probably in next 2 weeks).