Hi , followed the tutorial about Monetization.
I have created a transaction record policy that u can see as printscreen attached. I have configured
Transaction Success Criteria Status=='Success'
But to be honest i dont' know if it is configured properly. Anyone can suggest me the proper way to configure it?
Thanks
Cosimo
Please post a screen shot of the recording policy
Hi Cosimo,
Can you send a screen shot of your transaction recording policy - or post the response of
https://api.enteprise.apigee.com/v1/o/{orgname}/apiproducts/{productname}
In your trace check for this -
<Get value="200" name="mint.tx.status"/>
The value needs to be 'success' - so i suspect transaction recording policy or your resource configuration in API Product is not correct
What is your resource configuration in API product , is it ** or /** or /*? based on your proxy i guess, it needs to be /** -- can you paste a sample URL you use to test it?
A few more things to try, just to make extra sure you can get transactions to fire:
Hi @Floyd, @makunda@apigee.com i have applied your suggestion but i stiil facing issue. Please see attached Monetization - 2.zip with API Proxy flow, trace log and the transaction policy record configured
Thanks
Cosimo
I see that multiple flow variables can be added
How is the status attribute going to be evaulated in this case when there are more than one flow variable? Will AND be applied between them?
that is
response.status.code AND target.ip
to deduce the status attribute.
Please suggest.
Hi @Cosimo
I took a look at your upload and it looks like you are getting a server-side error. You are getting a 500 Server error response and the error message says "Device 'deviceYYY' not found".
Just to be clear, in your post call you are sending the following body:
{"transactionId":"1234567","deviceType":"ENGINE","eventType":"[\"telemetry_asset\"]","deviceId":"deviceYYY"}
It seems 'deviceYYY' does not exist, and seems to be the reason you are getting a 500 error.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |