Xsolla-logo

User validation in Web ShopWebhook POST

Xsolla sends a webhook from a Web Shop site to check if a user exists in the game. The webhook is sent from the following IP address: 34.102.38.178.

Note

Webhook is used only for user validation in Web Shop. Refer to these instructions for more information about configuring webhooks in Site Builder.
Request
Request Body schema: application/json
required
object

User details (object).

id
required
string

User ID.

country
string

User’s country. Two-letter uppercase ISO 3166-1 alpha-2 country code.

object

Custom project settings (object).

project_id
integer

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

merchant_id
integer

Merchant ID.

Responses
200

Return information about user.

404

User not found.

Request samples
curl -v 'https://your.hostname/your/uri' \
-X POST \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
    "settings": {
      "project_id": 18404,
      "merchant_id": 2340
    },
    "user": {
        "id": "1234567",
        "country": "US"
    }
}'
Response samples
application/json
{
  • "user": {},
  • "attributes": [
    ]
}