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.
notification_type required | string Notification type. | ||||||||||||
object Custom project settings (object). | |||||||||||||
| |||||||||||||
object User details (object). | |||||||||||||
object Subscription details (object). | |||||||||||||
|
Return to indicate successful processing.
Return in case of an error in the provided information (e.g., a required parameter missing, failed authorization, etc.).
Return to indicate temporary errors with your servers.
curl -v 'https://your.hostname/your/uri' \ -X POST \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Signature 13342703ccaca5064ad33ba451d800c5e823db8f' \ -d '{ "notification_type": "non_renewal_subscription", "settings": { "project_id": 12345, "merchant_id": 1234 }, "user": { "id": "1234567", "email": "email@example.com" }, "subscription": { "plan_id": "a1bcd2e3", "subscription_id": "10", "date_create": "2014-12-22T15:25:25+04:00", "date_next_charge": "2015-01-22T19:25:25+04:00", "currency": "USD", "amount": 0.03 } }'
{- "error": {
- "code": "INVALID_USER",
- "message": "Invalid user"
}
}