# Nonrenewing subscription When a subscription status is set to nonrenewing, Xsolla sends a webhook with the non_renewal_subscription type to the webhook URL. To receive this webhook, contact your Customer Success Manager or email csm@xsolla.com. Endpoint: POST nonrenewing-subscription Version: 1.0 ## Request fields (application/json): - `notification_type` (string, required) Notification type. - `settings` (object) Custom project settings (object). - `settings.project_id` (integer, required) Project ID. You can find this parameter in your [Publisher Account](https://publisher.xsolla.com/) next to the name of the project. - `settings.merchant_id` (integer) Merchant ID. - `user` (object) User details (object). - `user.id` (string, required) User ID. - `user.name` (string) Username. - `user.email` (string) User email. - `subscription` (object) Subscription details (object). - `subscription.plan_id` (string) Plan ID (external if the plan was created via API). - `subscription.subscription_id` (integer) Subscription ID in Xsolla database. - `subscription.date_create` (string) Subscription creation date. Date and time per [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). - `subscription.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](https://en.wikipedia.org/wiki/ISO_8601). - `subscription.currency` (string) Currency. Three-letter currency code per [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - `subscription.amount` (number) Price in real currency. ## Response 400 fields (application/json): - `error` (object) - `error.code` (string) - `error.message` (string) ## Response 204 fields ## Response 500 fields