コンテンツへスキップ

まとめたウェブフック

注文キャンセル(支払いと取引の詳細を含む)
Webhook

リクエスト

ユーザー、パートナー、またはシステムによって支払いがキャンセルされた場合、エクソーラは指定されたURLにorder_canceled ェーブフックを送信します。このウェーブフックには、キャンセルされたアイテムと決済データに関する情報と、キャンセルされた注文の詳細が含まれています。

支払いが成功しなかった場合、ウェブフックは送信されません。例:

  • 決済UIは開かれましたが、ユーザーが注文の支払いを行われません
  • 決済UIが開かれましたが、支払いの実行中にエラーが発生しました

推奨されるウェーブフックの処理時間は3秒以内です。

ボディapplication/json
billingobject

取引と支払いの詳細。

custom_parametersobject

追加情報。

itemsArray of any必須

ユーザーが購入したアイテムのリスト。

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.

notification_typestring必須

通知タイプ。

orderobject必須

注文に関する情報。

userobject必須

ユーザー情報。

Payload
{ "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" } }

レスポンス

処理が成功したことを示すために戻ります。