예금주 일괄 조회
계좌 1~100개의 예금주명을 한 번에 조회합니다. 계좌마다 결과 하나를 요청과 같은 순서로 돌려줍니다. 찾지 못한 계좌는 holderName이 null이고 error에 원인이 옵니다.
한 계좌도 판정하지 못하면 이 응답 대신 503을 반환합니다. 예금주 조회 가이드
POST
/
v1
/
bankAccountHolders:bulkInquire
예금주 일괄 조회
curl --request POST \
--url https://xapi.bolta.io/v1/bankAccountHolders:bulkInquire \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"accounts": [
{
"bankCode": "088",
"accountNumber": "1000000001"
},
{
"bankCode": "089",
"accountNumber": "1000000004"
}
]
}
'import requests
url = "https://xapi.bolta.io/v1/bankAccountHolders:bulkInquire"
payload = { "accounts": [
{
"bankCode": "088",
"accountNumber": "1000000001"
},
{
"bankCode": "089",
"accountNumber": "1000000004"
}
] }
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({
accounts: [
{bankCode: '088', accountNumber: '1000000001'},
{bankCode: '089', accountNumber: '1000000004'}
]
})
};
fetch('https://xapi.bolta.io/v1/bankAccountHolders:bulkInquire', 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/bankAccountHolders:bulkInquire",
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([
'accounts' => [
[
'bankCode' => '088',
'accountNumber' => '1000000001'
],
[
'bankCode' => '089',
'accountNumber' => '1000000004'
]
]
]),
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/bankAccountHolders:bulkInquire"
payload := strings.NewReader("{\n \"accounts\": [\n {\n \"bankCode\": \"088\",\n \"accountNumber\": \"1000000001\"\n },\n {\n \"bankCode\": \"089\",\n \"accountNumber\": \"1000000004\"\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/bankAccountHolders:bulkInquire")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"accounts\": [\n {\n \"bankCode\": \"088\",\n \"accountNumber\": \"1000000001\"\n },\n {\n \"bankCode\": \"089\",\n \"accountNumber\": \"1000000004\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://xapi.bolta.io/v1/bankAccountHolders:bulkInquire")
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 \"accounts\": [\n {\n \"bankCode\": \"088\",\n \"accountNumber\": \"1000000001\"\n },\n {\n \"bankCode\": \"089\",\n \"accountNumber\": \"1000000004\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"bankCode": "088",
"accountNumber": "1000000001",
"holderName": "홍길동",
"error": null
},
{
"bankCode": "089",
"accountNumber": "1000000004",
"holderName": null,
"error": {
"code": "AMOUNT_REQUIRED",
"message": "입금 금액이 정해진 가상계좌입니다. 총 지급 금액을 입력한 뒤 예금주를 다시 조회해 주세요."
}
}
]
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}인증
API 키를 Base64 인코딩하여 전달합니다. Username에 API 키를 입력하고 Password는 비워두세요.
본문
application/json
예금주 일괄 조회 요청
조회할 계좌. 1개 이상 100개 이하로 넣으세요.
Required array length:
1 - 100 elementsShow child attributes
Show child attributes
응답
계좌마다 결과 하나. 순서는 요청과 같습니다.
예금주 일괄 조회 결과
요청한 계좌마다 항목 하나. 순서는 요청과 같습니다.
Required array length:
1 - 100 elements계좌 한 건의 조회 결과
- Option 1
- Option 2
Show child attributes
Show child attributes
예금주 일괄 조회
curl --request POST \
--url https://xapi.bolta.io/v1/bankAccountHolders:bulkInquire \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"accounts": [
{
"bankCode": "088",
"accountNumber": "1000000001"
},
{
"bankCode": "089",
"accountNumber": "1000000004"
}
]
}
'import requests
url = "https://xapi.bolta.io/v1/bankAccountHolders:bulkInquire"
payload = { "accounts": [
{
"bankCode": "088",
"accountNumber": "1000000001"
},
{
"bankCode": "089",
"accountNumber": "1000000004"
}
] }
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({
accounts: [
{bankCode: '088', accountNumber: '1000000001'},
{bankCode: '089', accountNumber: '1000000004'}
]
})
};
fetch('https://xapi.bolta.io/v1/bankAccountHolders:bulkInquire', 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/bankAccountHolders:bulkInquire",
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([
'accounts' => [
[
'bankCode' => '088',
'accountNumber' => '1000000001'
],
[
'bankCode' => '089',
'accountNumber' => '1000000004'
]
]
]),
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/bankAccountHolders:bulkInquire"
payload := strings.NewReader("{\n \"accounts\": [\n {\n \"bankCode\": \"088\",\n \"accountNumber\": \"1000000001\"\n },\n {\n \"bankCode\": \"089\",\n \"accountNumber\": \"1000000004\"\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/bankAccountHolders:bulkInquire")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"accounts\": [\n {\n \"bankCode\": \"088\",\n \"accountNumber\": \"1000000001\"\n },\n {\n \"bankCode\": \"089\",\n \"accountNumber\": \"1000000004\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://xapi.bolta.io/v1/bankAccountHolders:bulkInquire")
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 \"accounts\": [\n {\n \"bankCode\": \"088\",\n \"accountNumber\": \"1000000001\"\n },\n {\n \"bankCode\": \"089\",\n \"accountNumber\": \"1000000004\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"bankCode": "088",
"accountNumber": "1000000001",
"holderName": "홍길동",
"error": null
},
{
"bankCode": "089",
"accountNumber": "1000000004",
"holderName": null,
"error": {
"code": "AMOUNT_REQUIRED",
"message": "입금 금액이 정해진 가상계좌입니다. 총 지급 금액을 입력한 뒤 예금주를 다시 조회해 주세요."
}
}
]
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"traceId": "<string>"
}