GetOrder

Prev Next
This content is currently unavailable in English. You are viewing the default (Korean) version.

Classic/VPC 환경에서 이용 가능합니다.

Advanced 인증서 오더(Order) 1건의 구독 정보와 해당 오더에 속한 인증서 목록을 조회합니다.

요청

요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.

메서드 URI
GET /api/v2/certificate/orders/{orderId}

요청 헤더

Certificate Manager API에서 공통으로 사용하는 헤더에 대한 정보는 Certificate Manager 요청 헤더를 참조해 주십시오.

요청 경로 파라미터

요청 경로 파라미터에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
orderId String Required 오더 아이디

요청 예시

요청 예시는 다음과 같습니다.

curl --location --request GET 'https://certificatemanager.apigw.ntruss.com/api/v2/certificate/orders/900001' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--header 'accept: application/json'

응답

응답 형식을 설명합니다.

응답 바디

응답 바디에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
returnCode String - 응답 코드
returnMessage String - 응답 메시지
totalCount Integer - 조회된 인증서의 총 개수
orderId String - 오더 아이디
subscriptionStartDt String - 구독 시작 일시(오더 등록 일시)
  • yyyy-MM-dd HH:mm:ss 형식
subscriptionEndDt String - 구독 종료 일시
  • yyyy-MM-dd HH:mm:ss 형식
  • 최초 인증서 발급이 완료되지 않은 오더는 null
subscriptionYears Integer - 누적 구매 연수
  • 오더 신청 연수에 구독 연장 연수를 더한 값
remainingDays Integer - 구독 종료까지 남은 일수
  • 구독이 만료된 오더는 음수
  • subscriptionEndDt가 null인 오더는 null
extendableYears Integer - 현재 구독 연장 가능한 연수
  • 구독 기간 상한(3년) 기준
  • 0: 상한 도달, 구독 만료 또는 subscriptionEndDt가 null인 오더
certificates Array - 오더에 속한 인증서 목록

응답 상태 코드

Certificate Manager API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Certificate Manager 응답 상태 코드를 참조해 주십시오.

응답 예시

응답 예시는 다음과 같습니다.

{
  "returnCode": "0",
  "returnMessage": "Success",
  "totalCount": 1,
  "orderId": "900001",
  "subscriptionStartDt": "2026-03-01 10:15:30",
  "subscriptionEndDt": "2028-03-01 20:59:59",
  "subscriptionYears": 2,
  "remainingDays": 516,
  "extendableYears": 1,
  "certificates": [
    {
      "certificateNo": 100001,
      "certificateName": "sample-cert-01",
      "memberNo": "9999999",
      "commonName": "example.com",
      "statusCode": "1",
      "statusName": "Normal",
      "certificateType": "NCP_PAID_OV_01",
      "domainCode": "PUB",
      "updateDate": "2026-09-14 10:15:30(UTC+09:00)",
      "orderId": "900001",
      "issueType": "ORIGINAL",
      "subjectDN": "CN=example.com,O=Example Corporation,L=Sample-city,ST=Sample-state,C=KR",
      "registDate": "2026-09-14 10:15:30(UTC+09:00)",
      "issueDate": "2026-09-14 11:20:41(UTC+09:00)",
      "notBefore": "2026-09-14 09:00:00(UTC+09:00)",
      "notAfter": "2027-03-31 23:59:59(UTC+09:00)",
      "issuer": "NAVER Secure Certification Authority 2025",
      "serialNumber": "01:23:45:67:89:ab:cd:ef:01:23:45:67:89:ab:cd:ef:01:23:45:67",
      "certPublicKeyInfo": "Sun RSA public key, 2048 bits",
      "signatureAlgorithm": "SHA256withRSA"
    }
  ]
}