---
title: "Wallet Creation Failed Webhook"
source_url: https://docs.rapyd.net/en/wallet-creation-failed-webhook.html
lang: en
---

# Wallet Creation Failed Webhook

The **EWALLET_CREATION_FAILED** webhook notifies the client when a wallet creation request has failed.

> **Note:**
>
> The endpoint for webhooks is unique for each client. To set up a webhook endpoint, see [Defining a Webhook Endpoint](https://docs.rapyd.net/en/defining-a-webhook-endpoint.md "Defining a Webhook Endpoint").

### Parameters

### Webhook Header Parameters

- - Content-Type (string)
  - Indicates that the data appears in JSON format. Set to **application/json**.
- - salt (string)
  - Random string.
- - signature (string)
  - Signature calculated for each webhook individually.

    See [Webhook Authentication](https://docs.rapyd.net/en/webhook-authentication.md "Webhook Authentication").
- - timestamp (string)
  - Timestamp for the webhook, in [Unix time](https://docs.rapyd.net/en/glossary.md#UUID-945d98cf-adae-e1cf-2606-c7fae8b4a7e1_unix_time "Unix time") (seconds).

### Webhook Root Parameters

- - created_at (string)
  - Time that the webhook was created, in [Unix time](https://docs.rapyd.net/en/glossary.md#UUID-945d98cf-adae-e1cf-2606-c7fae8b4a7e1_unix_time "Unix time").

    > **Note:**
    >
    > Inside the `data` object, some webhooks have another `created_at` field that refers to a different event.
- - data (object)
  - Contains the actual data of the webhook.

    For details, see below.
- - extended_timestamp (string)
  - Time in milliseconds that the webhook was created, in [Unix time](https://docs.rapyd.net/en/glossary.md#UUID-945d98cf-adae-e1cf-2606-c7fae8b4a7e1_unix_time "Unix time").
- - id (string)
  - ID of the webhook. String starting with **wh_**.
- - status (string)
  - Status of the webhook. One of the following:

    - **NEW**
    - **CLO** - Closed.
    - **ERR** - Error.
    - **RET** - Re-sent.

    > **Note:**
    >
    > Inside the `data` object, some webhooks have another `status` field that refers to a different event.
- - trigger_operation_id (string)
  - ID of the operation that triggered the webhook. UUID.
- - type (string)
  - Name of the webhook type.

    > **Note:**
    >
    > The name in the Client Portal is different.

### Webhook Data Parameters

- - email (string)
  - Email address of the wallet owner.
- - error (object)
  - Contains the following fields:

    - - error_code (string)
      - Error code identifying the reason for the wallet creation failure.
    - - message (string)
      - Human-readable description of the error and the corrective action required.
- - ewallet_reference_id (string)
  - Wallet ID defined by the customer or end user.
- - metadata (object)
  - A JSON object defined by the client. See [Metadata](https://docs.rapyd.net/en/metadata.md "Metadata").
- - type (string)
  - Type of wallet. One of the following:

    - **company** - A business wallet.
    - **person** - The wallet of an individual consumer.
    - **client** - A wallet for the Rapyd client.

- EWALLET_CREATION_FAILED Webhook
- ```json
  {
      "type": "EWALLET_CREATION_FAILED",
      "data": {
          "type": "company",
          "ewallet_reference_id": "qa7045-dup-001",
          "email": "J.Doe@example12345.com",
          "metadata": {"merchant_defined": true},
          "error": {
              "error_code": "USER_ALREADY_EXISTS",
              "message": "The request tried to assign a phone number to a wallet, but the phone number is already in the database. A wallet must have a unique phone number, but wallet contacts are not restricted. The request was rejected. Corrective action: In the 'contact' object, assign the number to the 'phone_number' field."
          }
      },
      "trigger_operation_id": "eb225bd7-9ae8-4c28-a2d5-e7ad9b08b225"
  }
  ```
