Webhooks
To receive notifications about various events undertaken by the user while they use the widget, you will need to set up an endpoint that accepts payloads sent by Wert. Your endpoint will receive POST requests with content-type application/json.
While it’s not common, webhooks can fail, and we don’t recommend that any of our partners rely solely on them. You have access to on-chain data, and we have listeners and the data API; you should have redundancy in these situations.
We require your webhook server to return HTTP 200 status on ALL received events. Any other HTTP status code like (4xx or 5xx) will be treated as NOT received and will automatically disable webhooks to your server. Please do not return any other HTTP status code that is related to your internal server side logic.
Configuring the webhook endpoint
The webhook endpoint can be set up on Partner Dashboard -> Webhooks -> Webhook URL. Make sure you save the endpoint by clicking “Save”.
From this page, you will also be able to see a log of all events that have been sent.
Wert module lifecycle
To get an overview of the entire module, the actions that can lead to certain events occurring, and further details for each transaction status, please see this graphic:
Events
The following events are available:
Be sure to click on each event to see the respective return data.
Registration Event
  {
    "type": "registration",
    "click_id": "click_id",
    "hpp_session_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
    "user": {
      "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
      "verification_status": {
        "fkyc": {
          "state": "initiated"
        },
        "lkyc": {
          "state": "initiated"
        }
      }
    }
  }Login Event
 {
   "type": "login",
   "click_id": "click_id",
   "hpp_session_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
   "user": {
     "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
     "verification_status": {
       "fkyc": {
         "state": "initiated"
       },
       "lkyc": {
         "state": "initiated"
       }
     }
   }
 }Logout Event
 {
   "type": "logout",
   "click_id": "click_id",
   "hpp_session_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
   "user": {
     "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
     "verification_status": {
       "fkyc": {
         "state": "initiated"
       },
       "lkyc": {
         "state": "initiated"
       }
     }
   }
 }Card Added Event
 {
   "type": "card_added",
   "click_id": "click_id",
   "hpp_session_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
   "user": {
     "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
     "verification_status": {
       "fkyc": {
         "state": "initiated"
       },
       "lkyc": {
         "state": "initiated"
       }
     }
   }
 }New Card Added Event
 {
   "type": "new_card_added",
   "click_id": "click_id",
   "hpp_session_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
   "user": {
     "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
     "verification_status": {
       "fkyc": {
         "state": "initiated"
       },
       "lkyc": {
         "state": "initiated"
       }
     }
   }
 }Verify Start Event
 {
   "type": "verify_start",
   "click_id": "click_id",
   "hpp_session_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
   "user": {
     "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
     "verification_status": {
       "fkyc": {
         "state": "initiated"
       },
       "lkyc": {
         "state": "success"
       }
     }
   }
 }Verify Retry Event
 {
   "type": "verify_retry",
   "click_id": "click_id",
   "hpp_session_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
   "user": {
     "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
     "verification_status": {
       "fkyc": {
         "state": "retry"
       },
       "lkyc": {
         "state": "success"
       }
     }
   }
 }Verify Failed Event
 {
   "type": "verify_failed",
   "click_id": "click_id",
   "hpp_session_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
   "user": {
     "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
     "verification_status": {
       "fkyc": {
         "state": "initiated"
       },
       "lkyc": {
         "state": "failed"
       }
     }
   }
 }Verify Success Event
 {
   "type": "verify_success",
   "click_id": "click_id",
   "hpp_session_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
   "user": {
     "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
     "verification_status": {
       "fkyc": {
         "state": "success"
       },
       "lkyc": {
         "state": "success"
       }
     }
   }
 }Payment Started Event
 {
   "type": "payment_started",
   "click_id": "click_id",
   "hpp_session_id": "378dbbf4-4c8c-4520-bdc7-d50da9a9486e",
   "order": {
     "id": "01K8VRXKKFDXP63RM1R6XPF0ZX",
     "base": "USDC",
     "base_amount": "21.91339134",
     "quote": "EUR",
     "quote_amount": "20",
     "address": "0x3833b0d65412268d3C06C1a860462AEE96552cD8",
     "transaction_id": null
   },
   "user": {
     "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
     "verification_status": {
       "fkyc": {
         "state": "progress"
       },
       "lkyc": {
         "state": "success"
       }
     }
   }
 }Order Complete Event
 {
   "type": "order_complete",
   "click_id": "click_id",
   "hpp_session_id": "378dbbf4-4c8c-4520-bdc7-d50da9a9486e",
   "order": {
     "id": "01K8VRXKKFDXP63RM1R6XPF0ZX",
     "base": "USDC",
     "base_amount": "21.91339134",
     "quote": "EUR",
     "quote_amount": "20",
     "address": "0x3833b0d65412268d3C06C1a860462AEE96552cD8",
     "transaction_id": "0xbc3e65059d975ee06ef1b61f668eb5a10fcce148881631dba03",
   },
   "user": {
     "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
     "verification_status": {
       "fkyc": {
         "state": "progress"
       },
       "lkyc": {
         "state": "success"
       }
     }
   }
 }Order Failed Event
 {
   "type": "order_failed",
   "click_id": "click_id",
   "hpp_session_id": "378dbbf4-4c8c-4520-bdc7-d50da9a9486e",
   "order": {
     "id": "01K8VRXKKFDXP63RM1R6XPF0ZX",
     "base": "USDC",
     "base_amount": "21.91339134",
     "quote": "EUR",
     "quote_amount": "20",
     "address": "0x3833b0d65412268d3C06C1a860462AEE96552cD8",
     "transaction_id": null,
     "error_code": "Contact bank"
   },
   "user": {
     "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
     "verification_status": {
       "fkyc": {
         "state": "progress"
       },
       "lkyc": {
         "state": "success"
       }
     }
   }
 }Order Cancelled Event
 {
   "type": "order_cancelled",
   "click_id": "click_id",
   "hpp_session_id": "378dbbf4-4c8c-4520-bdc7-d50da9a9486e",
   "order": {
     "id": "01K8VRXKKFDXP63RM1R6XPF0ZX",
     "base": "USDC",
     "base_amount": "21.91339134",
     "quote": "EUR",
     "quote_amount": "20",
     "address": "0x3833b0d65412268d3C06C1a860462AEE96552cD8",
     "transaction_id": null
   },
   "user": {
     "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
     "verification_status": {
       "fkyc": {
         "state": "progress"
       },
       "lkyc": {
         "state": "success"
       }
     }
   }
 }Transfer Started Event
Sent after 1 network confirmation.
 {
   "type": "tranfer_started",
   "click_id": "click_id",
   "hpp_session_id": "378dbbf4-4c8c-4520-bdc7-d50da9a9486e",
   "order": {
     "id": "01K8VRXKKFDXP63RM1R6XPF0ZX",
     "base": "USDC",
     "base_amount": "21.91339134",
     "quote": "EUR",
     "quote_amount": "20",
     "address": "0x3833b0d65412268d3C06C1a860462AEE96552cD8",
     "transaction_id": "0xbc3e65059d975ee06ef1b61f668eb5a10fcce148881631dba03",
   },
   "user": {
     "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
     "verification_status": {
       "fkyc": {
         "state": "progress"
       },
       "lkyc": {
         "state": "success"
       }
     }
   }
 }Tx Smart Contract Failed Event
Only available on smart contract checkout.
 {
   "type": "tx_smart_contract_failed",
   "click_id": "click_id",
   "order": {
     "id": "01K8VRXKKFDXP63RM1R6XPF0ZX",
     "base": "POLSC",
     "base_amount": "21.91339134",
     "quote": "EUR",
     "quote_amount": "20",
     "address": "0x3833b0d65412268d3C06C1a860462AEE96552cD8",
     "transaction_id": "0xbc3e65059d975ee06ef1b61f668eb5a10fcce148881631dba03",
     "partner_data": {
       "sc_address": "0x4d6F96ACc38576de63b353455aC110FafF9bC93D",
       "sc_input_data": "0xd095362f0000690d4c21a2c288a6877d048c05b0b1805c322"
     },
     "fallback_order": {
     	 "id": "01K8VRXKKFDXP63RM1R6XPF0ZX",
     	 "base": "POL",
     	 "base_amount": "21.91339134",
     	 "quote": "EUR",
     	 "quote_amount": "20",
     	 "address": "0x3833b0d65412268d3C06C1a860462AEE96552cD8",
     	 "transaction_id": ""
     }
   },
   "user": {
     "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
     "verification_status": {
       "fkyc": {
         "state": "progress"
       },
       "lkyc": {
         "state": "success"
       }
     }
   }
 }Test Event
 {
   "type": "test",
   "click_id": "test_click_id",
   "order": {
     "id": "",
     "base": "POL",
     "base_amount": "21.91339134",
     "quote": "EUR",
     "quote_amount": "20",
     "address": "0x3833b0d65412268d3C06C1a860462AEE96552cD8",
     "transaction_id": "0xbc3e65059d975ee06ef1b61f668eb5a10fcce148881631dba03",
   }
 }Updated about 11 hours ago
