> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bolta.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 간편 승인 역발행

> 플랫폼 내에서 승인 URL을 통해 공급자가 직접 승인하는 역발행 워크플로우입니다.

플랫폼이 역발행을 요청한 뒤, 승인 URL을 발급받아 플랫폼 내에서 공급자가 직접 승인하는 시나리오입니다.

## 워크플로우

**1. 발급자 등록**

[발급자 등록 API](https://docs.bolta.io/api-reference/issuer/register-issuer.md)를 호출하여 공급자를 발급자로 등록하고 `issuerId`를 저장합니다.

**2. 인증서 등록 URL 발급**

`issuerId`로 [인증서 등록 URL 조회 API](https://docs.bolta.io/api-reference/certificate/retrieve-issuer-certificate-registration-url.md)를 호출하여 공급자가 인증서를 등록할 수 있는 URL을 발급받습니다.

**3. 공급자 인증서 등록**

공급자가 발급받은 URL에 직접 접속해 공동인증서를 등록합니다. 등록 완료 후 리다이렉트 복귀와 결과 확인은 [인증서 등록 연동](https://docs.bolta.io/docs/api-introduction/certificate-registration.md)을 참고하세요.

**4. 역발행 요청**

[역발행 API](https://docs.bolta.io/api-reference/reverse-issuance/request-reverse-issuance.md)를 호출합니다.

**5. 승인 URL 획득**

[승인 URL 조회 API](https://docs.bolta.io/api-reference/reverse-issuance/retrieve-reverse-issuance-approval-url.md)를 호출하여 승인 페이지 URL을 발급받습니다. 생성된 URL은 10분간 유효합니다.

**6. 간편 승인**

공급자가 승인 URL에 접속하여 세금계산서를 승인합니다. 플랫폼에서 새 탭 열기나 페이지 이동으로 URL을 보여 주세요.

**7. 발행 완료 웹훅 수신**

승인이 완료되면 볼타가 [웹훅](https://docs.bolta.io/docs/api-introduction/webhook-tax-invoice.md)으로 `taxInvoiceUrl`이 담긴 알림을 보냅니다.

**8. 세금계산서 조회 (선택)**

[세금계산서 조회 API](https://docs.bolta.io/api-reference/tax-invoice-retrieval/retrieve-tax-invoice.md)로 발행 결과를 확인합니다.

## 중복 요청 처리

역발행 요청에 선택형 `Bolta-Client-Reference-Id` 헤더를 추가할 수 있습니다. 1\~255자의 비어 있지 않은 값을 입력하고, 발행 요청마다 사용하지 않은 값을 쓰세요.

같은 API 키에서 이미 사용한 값을 다시 보내면 요청 본문이 같아도 API가 HTTP `400`과 `INVALID_REQUEST`를 반환합니다. 응답을 받지 못했다면 역발행을 다시 요청하지 말고 [관리번호 조회 API](https://docs.bolta.io/api-reference/tax-invoice-retrieval/retrieve-tax-invoice-by-client-reference.md)로 접수 결과를 확인하세요. 재사용 규칙은 [인증 가이드](https://docs.bolta.io/docs/api-introduction/authentication.md#client-reference-id)를 참고하세요.

## 요청 상태 확인

[요청 상태 조회 API](https://docs.bolta.io/api-reference/reverse-issuance/retrieve-reverse-issuance-request-status.md)로 역발행 요청이 지금 어느 단계인지 확인하세요.

| `status` | 의미 |
| - | - |
| `REQUESTED` | 요청 접수 완료, 공급자 승인 대기 (공급자에게 전달하기 전 포함) |
| `APPROVED` | 공급자 승인 완료, 국세청 전송 중 |
| `ISSUED` | 발행 완료 |
| `REJECTED` | 공급자 거절 |
| `CANCELED` | 요청 취소 |
| `EXPIRED` | 승인 기한(`approvalDueDate`) 만료 |
| `FAILED` | 접수 또는 발행 실패 |

`FAILED`는 `failure.stage`로 단계를 구분합니다. `SUBMISSION`이면 요청이 공급자에게 전달되지 않았습니다. `Bolta-Client-Reference-Id`를 보냈다면 사용하지 않은 새 값으로 다시 요청하세요. `ISSUANCE`면 공급자가 승인했지만 발행에 실패했으니 `failure.code`와 `failure.message`로 원인을 확인하세요.

## 역발행 요청 취소

승인 전이라면 [요청 취소 API](https://docs.bolta.io/api-reference/reverse-issuance/cancel-reverse-issuance-request.md)를 호출하여 역발행 요청을 취소할 수 있습니다.

* 정상 취소되면 API가 HTTP 200을 반환합니다.
* 이미 승인, 취소, 발행된 요청이면 API가 에러를 반환합니다. 취소 전에 요청 상태를 확인하려면 [요청 상태 조회 API](https://docs.bolta.io/api-reference/reverse-issuance/retrieve-reverse-issuance-request-status.md)를 호출하세요.

> [!WARNING]
>
> 발행 마감일이 지나면 승인 URL을 조회할 때 API가 400 에러를 반환합니다. 날짜를 고쳐 다시 요청하세요. 요청 전에 [세금계산서 발행 마감일 조회 API](https://docs.bolta.io/docs/api-introduction/tax-invoice-issue-due-date.md)로 마감일을 확인하세요.

## 적합한 경우

* 플랫폼 UX 안에서 승인 프로세스를 완결하고 싶은 경우
* 공급자가 이미 인증서를 등록한 상태인 경우
* 플랫폼에서 승인 상태를 직접 추적해야 하는 경우

## 이메일 승인 역발행과의 차이

| | [이메일 승인](https://docs.bolta.io/docs/api-introduction/usecase-reverse-email.md) | 간편 승인 |
| - | - | - |
| 승인 방식 | 볼타가 보낸 이메일 링크 | 플랫폼이 발급한 승인 URL |
| 인증서 필요 | 불필요 | 필요 |
| UX 제어 | 볼타에 위임 | 플랫폼이 직접 제어 |
| URL 유효시간 | - | 10분 |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.