When a user activates a key, Xsolla sends a notification to your webhook URL.
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. | |
Return to indicate successful processing.
Return in case of an error in the provided information (e.g., a required parameter missing, failed authorization, etc.).
Return to indicate temporary errors with your servers.
{- "notification_type": "string",
- "settings": {
- "project_id": 0,
- "merchant_id": 0
}, - "key": "string",
- "sku": "string",
- "user_id": "string",
- "activation_date": "string",
- "user_country": "string",
- "restriction": {
- "sku": "string",
- "name": "string",
- "types": [
- "string"
], - "countries": [
- "string"
], - "servers": [
- "string"
], - "locales": [
- "string"
]
}
}
{- "error": {
- "code": "INVALID_USER",
- "message": "Invalid user"
}
}