# User balance: Refund Sent when a user cancels a payment. Specifies the change in the user’s balance. Endpoint: POST user-balance-refund Version: 1.0 ## Request fields (application/json): - `notification_type` (string) Notification type. - `settings` (object) Custom project settings (object). - `settings.project_id` (integer) Project ID. You can find this parameter in your [Publisher Account](https://publisher.xsolla.com/) next to the name of the project. - `settings.merchant_id` (integer) Merchant ID. - `operation_type` (string) Type of operation. - `id_operation` (integer) Operation ID in Xsolla database. - `user` (object) User details (object). - `user.id` (string, required) User ID. - `user.name` (string) Username. - `user.email` (string) User email. - `virtual_currency_balance` (object) User balance data (object). - `virtual_currency_balance.old_value` (string) Balance before transaction. - `virtual_currency_balance.new_value` (string) Balance after transaction. - `virtual_currency_balance.diff` (string) Quantity of virtual currency in the purchase. - `transaction` (object, required) Transaction details (object). - `transaction.id` (integer) Transaction ID. - `transaction.date` (string) Date of transaction. - `items_operation_type` (string) Type of operation made with virtual items. - `items` (array) Virtual items within the purchase. - `items.sku` (string) Item ID. - `items.amount` (integer) Item quantity. ## Response 400 fields (application/json): - `error` (object) - `error.code` (string) - `error.message` (string) ## Response 204 fields ## Response 500 fields