When a user creates a subscription, we send a notification to your payment notification script.
notification_type required | string Type of notification. | ||||||||||||||||
object Custom project settings (object). | |||||||||||||||||
object User details (object). | |||||||||||||||||
object Subscription details (object). | |||||||||||||||||
| |||||||||||||||||
custom_parameters | object Your custom parameters. |
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.
{- "notification_type": "string",
- "settings": {
- "project_id": 0,
- "merchant_id": 0
}, - "user": {
- "id": "string",
- "name": "string"
}, - "subscription": {
- "plan_id": "string",
- "tags": [
- "string"
], - "subscription_id": 0,
- "product_id": "string",
- "date_create": "string",
- "date_next_charge": "string",
- "trial": {
- "value": 0,
- "type": "string"
}
}, - "custom_parameters": { }
}
{- "error": {
- "code": "INVALID_USER",
- "message": "Invalid user"
}
}