# 고객사 등록

<mark style="color:green;">`POST`</mark> `http://{backoffice-domain}/m1.0/add/company`

#### Headers

| Name                                           | Type   | Description      |
| ---------------------------------------------- | ------ | ---------------- |
| Content-Type<mark style="color:red;">\*</mark> | String | application/json |

#### Request Body

| Name                                            | Type   | Description     |
| ----------------------------------------------- | ------ | --------------- |
| company\_id<mark style="color:red;">\*</mark>   | int64  | 고객사ID           |
| company\_name<mark style="color:red;">\*</mark> | string | 고객사명 (30byte이내) |

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

```javascript
{
    "return": 0,
    "message": "success"
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Example Curl" %}

```
curl --location --request POST 'http://{backoffice-domain}/m1.0/backoffice/add/company' \
--header 'Content-Type: application/json' \
--data-raw '{
    "company_id": 9999,
    "company_name": "abcd"
}'
```

{% endtab %}

{% tab title="Example Body" %}

```
{
    "company_id": 9999,
    "company_name": "Samsung"
}
```

{% endtab %}

{% tab title="Result Code" %}

| return        | message           | desc.    |
| ------------- | ----------------- | -------- |
| 0             | success           | 성공       |
| 19000         | Internal DB error | 내부 DB 에러 |
| {% endtab %}  |                   |          |
| {% endtabs %} |                   |          |
