카드 검증
GET
/v2/api/ccverification
Code sample: Shell / cURL
curl --request GET \ --url 'https://gateway.checkone.co.kr/v2/api/ccverification?creditcardNo=4000000000000002&identityNo=900101&validYear=2030&validMonth=12&cardHolderName=%ED%99%8D%EA%B8%B8%EB%8F%99' \ --header 'Authorization: Bearer <token>'Authorization: Bearer {access_token} 헤더가 필요합니다.
유효기간이 현재월 이전이면 9997(기간외오류)을 반환합니다.
validYear는 두 자리(YY)일 때 현재월 비교가 기대와 다르게 동작할 수 있으므로 연동 전 호출 검증이 필요합니다.
Authorizations
섹션 제목: “Authorizations”Parameters
섹션 제목: “Parameters”Query Parameters
섹션 제목: “Query Parameters”creditcardNo
required
string
카드번호. 길이 14~16
Example
4000000000000002identityNo
required
string
생년월일 6자리 또는 사업자번호 10자리 숫자
Example
900101validYear
required
string
유효기간 연도
Example
2030validMonth
required
string
유효기간 월
Example
12cardHolderName
string
카드 소유자명
Example
홍길동pgName
string
감사/로그용 값
clientId
string
감사/로그용 값
pgFunction
string
감사/로그용 값
Responses
섹션 제목: “Responses”200
섹션 제목: “200”검증 결과
Media typeapplication/json
object
code
결과 코드.
9997 기간외오류, 9998 실명번호불일치, 9999 시스템 일시장애, 1151 수기결제불가(카드사문의요망).
그 외 코드는 외부 카드 검증 응답의 값을 그대로 전달하며 목록은 공개되지 않았습니다.
string
flag
성공 여부 플래그. 값 정의는 외부 응답을 따릅니다.
string
message
결과 메시지
string
transactionId
서버가 생성한 거래 식별자(UUID)
string
Examples
ExampleperiodError
기간외오류
{ "code": "9997", "flag": "N", "message": "기간외오류", "transactionId": "00000000-0000-0000-0000-000000000000"}400
섹션 제목: “400”파라미터 검증 실패. 본문은 invalid request : {메시지} 문자열입니다.
Media typetext/plain
string
401
섹션 제목: “401”토큰 서명 또는 만료 오류. 본문 없음
