발급자 등록
세금계산서를 발급할 사업자를 등록하고 issuerId를 발급받습니다.
POST
/
v1
/
issuers
발급자 등록
curl --request POST \
--url https://xapi.bolta.io/v1/issuers \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"identificationNumber": "<string>",
"organizationName": "<string>",
"representativeName": "<string>",
"taxRegistrationId": "0001"
}
'import requests
url = "https://xapi.bolta.io/v1/issuers"
payload = {
"identificationNumber": "<string>",
"organizationName": "<string>",
"representativeName": "<string>",
"taxRegistrationId": "0001"
}
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({
identificationNumber: '<string>',
organizationName: '<string>',
representativeName: '<string>',
taxRegistrationId: '0001'
})
};
fetch('https://xapi.bolta.io/v1/issuers', 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/issuers",
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([
'identificationNumber' => '<string>',
'organizationName' => '<string>',
'representativeName' => '<string>',
'taxRegistrationId' => '0001'
]),
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/issuers"
payload := strings.NewReader("{\n \"identificationNumber\": \"<string>\",\n \"organizationName\": \"<string>\",\n \"representativeName\": \"<string>\",\n \"taxRegistrationId\": \"0001\"\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/issuers")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"identificationNumber\": \"<string>\",\n \"organizationName\": \"<string>\",\n \"representativeName\": \"<string>\",\n \"taxRegistrationId\": \"0001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://xapi.bolta.io/v1/issuers")
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 \"identificationNumber\": \"<string>\",\n \"organizationName\": \"<string>\",\n \"representativeName\": \"<string>\",\n \"taxRegistrationId\": \"0001\"\n}"
response = http.request(request)
puts response.read_body{
"issuerId": "<string>",
"identificationNumber": "<string>",
"taxRegistrationId": "0001",
"organizationName": "<string>",
"representativeName": "<string>",
"certificate": {
"issuedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
}
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}인증
API 키를 Base64 인코딩하여 전달합니다. Username에 API 키를 입력하고 Password는 비워두세요.
본문
application/json
응답
발급자 등록 성공
등록된 발급자와 공동인증서 상태
발급자 등록 응답의 식별자입니다. 전체 문자열을 그대로 저장하세요.
체크섬이 유효한 하이픈(-) 없는 10자리 숫자. 패턴: ^\d{10}$
Pattern:
^\d{10}$예시:
"1234567891"
4자리 숫자, 0000 제외. 패턴: ^(?!0{4})\d{4}$
Required string length:
4Pattern:
^(?!0{4})\d{4}$예시:
"0001"
상호명
Required string length:
1 - 70대표자명
Required string length:
1 - 30Show child attributes
Show child attributes
⌘I
발급자 등록
curl --request POST \
--url https://xapi.bolta.io/v1/issuers \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"identificationNumber": "<string>",
"organizationName": "<string>",
"representativeName": "<string>",
"taxRegistrationId": "0001"
}
'import requests
url = "https://xapi.bolta.io/v1/issuers"
payload = {
"identificationNumber": "<string>",
"organizationName": "<string>",
"representativeName": "<string>",
"taxRegistrationId": "0001"
}
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({
identificationNumber: '<string>',
organizationName: '<string>',
representativeName: '<string>',
taxRegistrationId: '0001'
})
};
fetch('https://xapi.bolta.io/v1/issuers', 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/issuers",
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([
'identificationNumber' => '<string>',
'organizationName' => '<string>',
'representativeName' => '<string>',
'taxRegistrationId' => '0001'
]),
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/issuers"
payload := strings.NewReader("{\n \"identificationNumber\": \"<string>\",\n \"organizationName\": \"<string>\",\n \"representativeName\": \"<string>\",\n \"taxRegistrationId\": \"0001\"\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/issuers")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"identificationNumber\": \"<string>\",\n \"organizationName\": \"<string>\",\n \"representativeName\": \"<string>\",\n \"taxRegistrationId\": \"0001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://xapi.bolta.io/v1/issuers")
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 \"identificationNumber\": \"<string>\",\n \"organizationName\": \"<string>\",\n \"representativeName\": \"<string>\",\n \"taxRegistrationId\": \"0001\"\n}"
response = http.request(request)
puts response.read_body{
"issuerId": "<string>",
"identificationNumber": "<string>",
"taxRegistrationId": "0001",
"organizationName": "<string>",
"representativeName": "<string>",
"certificate": {
"issuedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
}
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}