# Create Customer

## Create a Customer

<mark style="color:green;">`POST`</mark> `https://sandbox.pgecom.com/api/v1/buisness/customer`

#### Headers

| Name                                            | Type   | Description    |
| ----------------------------------------------- | ------ | -------------- |
| authorization<mark style="color:red;">\*</mark> | String | Bearer `token` |

#### Request Body

| Name                                        | Type    | Description             |
| ------------------------------------------- | ------- | ----------------------- |
| lastName<mark style="color:red;">\*</mark>  | String  | less than 30 characters |
| phone<mark style="color:red;">\*</mark>     | String  |                         |
| id                                          | String  |                         |
| line1                                       | String  |                         |
| line2                                       | String  |                         |
| city<mark style="color:red;">\*</mark>      | String  |                         |
| country                                     | String  |                         |
| state                                       | String  |                         |
| postal\_code                                | String  |                         |
| notes                                       | Boolean |                         |
| userID                                      | String  |                         |
| email<mark style="color:red;">\*</mark>     | String  |                         |
| firstName<mark style="color:red;">\*</mark> | String  |                         |
| createdAt                                   | String  |                         |
| updatedAt                                   | String  |                         |

{% tabs %}
{% tab title="200: OK " %}

```json

{
    "email": "james@gmail.com",
    "firstName": "James",
    "lastName": "Peter",
    "phone": "+1 404 825 3444",
    "line1": "9700 Medlock Bridge Road",
    "line2": "",
    "city": "Kennewick",
    "country": "United States",
    "state": "WA",
    "postal_code": "993398",
    "notes": "This is simple demo",
    "userID": "6bc4f4cf-d562-4306-9192-a2eaf4fa9789",
    "createdAt": "",
    "updatedAt": "",
    "id": "4a3ce0b8-efdc-4640-ac23-099134d1a881"
}
```

{% endtab %}

{% tab title="401: Unauthorized " %}

```json
{
    "message": "Token not valid"
}
```

{% endtab %}
{% endtabs %}
