cURL
curl -X POST https://api.bizmori.com/api/v3/orders/ORDER_ID/reports \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"locale": "en-US"
}'
const orderId = 'ORDER_ID';
const response = await fetch(`https://api.bizmori.com/api/v3/orders/${orderId}/reports`, {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"locale": "en-US"
})
});
const { data } = await response.json();
import requests
order_id = 'ORDER_ID'
response = requests.post(
f'https://api.bizmori.com/api/v3/orders/{order_id}/reports',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json={
"locale": "en-US"
}
)
data = response.json()['data']
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bizmori.com/api/v3/orders/{orderId}/reports",
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([
'locale' => 'en-US'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.bizmori.com/api/v3/orders/{orderId}/reports"
payload := strings.NewReader("{\n \"locale\": \"en-US\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.bizmori.com/api/v3/orders/{orderId}/reports")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"locale\": \"en-US\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bizmori.com/api/v3/orders/{orderId}/reports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"locale\": \"en-US\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"orderId": "<string>",
"reportType": "watermarkDetection",
"locale": "ko-KR",
"status": "queued",
"download": {
"url": "<string>",
"expiresInSeconds": 300
},
"failure": {
"code": "REPORT_GENERATION_FAILED",
"retryable": true
}
}
}
보고서
주문 보고서 생성
주문의 PDF 분석 보고서를 생성합니다. 보고서 종류는 BIZ MORI가 주문 종류로 정하므로 보내지 않습니다.
- v3 API로 만든 워터마크 추출 주문 →
watermarkDetection - AI Detection 주문 →
aiDetection
이미지 워터마크 보고서는 ko-KR, en-US, ja-JP, PDF 워터마크 보고서는 ko-KR만 지원합니다. 같은 주문·locale을 다시 요청하면 기존 보고서를 반환합니다.
응답
202와queued·processing: 생성 중입니다.GET /api/v3/orders/{orderId}/reports/{locale}로 조회하세요200과completed: 이미 생성된 보고서이며download를 포함합니다200과failed: 생성에 실패했고 재시도할 수 없습니다(failure.retryable이false)
워터마크 보고서 재시도
워터마크 보고서가 failed이면 같은 주문·locale로 다시 호출할 때 새로 생성합니다(202). 시도마다 1크레딧을 예약하며 실패한 시도는 환불되고 성공한 시도만 차감됩니다. 실패가 3회에 도달하면 다시 생성하지 않습니다.
주문의 보관 기한이 지나면 보고서가 있어도 400 ORDER_EXPIRED를 반환합니다.
POST
/
api
/
v3
/
orders
/
{orderId}
/
reports
cURL
curl -X POST https://api.bizmori.com/api/v3/orders/ORDER_ID/reports \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"locale": "en-US"
}'
const orderId = 'ORDER_ID';
const response = await fetch(`https://api.bizmori.com/api/v3/orders/${orderId}/reports`, {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"locale": "en-US"
})
});
const { data } = await response.json();
import requests
order_id = 'ORDER_ID'
response = requests.post(
f'https://api.bizmori.com/api/v3/orders/{order_id}/reports',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json={
"locale": "en-US"
}
)
data = response.json()['data']
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bizmori.com/api/v3/orders/{orderId}/reports",
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([
'locale' => 'en-US'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.bizmori.com/api/v3/orders/{orderId}/reports"
payload := strings.NewReader("{\n \"locale\": \"en-US\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.bizmori.com/api/v3/orders/{orderId}/reports")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"locale\": \"en-US\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bizmori.com/api/v3/orders/{orderId}/reports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"locale\": \"en-US\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"orderId": "<string>",
"reportType": "watermarkDetection",
"locale": "ko-KR",
"status": "queued",
"download": {
"url": "<string>",
"expiresInSeconds": 300
},
"failure": {
"code": "REPORT_GENERATION_FAILED",
"retryable": true
}
}
}
인증
외부 클라이언트 접근을 위한 Bearer API 키. 일반 키는 sk_ 접두사를 사용하고, 테스트 키는 sk_test_ 접두사로 모의 응답을 사용해 실제 처리나 크레딧 사용 없이 주문 흐름을 검증합니다.
경로 매개변수
주문 ID
본문
application/json
보고서 언어. 기본값 ko-KR
사용 가능한 옵션:
ko-KR, en-US, ja-JP 응답
이미 완료된 보고서, 또는 재시도할 수 없는 실패 보고서
Hide child attributes
Hide child attributes
주문 ID
BIZ MORI가 주문 종류로 결정
사용 가능한 옵션:
watermarkDetection, aiDetection 사용 가능한 옵션:
ko-KR, en-US, ja-JP 보고서 생성 상태
사용 가능한 옵션:
queued, processing, completed, failed