Xsolla-logo

Get game keysWebhook POST

We will be making API calls to your server to obtain game activation codes after each successful payment.

Request
Request Body schema: application/json
notification_type
string

Type of notification.

object

Custom project settings (object).

project_id
integer

Game’s Xsolla ID. Can be found in Publisher Account.

merchant_id
integer

Merchant ID.

object

User details (object).

id
required
string

User ID.

name
string

Username.

object

Game keys details (object).

digital_content
string

Game SKU.

DRM
string

DRM platform used to distribute the game.

Responses
200

Return the game key.

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": {
    },
  • "user": {
    },
  • "pin_code": {
    }
}
Response samples
application/json
{
  • "pin_code": "AAA-BBB-CCC-DDD"
}