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...
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.