balance_changed (HTTP Callback Event)

From SmartBots Developers Docs
Jump to: navigation, search

Activates when the bot's balance changes.

Incoming and outgoing parameters

The input parameters is being sent to your HTTP script along with this event. Output parameters (if any) should be generated by your script.

Parameters Required Value
Input parameters:
action yes = instant_message
bot_name yes the SL name of your bot
channel yes the unique bot id
cid yes internal HTTP connection identifier (you can ignore this value)
Input parameters specific for instant_message:
amount yes the amount sent or received
direction yes the direction of the payment
source yes the source of the payment
destination yes the destination of the payment
balance yes the new balance
trx_type yes the transaction type

More info

Your bot generates this callback message after receiving an instant message from an avatar.

Bot does not expect any reply from your script (this is just a notification).


<< return back to HTTP Callback events