Xsolla-logo

Remove payment accountWebhook POST

When a user removes the payment account from saved accounts, Xsolla sends a webhook with the payment_account_remove type to the webhook URL. To receive this webhook, contact your Customer Success Manager or email csm@xsolla.com.

Request
Request Body schema: application/json
notification_type
required
string

Notification type.

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.

object

User details (object).

id
required
string

User ID.

email
string

User email.

name
string

Username.

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.

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
curl -v 'https://your.hostname/your/uri' \
-X POST \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Signature d09695066c52c1b8bdae92f2d6eb59f5b5f89843' \
-d '{
    "notification_type": "payment_account_remove",
    "settings": {
      "project_id": 18404,
      "merchant_id": 2340
    },
    "user": {
        "email": "email@example.com",
        "id": "1234567",
        "name": "John Smith"
    },
    "payment_account": {
        "id": "12345678",
        "name": "email@example.com",
        "payment_method": "24",
        "type": "paypal"
    }
}'
Response samples
application/json
{
  • "error": {
    }
}