wso2wso2-api-managerwso2-bam

Details for billing passed from backend service to API manager or BAM


We have some services (to be exposed with WSO2 API Manager). We want to do a billing for the consumers.

Unfortunately our billing rules need some detailed information that are available only inside the implemented service. I can see 2 ways how to handle it:

My question is if there is a way how to provide some additional service meta-data in the response (header in transport layer) to the API manager and if it can pass through API manager to BAM to be monitored, billed analyzes etc...


Solution

  • The following blog describes on how this can be done, I wrote it in a hurry. Have a look and see whether it would fit your requirement. I have also attached the required jar files in the blog.

    https://nadeesha678.wordpress.com/2015/12/14/how-to-publish-custom-set-of-data-from-api-manager-to-wso2-business-activity-monitor/