Xsolla-logo
  • 文档
  • 创建帐户

Player ID validationWebhook

Xsolla sends a webhook with the user_validation type to the webhook URL to verify that a player is registered in the game. The request is sent before moving virtual items or currency to the game process.

Request
Request Body schema: application/json
notification_type
required
string

Type of notification.

required
object

Custom project settings.

merchant_id
required
integer

Merchant ID. You can find this parameter in your Publisher Account:

  • in the Company settings > Company section.
  • in the URL in the browser address bar on any Publisher Account page. The URL has the following format: https://publisher.xsolla.com/<merchant ID>/<Publisher Account section>.
project_id
required
integer

Project ID. You can find this parameter in your Publisher Account next to the name of the project.

required
object

User information.

id
required
string

Player ID in the game.

Responses
200

Return an empty body to indicate the player is found.

404

Return in case the player is not found.

500

Return to indicate temporary errors with your servers.

Request samples
application/json
{
  • "notification_type": "string",
  • "settings": {
    },
  • "user": {
    }
}
Response samples
application/json
null