When a transaction is declined during an AFS check, Xsolla sends transaction details to the URL webhook. To enable this notification, contact the Account Manager.
notification_type required | string Type of notification. | ||||||||||||||
required | object Transaction details (object). | ||||||||||||||
object Custom project settings (object). | |||||||||||||||
object User details (object). | |||||||||||||||
| |||||||||||||||
object Refund 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.
{- "notification_type": "string",
- "settings": {
- "project_id": 0,
- "merchant_id": 0
}, - "user": {
- "ip": "string",
- "phone": "string",
- "email": "string",
- "id": "string",
- "name": "string",
- "country": "string",
- "zip": "string"
}, - "transaction": {
- "id": 0,
- "external_id": "string",
- "dry_run": 0,
- "agreement": 0
}, - "refund_details": {
- "code": 0,
- "reason": "string",
- "author": "string"
}
}
{- "error": {
- "code": "INVALID_USER",
- "message": "Invalid user"
}
}