When a new dispute is opened or a dispute changes its status, Xsolla sends a webhook with the dispute
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. | ||||||||||||||||||||||||||||||||||||||||||||||||||
action required | string Action type.
| ||||||||||||||||||||||||||||||||||||||||||||||||||
required | object Object with information about the transaction. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||
required | object Object with information about custom project settings. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||
required | object Object with information about a user. | ||||||||||||||||||||||||||||||||||||||||||||||||||
required | object Object with information about the dispute. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
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 'Authorization: Signature 32c64a80d2527dc08906ae1891bac4489509b9f6' \ -d '{ "notification_type": "dispute", "action": "adding", "transaction": { "id": 123456789, "date_create": "2023-08-24T10:21:00+04:00", "total": { "amount": 1, "currency": "EUR" }, "payment_method": "credit_debit_card" }, "settings": { "project_id": 18404, "merchant_id": 2340 }, "user": { "id": "1234567", "email": "email@example.com", "country_code": "US" }, "dispute": { "incoming_date": "2024-01-25T01:02:03+04:00", "reason": "not_as_described", "type": "retrieval", "status": "new" } }'
{- "error": {
- "code": "INVALID_USER",
- "message": "Invalid user"
}
}