cURL
curl -X GET https://api.bizmori.com/api/v3/orders/ORDER_ID/reports/en-US \
-H "Authorization: Bearer YOUR_API_KEY"const orderId = 'ORDER_ID';
const locale = 'en-US';
const response = await fetch(`https://api.bizmori.com/api/v3/orders/${orderId}/reports/${locale}`, {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
const { data } = await response.json();
if (data.status === 'completed') window.location.href = data.download.url;
import requests
order_id = 'ORDER_ID'
locale = 'en-US'
response = requests.get(
f'https://api.bizmori.com/api/v3/orders/{order_id}/reports/{locale}',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
data = response.json()['data']
if data['status'] == 'completed':
pdf = requests.get(data['download']['url']).content
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bizmori.com/api/v3/orders/{orderId}/reports/{locale}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bizmori.com/api/v3/orders/{orderId}/reports/{locale}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bizmori.com/api/v3/orders/{orderId}/reports/{locale}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bizmori.com/api/v3/orders/{orderId}/reports/{locale}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"orderId": "1234567891",
"reportType": "watermarkDetection",
"locale": "en-US",
"status": "completed",
"download": {
"url": "https://s3.ap-northeast-2.amazonaws.com/...",
"expiresInSeconds": 300
},
"failure": null
}
}보고서
주문 보고서 조회
보고서 상태와, completed일 때 다운로드 URL을 조회합니다. 생성 요청이 없던 locale은 404 REPORT_NOT_FOUND입니다.
download.url은 호출할 때마다 새로 서명되며 300초 뒤 만료됩니다. 만료된 URL은 저장소가 403을 반환하며 갱신할 수 없습니다. URL을 저장하지 말고, 사용자가 다운로드를 누를 때 이 API를 호출해 받은 URL로 바로 이동하세요.
주문의 보관 기한이 지나면 보고서 상태와 관계없이 400 ORDER_EXPIRED를 반환합니다.
GET
/
api
/
v3
/
orders
/
{orderId}
/
reports
/
{locale}
cURL
curl -X GET https://api.bizmori.com/api/v3/orders/ORDER_ID/reports/en-US \
-H "Authorization: Bearer YOUR_API_KEY"const orderId = 'ORDER_ID';
const locale = 'en-US';
const response = await fetch(`https://api.bizmori.com/api/v3/orders/${orderId}/reports/${locale}`, {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
const { data } = await response.json();
if (data.status === 'completed') window.location.href = data.download.url;
import requests
order_id = 'ORDER_ID'
locale = 'en-US'
response = requests.get(
f'https://api.bizmori.com/api/v3/orders/{order_id}/reports/{locale}',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
data = response.json()['data']
if data['status'] == 'completed':
pdf = requests.get(data['download']['url']).content
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bizmori.com/api/v3/orders/{orderId}/reports/{locale}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bizmori.com/api/v3/orders/{orderId}/reports/{locale}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bizmori.com/api/v3/orders/{orderId}/reports/{locale}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bizmori.com/api/v3/orders/{orderId}/reports/{locale}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"orderId": "1234567891",
"reportType": "watermarkDetection",
"locale": "en-US",
"status": "completed",
"download": {
"url": "https://s3.ap-northeast-2.amazonaws.com/...",
"expiresInSeconds": 300
},
"failure": null
}
}인증
외부 클라이언트 접근을 위한 Bearer API 키. 일반 키는 sk_ 접두사를 사용하고, 테스트 키는 sk_test_ 접두사로 모의 응답을 사용해 실제 처리나 크레딧 사용 없이 주문 흐름을 검증합니다.
경로 매개변수
주문 ID
Pattern:
^[0-9]{1,20}$보고서 언어
사용 가능한 옵션:
ko-KR, en-US, ja-JP 응답
queued·processing·completed·failed 상태의 보고서. download는 completed에서만 존재
Hide child attributes
Hide child attributes
주문 ID
BIZ MORI가 주문 종류로 결정
사용 가능한 옵션:
watermarkDetection, aiDetection 사용 가능한 옵션:
ko-KR, en-US, ja-JP 보고서 생성 상태
사용 가능한 옵션:
queued, processing, completed, failed