# 到期性订阅 当订阅状态设置为非续订时,艾克索拉会向Webhook URL发送一个non_renewal_subscription类型的Webhook。要接收该Webhook,请联系您的客户成功经理或发送电子邮件至csm@xsolla.com。 Endpoint: POST nonrenewing-subscription Version: 1.0 ## Request fields (application/json): - `notification_type` (string, required) 通知类型。 - `settings` (object) 带有自定义项目设置的对象。 - `settings.merchant_id` (integer) 商户ID。 - `settings.project_id` (integer, required) 项目编号。您可以在您的[发布商帐户](https://publisher.xsolla.com/)项目名称旁边。 - `subscription` (object) 订阅详情(对象)。 - `subscription.amount` (number) 以实际货币表示的价格。 - `subscription.currency` (string) 货币。符合[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)的三字母货币代码。 - `subscription.date_create` (string) 订阅的创建日期。符合 [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)标准规定的日期与时间。 - `subscription.date_next_charge` (string) 下一账单日期。此为用户订阅设置为不续订之前下一次付款的日期。格式为符合[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)标准的日期和时间。 - `subscription.plan_id` (string) 计划ID(如果计划通过API创建,则为外部ID)。 - `subscription.subscription_id` (integer) 艾克索拉数据库的订阅ID。 - `user` (object) 用户详情(对象)。 - `user.email` (string) 用户电子邮件。 - `user.id` (string, required) 用户ID。 - `user.name` (string) 用户名。 ## Response 400 fields (application/json): - `error` (object) - `error.code` (string) - `error.message` (string) ## Response 204 fields ## Response 500 fields