고객 생성
POST /v2/people
고객을 생성합니다.
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body parameters
Name
Type
Description
name
string
생성하려는 고객의 이름 Required
organizationId
string
고객와 연결된 회사의 Id
memo
string
고객 생성 시 작성할 메모
fieldList
array
생성할 고객의 데이터필드
Response
//성공시
{
"success": true,
"data": {
"people":
{
"id": "<peopleId>",
"name": "생성한 고객의 이름",
"createdAt": "2024-04-08T05:25:26.020Z"
}
}
//중복(고객 이메일 동일)
{
"success": false,
"message": "Bad Request",
"reason": "동일한 이메일을 가진 고객이 존재합니다.",
"data": {
"id": "<peopleId>",
"name": "생성시도한 고객 이름"
}
}
Last updated
Was this helpful?