휴대폰 본인인증 시작
POST
/v2/api/idverification/v3
Code sample: Shell / cURL
curl --request POST \ --url https://gateway.checkone.co.kr/v2/api/idverification/v3 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data idv_access_token=EXAMPLE_ACCESS_TOKEN \ --data uniqueTxnNumber=TXN-0001 \ --data returnUrl=https://example.com/idv/result \ --data 'idvName=홍길동' \ --data idvIdentity=example \ --data idvMobile=01000000000 \ --data editable=Yapplication/x-www-form-urlencoded 폼 전송입니다. 성공하면 본인인증 화면으로 302 리다이렉트합니다.
서비스 이용 권한이 없으면 결과 코드 X99 화면이 표시됩니다.
토큰이 만료되면 returnUrl로 resultCode=401, 메시지 Unauthorised 결과가 전달됩니다.
결과 수신: 인증이 끝나면 사용자 브라우저가 returnUrl로 폼 POST를 보냅니다. 필드는 다음과 같습니다.
| 필드 | 설명 |
|---|---|
resultFlag |
Y 또는 N |
resultMsg |
결과 메시지 |
ci, di |
성공 시에만 값이 있고 실패 시 빈 문자열 |
idvName |
인증된 이름 |
idvTxnNumber |
본인인증 거래번호 |
uniqueTxnNumber |
요청 시 보낸 가맹점 거래번호 |
idvSex |
성공 시 M 또는 F |
idvDob |
성공 시 생년월일 |
idvMobileNo |
성공 시 휴대폰번호 |
idvCarrier |
성공 시 통신사 코드 |
결과에 포함된 개인정보와 ci/di는 로그에 남기지 마세요.
Authorizations
섹션 제목: “Authorizations”Request Bodyrequired
섹션 제목: “Request Bodyrequired”Media typeapplication/x-www-form-urlencoded
object
idv_access_token
헤더 대신 사용하는 액세스 토큰. Bearer 접두사 없이 토큰 값만 전달
string
Example
EXAMPLE_ACCESS_TOKENuniqueTxnNumber
required
가맹점 거래번호
string
Example
TXN-0001returnUrl
required
결과를 폼 POST로 받을 URL
string
Example
https://example.com/idv/resultidvName
이름 프리필
string
Example
홍길동idvIdentity
생년월일 프리필. 현재 이 값이 반영되지 않을 수 있습니다.
string
idvMobile
휴대폰번호 프리필
string
Example
01000000000editable
Y이면 프리필 값을 사용자가 수정할 수 있습니다.
string
Responses
섹션 제목: “Responses”302
섹션 제목: “302”본인인증 화면(https://hp-idv.checkone.co.kr)으로 이동
Headers
섹션 제목: “Headers”Location
string
이동할 본인인증 화면 URL
400
섹션 제목: “400”파라미터 검증 실패 또는 토큰 형식 오류
401
섹션 제목: “401”토큰 서명 또는 만료 오류
