---
updatedAt: 2026-08-07T02:59:37.000Z
agentTools:
  projectIndex: https://docs.wert.io/llms.txt
---

# 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**.

<Callout icon="📘" theme="info">
  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](https://docs.wert.io/docs/listerners-object) and the [data API](https://docs.wert.io/docs/data-api); **you should have redundancy in these situations.**
</Callout>

<Callout icon="❗️" theme="error">
  We require your webhook server to return HTTP **2xx** 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.

  Webhook responses (**2xx**) must be sent within 5 seconds. To ensure stability, your endpoint should be asynchronous. Instead of processing data synchronously, your server should return a 2xx status first and handle the internal logic separately. Any delay beyond 5 seconds (Status Code **0**) will be treated as a failure and lead to automatic disabling of your webhooks.

  The system will make **5 retries** of a failed webhook (non-2xx response) at intervals of **5m, 1h, 2h, 4h, and 8h**. If all 5 retries fail, webhook delivery to your site will be **disabled** until manually re-enabled.

  You may re-enable webhook sending at [https://partner.wert.io](https://partner.wert.io)  or [https://partner-sandbox.wert.io](https://partner-sandbox.wert.io).
</Callout>

# 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.

<br />

# 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:

<Image src="https://files.readme.io/1edff52829215701e4cd386dcb0d7d635b90d05ad3194446575951961e4e2684-Webhooks_1.png" align="center" width="5000px" />

<br />

# Events

The following events are available:

<Callout icon="📘" theme="info">
  Be sure to click on each event to see the respective return data.
</Callout>

<Accordion title="Registration Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Triggered when a new user on your website creates a new Wert profile.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
        {
          "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"
              }
            }
          }
        }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
        {
          "type": "registration",
          "click_id": "click_id",
          "user": {
            "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
            "verification_status": {
              "fkyc": {
                "state": "initiated"
              },
              "lkyc": {
                "state": "initiated"
              }
            }
          }
        }
      ```
    </Tab>
  </Tabs>
</Accordion>

<Accordion title="Login Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Triggered when an existing user logs into Wert on your website.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
       {
         "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"
             }
           }
         }
       }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
       {
         "type": "login",
         "click_id": "click_id",
         "user": {
           "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
           "verification_status": {
             "fkyc": {
               "state": "initiated"
             },
             "lkyc": {
               "state": "initiated"
             }
           }
         }
       }
      ```
    </Tab>
  </Tabs>
</Accordion>

<Accordion title="Logout Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Triggered when an existing user logs out of Wert on your website.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
       {
         "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"
             }
           }
         }
       }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
       {
         "type": "logout",
         "click_id": "click_id",
         "user": {
           "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
           "verification_status": {
             "fkyc": {
               "state": "initiated"
             },
             "lkyc": {
               "state": "initiated"
             }
           }
         }
       }
      ```
    </Tab>
  </Tabs>
</Accordion>

<Accordion title="Card Added Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Triggered when a user adds a new bank card.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
       {
         "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"
             }
           }
         }
       }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
       {
         "type": "card_added",
         "click_id": "click_id",
         "user": {
           "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
           "verification_status": {
             "fkyc": {
               "state": "initiated"
             },
             "lkyc": {
               "state": "initiated"
             }
           }
         }
       }
      ```
    </Tab>
  </Tabs>
</Accordion>

<Accordion title="Verify Start Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Triggered when a user starts the verification process.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
       {
         "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"
             }
           }
         }
       }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
       {
         "type": "verify_start",
         "click_id": "click_id",
         "user": {
           "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
           "verification_status": {
             "fkyc": {
               "state": "initiated"
             },
             "lkyc": {
               "state": "success"
             }
           }
         }
       }
      ```
    </Tab>
  </Tabs>
</Accordion>

<Accordion title="Verify Retry Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Triggered when a user needs to re-upload documents to finish verification.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
       {
         "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"
             }
           }
         }
       }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
       {
         "type": "verify_retry",
         "click_id": "click_id",
         "user": {
           "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
           "verification_status": {
             "fkyc": {
               "state": "retry"
             },
             "lkyc": {
               "state": "success"
             }
           }
         }
       }
      ```
    </Tab>
  </Tabs>
</Accordion>

<Accordion title="Verify Failed Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Triggered when a user needs to re-upload documents to finish verification.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
       {
         "type": "verify_failed",
         "reject_type": "<REJECT_TYPE_ENUM>",
         "click_id": "click_id",
         "hpp_session_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
         "user": {
           "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
           "verification_status": {
             "fkyc": {
               "state": "initiated"
             },
             "lkyc": {
               "state": "failed"
             }
           }
         }
       }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
       {
         "type": "verify_failed",
         "reject_type": "<REJECT_TYPE_ENUM>",
         "click_id": "click_id",
         "user": {
           "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
           "verification_status": {
             "fkyc": {
               "state": "initiated"
             },
             "lkyc": {
               "state": "failed"
             }
           }
         }
       }
      ```
    </Tab>
  </Tabs>

  ### Rejection Types (`REJECT_TYPE_ENUM`)

  | Rejection Category | Rejection Type Value              | Description                                                            |
  | :----------------- | :-------------------------------- | :--------------------------------------------------------------------- |
  | **LKYC Age**       | `LKYC_FAILED_AGE`                 | User does not meet the age requirement for LKYC.                       |
  | **FKYC Age**       | `FKYC_FAILED_AGE`                 | User does not meet the age requirement for FKYC.                       |
  | **LKYC Country**   | `LKYC_FAILED_UNSUPPORTED_COUNTRY` | User's country is not supported for LKYC.                              |
  | **FKYC Country**   | `FKYC_FAILED_UNSUPPORTED_COUNTRY` | User's country is not supported for FKYC.                              |
  | **LKYC State**     | `LKYC_FAILED_UNSUPPORTED_STATE`   | User's specific state/region is not supported for LKYC.                |
  | **FKYC State**     | `FKYC_FAILED_UNSUPPORTED_STATE`   | User's specific state/region is not supported for FKYC.                |
  | **LKYC Duplicate** | `LKYC_FAILED_DUPLICATE`           | An existing LKYC record already exists for this user.                  |
  | **FKYC Duplicate** | `FKYC_FAILED_DUPLICATE`           | An existing FKYC record already exists for this user.                  |
  | **LKYC General**   | `LKYC_FAILED_GENERAL`             | Generic failure for LKYC that does not fall under specific categories. |
  | **FKYC General**   | `FKYC_FAILED_GENERAL`             | Generic failure for FKYC that does not fall under specific categories. |
  | **FKYC Spam**      | `FKYC_FAILED_SPAM`                | FKYC attempt flagged as spam or fraudulent activity.                   |
</Accordion>

<Accordion title="Verify Success Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Triggered when a user successfully passes KYC verification.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
       {
         "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"
             }
           }
         }
       }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
       {
         "type": "verify_success",
         "click_id": "click_id",
         "user": {
           "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
           "verification_status": {
             "fkyc": {
               "state": "success"
             },
             "lkyc": {
               "state": "success"
             }
           }
         }
       }
      ```
    </Tab>
  </Tabs>
</Accordion>

<Accordion title="Payment Started Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Triggered when a user initiates a purchase (pressed “Confirm<br />and Pay”), and a request was sent to the payment acquirer.

    - See supported [payment_method](https://docs.wert.io/docs/webhooks#payment-methods-payment_method_enum) values.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
       {
         "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,
           "external_order_id": "62no2X",
           "payment_method": <`PAYMENT_METHOD_ENUM`>
         },
         "user": {
           "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
           "verification_status": {
             "fkyc": {
               "state": "progress"
             },
             "lkyc": {
               "state": "success"
             }
           }
         }
         "flow_version": "v1" or "v2" //payment flow v1 - old, v2 - new
       }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
       {
         "type": "payment_started",
         "click_id": "click_id",
         "order": {
           "id": "01K8VRXKKFDXP63RM1R6XPF0ZX",
           "base": "USDC",
           "base_amount": "21.91339134",
           "quote": "EUR",
           "quote_amount": "20",
           "address": "0x3833b0d65412268d3C06C1a860462AEE96552cD8",
           "transaction_id": null,
           "partner_data": {
             "sc_address": "0x4d6F96ACc38576de63b353455aC110FafF9bC93D",
             "sc_input_data": "0xd095362f0000690d4c21a2c288a6877d048c05b0b1805c322"
           },
           "external_order_id": "62no2X",
           "payment_method": <`PAYMENT_METHOD_ENUM`>
         },
         "user": {
           "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
           "verification_status": {
             "fkyc": {
               "state": "progress"
             },
             "lkyc": {
               "state": "success"
             }
           }
         }
         "flow_version": "v1" or "v2" //payment flow v1 - old, v2 - new
       }
      ```
    </Tab>
  </Tabs>
</Accordion>

<Accordion title="Order Complete Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Triggered when an order receives “Success” status.

    - For details on order statuses, see the [lifecycle diagram](https://docs.wert.io/docs/webhooks#wert-module-lifecycle).
    - See supported [payment_method](https://docs.wert.io/docs/webhooks#payment-methods-payment_method_enum) values.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
       {
         "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",
           "external_order_id": "62no2X",
           "payment_method": <`PAYMENT_METHOD_ENUM`>
         },
         "user": {
           "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
           "verification_status": {
             "fkyc": {
               "state": "progress"
             },
             "lkyc": {
               "state": "success"
             }
           }
         }
         "flow_version": "v1" or "v2" //payment flow v1 - old, v2 - new
       }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
       {
         "type": "order_complete",
         "click_id": "click_id",
         "order": {
           "id": "01K8VRXKKFDXP63RM1R6XPF0ZX",
           "base": "USDC",
           "base_amount": "21.91339134",
           "quote": "EUR",
           "quote_amount": "20",
           "address": "0x3833b0d65412268d3C06C1a860462AEE96552cD8",
           "transaction_id": "0xbc3e65059d975ee06ef1b61f668eb5a10fcce148881631dba03",
           "partner_data": {
             "sc_address": "0x4d6F96ACc38576de63b353455aC110FafF9bC93D",
             "sc_input_data": "0xd095362f0000690d4c21a2c288a6877d048c05b0b1805c322"
           },
           "external_order_id": "62no2X",
           "payment_method": <`PAYMENT_METHOD_ENUM`>
         },
         "user": {
           "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
           "verification_status": {
             "fkyc": {
               "state": "progress"
             },
             "lkyc": {
               "state": "success"
             }
           }
         }
         "flow_version": "v1" or "v2" //payment flow v1 - old, v2 - new
       }
      ```
    </Tab>
  </Tabs>
</Accordion>

<Accordion title="Order Failed Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    An order receives “Failed” status.

    - For details on order statuses, see the [lifecycle diagram](https://docs.wert.io/docs/webhooks#wert-module-lifecycle).
    - See supported [payment_method](https://docs.wert.io/docs/webhooks#payment-methods-payment_method_enum) values.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
       {
         "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",
           "external_order_id": "62no2X",
           "payment_method": <`PAYMENT_METHOD_ENUM`>
         },
         "user": {
           "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
           "verification_status": {
             "fkyc": {
               "state": "progress"
             },
             "lkyc": {
               "state": "success"
             }
           }
         }
         "flow_version": "v1" or "v2" //payment flow v1 - old, v2 - new
       }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
       {
         "type": "order_failed",
         "click_id": "click_id",
         "order": {
           "id": "01K8VRXKKFDXP63RM1R6XPF0ZX",
           "base": "USDC",
           "base_amount": "21.91339134",
           "quote": "EUR",
           "quote_amount": "20",
           "address": "0x3833b0d65412268d3C06C1a860462AEE96552cD8",
           "transaction_id": null,
           "partner_data": {
             "sc_address": "0x4d6F96ACc38576de63b353455aC110FafF9bC93D",
             "sc_input_data": "0xd095362f0000690d4c21a2c288a6877d048c05b0b1805c322"
           },
           "error_code": "Contact bank",
           "external_order_id": "62no2X",
           "payment_method": <`PAYMENT_METHOD_ENUM`>
         },
         "user": {
           "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
           "verification_status": {
             "fkyc": {
               "state": "progress"
             },
             "lkyc": {
               "state": "success"
             }
           }
         }
         "flow_version": "v1" or "v2" //payment flow v1 - old, v2 - new
       }
      ```
    </Tab>
  </Tabs>
</Accordion>

<Accordion title="Order Cancelled Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Triggered when an order receives “Cancelled” status.

    - For details on order statuses, see the [lifecycle diagram](https://docs.wert.io/docs/webhooks#wert-module-lifecycle).
    - See supported [payment_method](https://docs.wert.io/docs/webhooks#payment-methods-payment_method_enum) values.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
       {
         "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,
           "external_order_id": "62no2X",
           "payment_method": <`PAYMENT_METHOD_ENUM`>
         },
         "user": {
           "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
           "verification_status": {
             "fkyc": {
               "state": "progress"
             },
             "lkyc": {
               "state": "success"
             }
           }
         }
         "flow_version": "v1" or "v2" //payment flow v1 - old, v2 - new
       }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
       {
         "type": "order_cancelled",
         "click_id": "click_id",
         "order": {
           "id": "01K8VRXKKFDXP63RM1R6XPF0ZX",
           "base": "USDC",
           "base_amount": "21.91339134",
           "quote": "EUR",
           "quote_amount": "20",
           "address": "0x3833b0d65412268d3C06C1a860462AEE96552cD8",
           "transaction_id": null,
           "partner_data": {
             "sc_address": "0x4d6F96ACc38576de63b353455aC110FafF9bC93D",
             "sc_input_data": "0xd095362f0000690d4c21a2c288a6877d048c05b0b1805c322"
           },
           "external_order_id": "62no2X",
           "payment_method": <`PAYMENT_METHOD_ENUM`>
         },
         "user": {
           "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
           "verification_status": {
             "fkyc": {
               "state": "progress"
             },
             "lkyc": {
               "state": "success"
             }
           }
         }
         "flow_version": "v1" or "v2" //payment flow v1 - old, v2 - new
       }
      ```
    </Tab>
  </Tabs>
</Accordion>

<Accordion title="Transfer Started Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="⚠️" theme="warn">
    Triggered after 1 network/block confirmation.

    - See supported [payment_method](https://docs.wert.io/docs/webhooks#payment-methods-payment_method_enum) values.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
       {
         "type": "transfer_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",
           "external_order_id": "62no2X",
           "payment_method": <`PAYMENT_METHOD_ENUM`>
         },
         "user": {
           "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
           "verification_status": {
             "fkyc": {
               "state": "progress"
             },
             "lkyc": {
               "state": "success"
             }
           }
         }
         "flow_version": "v1" or "v2" //payment flow v1 - old, v2 - new
       }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
       {
         "type": "transfer_started",
         "click_id": "click_id",
         "order": {
           "id": "01K8VRXKKFDXP63RM1R6XPF0ZX",
           "base": "USDC",
           "base_amount": "21.91339134",
           "quote": "EUR",
           "quote_amount": "20",
           "address": "0x3833b0d65412268d3C06C1a860462AEE96552cD8",
           "transaction_id": "0xbc3e65059d975ee06ef1b61f668eb5a10fcce148881631dba03",
           "partner_data": {
             "sc_address": "0x4d6F96ACc38576de63b353455aC110FafF9bC93D",
             "sc_input_data": "0xd095362f0000690d4c21a2c288a6877d048c05b0b1805c322"
           },
           "external_order_id": "62no2X",
           "payment_method": <`PAYMENT_METHOD_ENUM`>
         },
         "user": {
           "user_id": "01K8K85AR99RMBCCSRM25Z6X9H",
           "verification_status": {
             "fkyc": {
               "state": "progress"
             },
             "lkyc": {
               "state": "success"
             }
           }
         }
         "flow_version": "v1" or "v2" //payment flow v1 - old, v2 - new
       }
      ```
    </Tab>
  </Tabs>
</Accordion>

<Accordion title="Test Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Triggered by providing a callback URL in the Partner Account/Webhooks tab and pressed “Test” to receive a test webhook.
  </Callout>

  ```json
   {
     "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",
     }
   }
  ```
</Accordion>

<Accordion title="OTP Status Event" icon="fa-info-circle" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Triggered when a user requests an SMS verification code. Fires once when the code is requested, and again when the send succeeds or fails.

    Each tap on "Send code" produces **its own sequence** (typically `requested` → `success`, or `requested` → `failed`). Resend three times → three sequences.
  </Callout>

  <Tabs>
    <Tab title="Fiat OnRamp Order">
      ```json
      {
        "type": "otp_status",
        "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
        "click_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
        "phone_country_code": "US",
        "status": "requested"
      }
      ```

      ```json
      {
        "type": "otp_status",
        "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
        "click_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
        "phone_country_code": "US",
        "status": "success"
      }
      ```

      ```json
      {
        "type": "otp_status",
        "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
        "click_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
        "status": "failed",
        "status_detail": "The phone number is not assigned to a mobile line."
      }
      ```
    </Tab>

    <Tab title="NFT Checkout Order">
      ```json
      {
        "type": "otp_status",
        "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
        "click_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
        "phone_country_code": "US",
        "status": "requested"
      }
      ```

      ```json
      {
        "type": "otp_status",
        "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
        "click_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
        "phone_country_code": "US",
        "status": "success"
      }
      ```

      ```json
      {
        "type": "otp_status",
        "user_id": "01K8W7CY66TG9YYJQ14EGTDSCQ",
        "click_id": "b4e0c295-5379-480c-bdba-c2183992e44c",
        "status": "failed",
        "status_detail": "The phone number is not assigned to a mobile line; Prelude only supports mobile numbers."
      }
      ```
    </Tab>
  </Tabs>

  ### Payload fields

  | Field                | Required       | Description                                                                                                      |
  | :------------------- | :------------- | :--------------------------------------------------------------------------------------------------------------- |
  | `type`               | Always         | Fixed string: `otp_status`.                                                                                      |
  | `user_id`            | Always         | Wert user ULID.                                                                                                  |
  | `click_id`           | Always         | Click ID from the widget session. Empty string if not set.                                                       |
  | `phone_country_code` | When available | ISO 3166-1 alpha-2 country code. Omitted if the phone country couldn't be resolved.                              |
  | `status`             | Always         | One of: `requested`, `success`, `failed` (see below).                                                            |
  | `status_detail`      | On failure     | Human-readable reason the OTP couldn't be sent. Not a stable enum — don't match on exact wording for automation. |

  ### `status` values

  | Value       | Description                                                                                                       |
  | :---------- | :---------------------------------------------------------------------------------------------------------------- |
  | `requested` | User tapped "Send code" and the request was accepted.                                                             |
  | `success`   | SMS provider accepted the send.                                                                                   |
  | `failed`    | OTP could not be sent (invalid number, non-mobile line, provider error, etc.). Check `status_detail` for details. |

  <Callout icon="📘" theme="info">
    This event does not include `hpp_session_id` or a nested `user` object — it's intentionally minimal compared to other webhook events.
  </Callout>
</Accordion>

###

# Payment Methods (`PAYMENT_METHOD_ENUM`)

<Accordion title="Payment Methods Enum" icon="fa-credit-card" iconColor="DodgerBlue">
  <Callout icon="📘" theme="info">
    Supported values for the `payment_method` field in `payment_started`, `transfer_started`, `order_complete`, `order_failed`, and `order_cancelled` events.
  </Callout>

  | Value        | Description                  |
  | :----------- | :--------------------------- |
  | `card`       | Credit or Debit card payment |
  | `google-pay` | Google Pay wallet            |
  | `apple-pay`  | Apple Pay wallet             |
  | `sepa`       | SEPA bank transfer           |
  | `cash-app`   | Cash App Pay                 |
</Accordion>