Xsolla-logo

Updated subscriptionWebhook POST

If some parameters in subscription (plan_id, date_next_charge) were changed and in case of every subscription renewal, we send the notification update_subscription on your webhook URL.

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.

name
string

Username

object

Subscription details (object).

plan_id
string

Plan ID (external if the plan was created via API).

tags
Array of strings

Plan tags.

subscription_id
integer

Subscription ID in Xsolla database.

product_id
string

Product ID (if sent in the access token).

date_next_charge
string

Next billing date. Date and time per ISO 8601.

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