# Fresh Single Visitor Registration

## Fresh Registration

<mark style="color:green;">`POST`</mark> `https://api.agreeq.com/v1/visitorregistrations/registration/:clientUUID/:venueUUID/:departmentUUID`

This endpoint allows you to register a new visit.&#x20;

#### Path Parameters

| Name           | Type   | Description            |
| -------------- | ------ | ---------------------- |
| departmentUUID | string | Unique department UUID |
| venueUUID      | string | Unique venue UUID      |
| clientUUID     | string | Unique client UUID     |

#### Headers

| Name           | Type   | Description                                                    |
| -------------- | ------ | -------------------------------------------------------------- |
| Authentication | string | Authentication token to track down who is emptying our stocks. |

#### Request Body

| Name         | Type   | Description                                                           |
| ------------ | ------ | --------------------------------------------------------------------- |
| visitorCount | string | Number of people visiting including the customer. Minimum value of 1. |
| visitDate    | string | Visit date in YYYY-MM-DD format                                       |
| mobileNumber | string | Mobile Number of the customer                                         |
| customerName | string | Customer Full Name                                                    |

{% tabs %}
{% tab title="200 Successful registration." %}

```
{
    "message": "success",
    "status": 200,
    "booking": {
        "bookingUUID": "0543958b-5857-4292-a44c-a644fc01b62d",
        "userUUID": "b7b7d17c-41ef-44b2-ac74-ddc4cb978864",
        "visitorCount": 2,
        "date": "2020-06-22",
        "bookingNumber": "IC4R19",
        "ts": "2020-06-19 01:42:22"
    }
}
```

{% endtab %}

{% tab title="302 User already having a registration for the same day" %}

```
{
    "message": "error",
    "status": 402,
    "description": "User already have a booking for the same date"
}
```

{% endtab %}

{% tab title="304 In case the system is not able to book." %}

```
{
    "message": "error",
    "status": 400,
    "description": "Unable to book"
}
```

{% endtab %}

{% tab title="400 When all required fields are not found" %}

```
{
    "message": "error",
    "status": 401,
    "description": "Required fields are not found"
}
```

{% endtab %}
{% endtabs %}
