payment.refundedSent when a payment has been refunded, via the dashboard or directly through the payment provider.
On a gift order,
player_usernameremains the purchaser, not the recipient. Readrecipient_usernamewhen it is present: it identifies the player whose entitlement was revoked by this refund, which is who your refund command should target.
data
order_idstring· uuidThe order ID.
player_usernamestringPlayer in-game name of the purchaser. See the note above on gift orders.
player_uuidstring· uuidMinecraft UUID of the purchaser, if known.
recipient_usernamestring | nullPlayer whose entitlement was revoked, when the order was a gift. Null otherwise.
recipient_uuidstring | nullRecipient’s Minecraft UUID, if known. Null when the order is not a gift.
total_amountnumberAmount refunded.
On a gift order, player_username is still the purchaser, and the recipient fields are populated:
{
"order_id": "e5f6a7b8-...",
"player_username": "Steve",
"player_uuid": "069a79f4-...",
"recipient_username": "Bob",
"recipient_uuid": "b1d4a7f2-...",
"total_amount": 9.99
}FluxStore sends this payload as an HTTP POST to your configured webhook URL.