전자(세금)계산서 수정발행 - 환입
환입된 금액을 음수 품목으로 전달하면 원본과 같은 과세유형으로 수정발행합니다. 품목 공급가액 합계는 음수여야 합니다. API가 원본의 과세유형, 영수/청구 구분, 공급자, 공급받는자, 수탁자를 그대로 사용하니 원본 과세유형에 맞춰 품목의 세액(tax)을 전달하세요.
품목 세액은 모두 정수이거나 모두 null 또는 생략이어야 합니다. 세액 합계가 0이나 null이 아니면 음수여야 합니다.
수정발행 유형 가이드를 참고하세요.
API가 요청 텍스트의 보이지 않는 문자를 자동으로 지웁니다. 탭, 줄바꿈, 캐리지리턴은 유지합니다. 이모지처럼 U+FFFF를 넘는 보충 문자는 400으로 거부합니다. 지원하지 않는 문자를 참고하세요.
POST
/
v1
/
taxInvoices
/
{issuanceKey}
/
amend
/
return
전자(세금)계산서 수정발행 - 환입
curl --request POST \
--url https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"date": "2026-05-27",
"items": [
{
"date": "2026-05-27",
"name": "반품 품목",
"unitPrice": null,
"quantity": null,
"supplyCost": -30000,
"tax": -3000,
"specification": null,
"description": null
}
]
}
'import requests
url = "https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return"
payload = {
"date": "2026-05-27",
"items": [
{
"date": "2026-05-27",
"name": "반품 품목",
"unitPrice": None,
"quantity": None,
"supplyCost": -30000,
"tax": -3000,
"specification": None,
"description": None
}
]
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
date: '2026-05-27',
items: [
{
date: '2026-05-27',
name: '반품 품목',
unitPrice: null,
quantity: null,
supplyCost: -30000,
tax: -3000,
specification: null,
description: null
}
]
})
};
fetch('https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'date' => '2026-05-27',
'items' => [
[
'date' => '2026-05-27',
'name' => '반품 품목',
'unitPrice' => null,
'quantity' => null,
'supplyCost' => -30000,
'tax' => -3000,
'specification' => null,
'description' => null
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return"
payload := strings.NewReader("{\n \"date\": \"2026-05-27\",\n \"items\": [\n {\n \"date\": \"2026-05-27\",\n \"name\": \"반품 품목\",\n \"unitPrice\": null,\n \"quantity\": null,\n \"supplyCost\": -30000,\n \"tax\": -3000,\n \"specification\": null,\n \"description\": null\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"date\": \"2026-05-27\",\n \"items\": [\n {\n \"date\": \"2026-05-27\",\n \"name\": \"반품 품목\",\n \"unitPrice\": null,\n \"quantity\": null,\n \"supplyCost\": -30000,\n \"tax\": -3000,\n \"specification\": null,\n \"description\": null\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"date\": \"2026-05-27\",\n \"items\": [\n {\n \"date\": \"2026-05-27\",\n \"name\": \"반품 품목\",\n \"unitPrice\": null,\n \"quantity\": null,\n \"supplyCost\": -30000,\n \"tax\": -3000,\n \"specification\": null,\n \"description\": null\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"issuanceKey": "8D529FAD3EBAE050B79CE943CCC7CEDE"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}인증
헤더
세금계산서 요청자 관리번호입니다. 선택 사항이며 1~255자의 비어 있지 않은 값을 입력하세요. 같은 API 키에서 세금계산서 발행 계열 API에 이미 사용한 값은 요청 내용이나 API 경로가 같든 다르든 재사용할 수 없습니다. 중복이면 API가 400 Bad Request와 INVALID_REQUEST를 반환합니다. 응답을 받지 못했다면 같은 요청을 다시 보내지 말고 요청 상태 조회 API로 접수 결과를 확인하세요.
Required string length:
1 - 255Pattern:
\S본문
application/json
전자(세금)계산서 수정발행 - 환입
curl --request POST \
--url https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"date": "2026-05-27",
"items": [
{
"date": "2026-05-27",
"name": "반품 품목",
"unitPrice": null,
"quantity": null,
"supplyCost": -30000,
"tax": -3000,
"specification": null,
"description": null
}
]
}
'import requests
url = "https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return"
payload = {
"date": "2026-05-27",
"items": [
{
"date": "2026-05-27",
"name": "반품 품목",
"unitPrice": None,
"quantity": None,
"supplyCost": -30000,
"tax": -3000,
"specification": None,
"description": None
}
]
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
date: '2026-05-27',
items: [
{
date: '2026-05-27',
name: '반품 품목',
unitPrice: null,
quantity: null,
supplyCost: -30000,
tax: -3000,
specification: null,
description: null
}
]
})
};
fetch('https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'date' => '2026-05-27',
'items' => [
[
'date' => '2026-05-27',
'name' => '반품 품목',
'unitPrice' => null,
'quantity' => null,
'supplyCost' => -30000,
'tax' => -3000,
'specification' => null,
'description' => null
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return"
payload := strings.NewReader("{\n \"date\": \"2026-05-27\",\n \"items\": [\n {\n \"date\": \"2026-05-27\",\n \"name\": \"반품 품목\",\n \"unitPrice\": null,\n \"quantity\": null,\n \"supplyCost\": -30000,\n \"tax\": -3000,\n \"specification\": null,\n \"description\": null\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"date\": \"2026-05-27\",\n \"items\": [\n {\n \"date\": \"2026-05-27\",\n \"name\": \"반품 품목\",\n \"unitPrice\": null,\n \"quantity\": null,\n \"supplyCost\": -30000,\n \"tax\": -3000,\n \"specification\": null,\n \"description\": null\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://xapi.bolta.io/v1/taxInvoices/{issuanceKey}/amend/return")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"date\": \"2026-05-27\",\n \"items\": [\n {\n \"date\": \"2026-05-27\",\n \"name\": \"반품 품목\",\n \"unitPrice\": null,\n \"quantity\": null,\n \"supplyCost\": -30000,\n \"tax\": -3000,\n \"specification\": null,\n \"description\": null\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"issuanceKey": "8D529FAD3EBAE050B79CE943CCC7CEDE"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}