구매자
구매자 로그인 잠금 해제
비밀번호 연속 실패로 걸린 로그인 잠금(`ACCOUNT_LOCKED`)과 실패 횟수를 지운다. 잠겨 있지 않아도 200이다. 응답은 구매자 상세이고 `lockedUntil`이 null이다. 상점 플랫폼에 로그인한 OWNER·ADMIN만 호출할 수 있다.
POST
비밀번호 연속 실패로 걸린 로그인 잠금(ACCOUNT_LOCKED)과 실패 횟수를 지운다. 잠겨 있지 않아도 200이다. 응답은 구매자 상세이고 lockedUntil이 null이다. 상점 플랫폼에 로그인한 OWNER·ADMIN만 호출할 수 있다.
accessTokenheader
AuthorizationBearer <JWT>Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)
customerId*stringX-Store-Id*string대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다
잠금을 푼 구매자 상세
application/json- response
meta*data*error*|nullcurl -X POST 'https://api.sayren.io/v1/customers/string/unlock' \
-H 'X-Store-Id: string'Example Response
{
"meta": {
"status": 200,
"code": "OK",
"message": "OK",
"isSuccess": true
},
"data": {
"customerId": "string",
"name": "string",
"email": "string",
"phone": "string",
"joinedAt": "string",
"point": 0,
"marketingAgreed": true,
"lockedUntil": null,
"loginMethods": [
{
"method": "password",
"linkedAt": "string"
}
],
"consents": {
"terms": {
"kind": "TERMS",
"agreed": true,
"agreedVersion": "string",
"currentVersion": "string",
"currentDocumentUrl": "string",
"updatedAt": "string",
"reconsentRequired": true
},
"privacy": {
"kind": "TERMS",
"agreed": true,
"agreedVersion": "string",
"currentVersion": "string",
"currentDocumentUrl": "string",
"updatedAt": "string",
"reconsentRequired": true
},
"marketing": {
"kind": "TERMS",
"agreed": true,
"agreedVersion": "string",
"currentVersion": "string",
"currentDocumentUrl": "string",
"updatedAt": "string",
"reconsentRequired": true
},
"reconsentRequired": true
},
"addresses": [
{
"addressId": "string",
"alias": "string",
"isDefault": true,
"receiverName": "string",
"phone": "string",
"zipCode": "string",
"address1": "string",
"address2": "string",
"countryCode": "KR",
"city": null,
"region": null
}
],
"userinfo": {
"sub": "string",
"name": "string",
"given_name": "string",
"family_name": "string",
"middle_name": "string",
"nickname": "string",
"preferred_username": "string",
"profile": "string",
"picture": "string",
"website": "string",
"email": "string",
"email_verified": true,
"gender": "string",
"birthdate": "string",
"zoneinfo": "string",
"locale": "string",
"phone_number": "string",
"phone_number_verified": true,
"address": {
"formatted": "string",
"street_address": "string",
"locality": "string",
"region": "string",
"postal_code": "string",
"country": "string"
},
"updated_at": 0
},
"stats": {
"orderCount": 0,
"totalPaid": 0,
"lastOrderedAt": "string",
"canceledOrReturnedCount": 0,
"reviewCount": 0,
"inquiryCount": 0
}
},
"error": null
}