Xsolla-logo

Add payment accountWebhook POST

Sent whenever a user adds a payment account manually or saves payment account when purchasing something inside the game. To enable this notification, contact the Account Manager.

Request
Request Body schema: application/json
notification_type
required
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.

ip
string

User IP.

email
string

User email.

name
string

Username

country
string

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

zip
string

User’s ZIP or postal code.

object

Payment account details (object).

id
required
string

Payment account ID.

name
string

The payment account name in the payment system (e.g., payment card number, email).

payment_method
integer

Payment method ID.

country
string

Country of the payment account. For example, the country of the bank issuing the card or the country specified when creating a PayPal account. Two-letter uppercase ISO 3166-1 alpha-2 country code.

type
string

Type of payment account (e.g., card, PayPal).

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": {
    },
  • "user": {
    },
  • "payment_account": {
    }
}
Response samples
application/json
{
  • "error": {
    }
}