ユーザー、パートナー、またはシステムによって支払いがキャンセルされた場合、エクソーラは指定されたURLにorder_canceledウ ェーブフックを送信します。このウェーブフックには、キャンセルされたアイテムと決済データに関する情報と、キャンセルされた注文の詳細が含まれています。
支払いが成功しなかった場合、ウェブフックは送信されません。例:
- 決済UIは開かれましたが、ユーザーが注文の支払いを行われません
- 決済UIが開かれましたが、支払いの実行中にエラーが発生しました
推奨されるウェーブフックの処理時間は3秒以内です。
ユーザーが購入したアイテムのリスト。
The set of parameters included in the array depends on the webhook version. Version 2 includes additional parameters: is_free, is_bonus, and is_bundle_content. To switch the version, pass its number in the version parameter in the Update webhook version API call.
- https://api.xsolla.com/merchant/v2https://api.xsolla.com/merchant/v2/order-cancellation
- Mock serverhttps://xsolla.redocly.app/_mock/ja/webhooks/order-cancellation
- バージョン = 1
- バージョン = 2
{ "billing": { "notification_type": "string", "payment_details": { … }, "purchase": { … }, "refund_details": { … }, "settings": { … }, "transaction": { … } }, "custom_parameters": {}, "items": [ { … } ], "notification_type": "string", "order": { "amount": "string", "comment": "string", "coupons": [ … ], "currency": "string", "currency_type": "real", "id": 0, "invoice_id": "string", "mode": "default", "platform": "xsolla", "promocodes": [ … ], "promotions": [ … ], "status": "string" }, "user": { "country": "string", "email": "string", "external_id": "string" } }