Xsolla sendet den Webhook order_canceled
an die angegebene URL,
wenn die folgenden Bedingungen erfüllt sind:
refund
erhalten.Der Webhook order_canceled
über zurückgegebene Artikel und Details
über die stornierten Transaktion.
Der Webhook order_canceled
wird nicht gesendet, wenn:
refund
nicht eingegangen ist.Es wird empfohlen, den Webhook order_canceled
in weniger als drei
Sekunden zu verarbeiten.
notification_type required | string Benachrichtigungstyp. | ||||||||||||||||||||||||||||||||||||||
required | Array of objects Liste der vom Benutzer gekauften Artikel. | ||||||||||||||||||||||||||||||||||||||
Array | |||||||||||||||||||||||||||||||||||||||
required | object Bestellinformationen. | ||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||
required | object Benutzerinformationen. | ||||||||||||||||||||||||||||||||||||||
custom_parameters | object Zusätzliche Informationen. |
Zur Signalisierung einer erfolgreiche Verarbeitung.
Im Falle eines Fehlers in den bereitgestellten Daten (z. B. fehlender erforderlicher Parameter, fehlgeschlagene Autorisierung usw.).
curl -v 'https://your.hostname/your/uri' \ -X POST \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Signature d09695066c52c1b8bdae92f2d6eb59f5b5f89843' \ -d '{ "notification_type": "order_canceled", "items": [ { "sku": "virtual-good-item_test", "type": "virtual_good", "is_pre_order": false, "quantity": 3, "amount": "1000", "promotions": [ { "amount_without_discount": "6000", "amount_with_discount": "5000", "sequence": 1 }, { "amount_without_discount": "5000", "amount_with_discount": "4000", "sequence": 2 } ], "custom_attributes": { "purchased": 0, "attr": "value" } }, { "sku": "virtual-good-item_test_test_new", "type": "bundle", "is_pre_order": false, "quantity": 1, "amount": "1000", "promotions": [] }, { "sku": "gold", "type": "virtual_currency", "is_pre_order": false, "quantity": 1500, "amount": "[null]", "promotions": [] } ], "order": { "id": 1, "mode": "default", "currency_type": "virtual", "currency": "sku_currency", "amount": "2000", "status": "paid", "platform": "xsolla", "comment": null, "invoice_id": "1", "promotions": [ { "amount_without_discount": "4000", "amount_with_discount": "2000", "sequence": 1 } ], "promocodes": [ { "code": "promocode_some_code", "external_id": "promocode_sku" } ], "coupons": [ { "code": "WINTER2021", "external_id": "coupon_sku" } ] }, "user": { "external_id": "id_xsolla_login_1", "email": "email@example.com" } }'