Xsolla-logo

Nonrenewing subscriptionWebhook POST

When a subscription status is set to nonrenewing for any reason, we send the notification non_renewal_subscription to your webhook URL. To enable this notification, contact your Account Manager.

Request
Request Body schema: application/json
notification_type
required
string

Type of notification.

object

Custom project settings (object).

project_id
required
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.

email
string

User email.

object

Subscription details (object).

plan_id
string

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

subscription_id
integer

Subscription ID in Xsolla database.

date_create
string

Subscription creation date. Date and time per ISO 8601.

date_next_charge
string

Next billing date. This is the date when a next payment was expected before user subscription was set to non-renew. Date and time per ISO 8601.

currency
string

Currency. Three-letter currency code per ISO 4217.

amount
integer <float>

Price in real currency.

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": {
    }
}