Order Refunded Webhook
Aghanim utilizes a refund webhook to inform your game of a refund initiated in the Transactions section of the Aghanim Dashboard, providing detailed information about the event.
The refund webhook is activated through the Order refunded event, selectable in Game → Webhooks.
warning
To remove in-game items from player accounts, use the item.remove webhook. The order refunded webhook is designed to provide detailed data when item.remove is insufficient.

Requirements
To use refund webhooks from Aghanim, you should have the webhook server configured as follows:
- HTTPS endpoint, accepting POST webhook requests.
- Listen for events, generated and signed by Aghanim.
- Responds with a 2xx status code upon successful handling of a refund event, and 4xx or 5xx for denial or errors.
Configuration
- Develop a function for the
order.refundedwebhook processing. - Make your endpoint available.
- Register your endpoint within Aghanim account → Game → Webhooks → New Webhook by choosing the Order refunded event.
Alternatively, you can register your endpoint within Aghanim using the Create Webhook API method.
Need help?
Contact our integration team at integration@aghanim.com