# User balance: Payment Sent whenever a user makes a payment. Endpoint: POST user-balance-payment 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. ## Response 400 fields (application/json): - `error` (object) - `error.code` (string) - `error.message` (string) ## Response 204 fields ## Response 500 fields