Xsolla-logo

User balance: RefundWebhook

Sent when a user cancels a payment. Specifies the change in the user’s balance.

Request
Request Body schema: application/json
required
object

Transaction details (object).

notification_type
string

Type of notification.

object

Custom project settings (object).

operation_type
string

Type of operation.

id_operation
integer

Operation ID in Xsolla database.

object

User details (object).

object

User balance data (object).

items_operation_type
string

Type of operation made with virtual items.

Array of objects

Virtual items within the purchase.

Responses
204

Return to indicate successful processing.

400

Return in case of an error in the provided information (e.g., a required parameter missing, failed authorization, etc.).

500

Return to indicate temporary errors with your servers.

Request samples
application/json
{
  • "notification_type": "string",
  • "settings": {
    },
  • "operation_type": "string",
  • "id_operation": 0,
  • "user": {
    },
  • "virtual_currency_balance": {
    },
  • "transaction": {
    },
  • "items_operation_type": "string",
  • "items": [
    ]
}
Response samples
application/json
{
  • "error": {
    }
}