Xsolla-logo

Upgrade refundWebhook

When a user refunds the payment associated with the upgrade, Xsolla sends the data on all cancelled upgrades and the current game package to the webhook URL.

Request
Request Body schema: application/json
notification_type
required
string

Type of notification.

required
object

Purchase details (object).

required
object

Object with data on packages owned by the user.

object

Custom project settings (object).

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": "upgrade_refund",
  • "settings": {
    },
  • "purchase": {
    },
  • "ownership": {
    }
}
Response samples
application/json
{
  • "error": {
    }
}