Can I configure Monetization email notifications when developer currency balance gets low?

Not applicable

Hi Apigee Community,

We have installed Apigee Edge On Premise v.4.16.09.00.

I was trying to configure Monetization notifications using APIs from documentation page (http://docs.apigee.com/monetization/content/set-up-notification-templates#settingupnotificationsusingtheapi).

I created some email template for this using one of the APIs by sending POST request:

curl -X POST \
  http://{ms_server}/v1/mint/organizations/{org_name}/notification-email-templates \
  -H 'authorization: {auth}' \
  -H 'content-type: application/json' \
  -d '{
    "htmlImage" : "<p>Dear ${developer.legalName} , ${developer.name} <br /> It seems like quota type: ${QUOTA_TYPE}, unit: ${QUOTA_UNIT}, limit: ${QUOTA_LIMIT} balance: ${BALANCE} app products: ${application.products.name}</p>",
    "name" : "TEST_TEST",
    "orgId" : "test1",
    "source" : "test src",
    "subject" : "Test_Test"
}'

and after that I was trying to create some conditions which will trigger notification being sent when developer reaches specified number of used transactions or his balance becomes lower than some amount of currency.

It worked when I was trying to set up notification for specific rate plan which will trigger after specific number of transactions was made.

However I have a question if it is possible to send notification to either developer or org_admins when developer's balance goes down to specified number of credits?

I tried creating conditions like that:

curl -X POST \
  http://{ms_server}/v1/mint/organizations/{org_name}/notification-conditions \
  -H 'authorization: {auth}' \
  -H 'content-type: application/json' \
  -d '{
    "notificationCondition": [
    {
      "attribute": "RATEPLAN",
      "value": "test_package-nl0n_test1"
    },
    {
      "attribute": "Balance",
      "value": "= 100"
    }, {
      "attribute" : "PUBLISHED",
      "value" : "TRUE"
    }
    ],
    "actions": [{
    "actionAttribute": "DEV_ID",
    "value": "ANY",
    "templateId": "33d269dc-caad-464c-9400-6b77da019aca"
    }]
    }'

and

curl -X POST \  
http://{ms_server}/v1/mint/organizations/{org_name}/notification-conditions \
  -H 'authorization: {auth}' \
  -H 'content-type: application/json' \
  -d '{
    "notificationCondition": [
    {
      "attribute": "Balance",
      "value": "= 100"
    }, {
      "attribute" : "PUBLISHED",
      "value" : "TRUE"
    }
    ],
    "actions": [{
    "actionAttribute": "DEV_ID",
    "value": "ANY",
    "templateId": "33d269dc-caad-464c-9400-6b77da019aca"
    }]
    }'

but it does not seem to work. Is it possible to notify developer when his money balance is getting low in 'volume banded' rate plans? How can I set this up?

0 3 480
3 REPLIES 3

rajanish
Participant III

there is no out of the box notification configuration support of balance reaching specific amount however you can model it that way if developer is active on only one plan.

http://docs.apigee.com/monetization/content/create-limit-notification-rate-plan

Basically use FeeExposure configuration in rateplan which will notify developer upon x credits usage specific to that rateplan.

suppose you are providing constant amount of credits to developer every month say 10x. Then set up notification for FeeExposure at 9x.

Does it match your requirement ?

Hi,

This is not a good enough solution for us, since we are allowing developers to buy more credits and we have rate plans with unlimited upper limits.

This means that we would like to be able to send notification to developer when for example he has 10 currency left on his account. Then he would be able to add money to his balance and later when he uses the money which he added to his account we would like to notify him again when he has 10 currency left.

We will not have constant amount of credits for developers, they will be able to buy additional credits on developer portal.

Not applicable

You can start the monetization process and actually get new results from changing all these processes. But you don’t think that casinos cannot be read using the code, the best casinos that I know https://casinoscanada.reviews/casino-en-ligne-montreal/ are very protected and really reliable.