Xsolla-logo

Activate keyWebhook

When a user activates a key, Xsolla sends a notification to your webhook URL.

Request
Request Body schema: application/json
notification_type
string

Type of notification.

object

Custom project settings (object).

key
string

Activation key.

sku
string

Unique key package ID.

user_id
string

User ID.

activation_date
string <datetime>

Key activation date in the YYYYMMDDHHMMSS format per ISO 8601.

user_country
string

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

object

Object with regional restriction cluster settings. The cluster includes a restriction type and a list of countries, servers and locales for which the game is available.

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": {
    },
  • "key": "string",
  • "sku": "string",
  • "user_id": "string",
  • "activation_date": "string",
  • "user_country": "string",
  • "restriction": {
    }
}
Response samples
application/json
{
  • "error": {
    }
}