회원 본인
회원이 동의한 토큰으로 그 회원 자신의 정보를 보고 고칩니다. 외부에서 만든 쇼핑몰 화면 · 회원용 앱이 씁니다.
무엇인가요
내 정보
GET
https://api.mallstory.kr/v1/me권한 me:read
bash요청
curl 'https://api.mallstory.kr/v1/me' \
-H 'Authorization: Bearer msat_9Kq...(회원 토큰)'json200 OK
{
"member_unique": "6accb17807e52ce89536610b",
"member_no": 11,
"login_id": "e2eprod",
"provider": "LOCAL",
"name": "상품시험",
"status": "ACTIVE",
"level": {
"level_unique": "6aa0e089fc6e77ca0e475eef",
"name": "플래티넘"
},
"address": null,
"consent_email": {
"agreed": false,
"at": null
},
"consent_sms": {
"agreed": true,
"at": "2026-10-12T10:08:19.579Z"
},
"point": 0,
"created": "2026-10-12T10:07:52.337Z",
"last_login_at": "2026-10-12T10:08:19.701Z"
}응답 필드
| 필드 | 형식 | 설명 |
|---|---|---|
member_unique | string | 회원 키. 경로에 넣는 값(사용자에게 보여 줄 때는 member_no · login_id) |
member_no | number | 회원번호 |
login_id | string | null | 아이디. 소셜 로그인으로만 가입한 회원은 null |
provider | string | 가입 경로 코드값 |
name | string | 이름 |
email | string | 메일 |
mobile | string | 휴대폰(숫자만) |
birth | string | 생년월일(YYYY-MM-DD) |
status | string | 회원 상태 코드값 |
level.level_unique | string | null | 회원등급 키(회원 등급) |
level.name | string | 회원등급 이름 |
address | object | null | 주소. 없으면 null |
address.zipcode | string | 우편번호 |
address.address1 | string | 기본주소 |
address.address2 | string | 상세주소 |
consent_email.agreed | boolean | 이메일 광고 수신에 동의했는가 |
consent_email.at | ISO | null | 동의 · 철회한 시각 |
consent_sms.agreed | boolean | 문자 광고 수신에 동의했는가 |
consent_sms.at | ISO | null | 동의 · 철회한 시각 |
point | number | 적립금 |
created | ISO | 가입 시각 |
last_login_at | ISO | null | 마지막 로그인 시각 |
오류
| 상태 | code | 언제 |
|---|---|---|
| 403 | Forbidden | 소유자 토큰으로 부름 — 회원 토큰이 필요합니다 |
| 401 | MissingLoginSession | Authorization 헤더에 Bearer 토큰이 없음 |
| 401 | InvalidAccessToken | 토큰이 틀리거나 만료 · 폐기됨 |
| 403 | InsufficientScope | 토큰에 me:read 가 없음 |
내 정보 수정
PATCH
https://api.mallstory.kr/v1/me권한 me:write
보낸 필드만 바뀝니다. 응답은 {member, changed} 입니다.
요청 본문
| 필드 | 형식 | 설명 |
|---|---|---|
email | string | 메일 |
address | object | null | {zipcode, address1, address2} |
consent_email | boolean | 이메일 광고 수신 동의. 바뀔 때만 동의 이력에 남습니다(출처: 회원 본인) |
consent_sms | boolean | 문자 광고 수신 동의 |
bash요청
curl -X PATCH 'https://api.mallstory.kr/v1/me' \
-H 'Authorization: Bearer msat_9Kq...(회원 토큰)' \
-H 'Content-Type: application/json' \
-d '{"email":"hong@example.com","consent_email":true}'json200 OK
{
"member": {
"member_unique": "6accb17807e52ce89536610b",
"consent_email": {
"agreed": true,
"at": "2026-10-12T10:08:19.829Z"
},
"…": "내 정보와 같은 필드"
},
"changed": [
"email",
"consent_email"
]
}json400 — 고칠 수 없는 필드(name)
{
"code": "InvalidParameterValue",
"message": "고칠 수 없는 필드입니다: name. 고칠 수 있는 필드: email, address, consent_email, consent_sms"
}- 이름 · 휴대폰 · 생년월일은 휴대폰 본인확인 값과 엮여 있어 쇼핑몰 화면에서 본인확인 후 고칩니다.
- 비밀번호 · 아이디 · 탈퇴는 쇼핑몰 화면에서 합니다.
오류
| 상태 | code | 언제 |
|---|---|---|
| 400 | InvalidParameterValue | 고칠 수 없는 필드 · 형식 오류(message 에 고칠 수 있는 필드 목록) |
| 403 | Forbidden | 소유자 토큰으로 부름 |
| 401 | MissingLoginSession | Authorization 헤더에 Bearer 토큰이 없음 |
| 401 | InvalidAccessToken | 토큰이 틀리거나 만료 · 폐기됨 |
| 403 | InsufficientScope | 토큰에 me:write 가 없음 |