The new customer event — send it when a new customer registers in the store. Request parameters, notification selection and the response format are described in the [E-shop API overview](https://www.bulkgate.com/en/docs/eshop-api/eshop-api-overview/).

## API URL

The URL used to send the HTTP requests:

```url
https://portal.bulkgate.com/api/1.0/eshop/customer/new
```

> [!NOTE]
> If the request does not reach its destination, repeat it on the [backup server](https://www.bulkgate.com/en/docs/api-administration-tokens/api-backup-server/) `backup1.bulkgate.com`.

## Supported HTTP methods

- `POST` - `application/json`

```http
POST /api/1.0/eshop/customer/new HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json
```

## Notification

The portal first looks for the notification of the `customer_new` event, and when it is not set up, it uses `customer_account_new`. The customer and admin notifications are picked separately.

## Request example

```http-json
POST /api/1.0/eshop/customer/new HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json

{
  "application_id": 451,
  "application_token": "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj",
  "language": "en",
  "variables": {
    "customer_id": "2051",
    "customer_firstname": "John",
    "customer_lastname": "Smith",
    "customer_email": "john.smith@example.com",
    "customer_mobile": "777777777",
    "customer_country_id": "cz"
  }
}
```

## Response

```json
{
    "data": {
        "admin": [
            {
                "status": "accepted",
                "message_id": "tmpde1bcd4b1d1",
                "part_id": ["tmpde1bcd4b1d1"],
                "number": "420777777777",
                "channel": "sms"
            }
        ]
    }
}
```

The meaning of the `customer` and `admin` keys, send errors and error types are described in the [E-shop API overview](https://www.bulkgate.com/en/docs/eshop-api/eshop-api-overview/).
