cURL
curl -X POST https://api.bizmori.com/api/v2/orders/ORDER_ID/refresh-urls \
-H "Authorization: Bearer YOUR_API_TOKEN"const orderId = 'ORDER_ID';
const response = await fetch(
`https://api.bizmori.com/api/v2/orders/${orderId}/refresh-urls`,
{
method: 'POST',
headers: { 'Authorization': 'Bearer YOUR_API_TOKEN' }
}
);
const data = await response.json();import requests
order_id = 'ORDER_ID'
response = requests.post(
f'https://api.bizmori.com/api/v2/orders/{order_id}/refresh-urls',
headers={'Authorization': 'Bearer YOUR_API_TOKEN'}
)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bizmori.com/api/v2/orders/{orderId}/refresh-urls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/v2/orders/{orderId}/refresh-urls"
req, _ := http.NewRequest("POST", 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.post("https://api.bizmori.com/api/v2/orders/{orderId}/refresh-urls")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bizmori.com/api/v2/orders/{orderId}/refresh-urls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"files": [
{
"fileId": "<string>",
"fileName": "<string>",
"uploadUrl": "<string>",
"fileKey": "<string>"
}
]
}
}{
"code": "AUTH_NOT_AUTHENTICATED"
}{
"code": "RESOURCE_NOT_FOUND"
}Orders
프리사인드 URL 갱신
만료된 업로드 URL을 재발급합니다. live 키는 S3 presigned URL을 받고, 테스트 키는 절대 https://api.bizmori.com/api/v2/test-uploads/{signedToken} URL을 받습니다. 두 URL은 1시간 동안 유효합니다.
pending상태의 주문에서만 사용 가능- 테스트 주문은 저장소 프리사인드 URL 대신 BIZ MORI 테스트 업로드 URL을 반환합니다
POST
/
api
/
v2
/
orders
/
{orderId}
/
refresh-urls
cURL
curl -X POST https://api.bizmori.com/api/v2/orders/ORDER_ID/refresh-urls \
-H "Authorization: Bearer YOUR_API_TOKEN"const orderId = 'ORDER_ID';
const response = await fetch(
`https://api.bizmori.com/api/v2/orders/${orderId}/refresh-urls`,
{
method: 'POST',
headers: { 'Authorization': 'Bearer YOUR_API_TOKEN' }
}
);
const data = await response.json();import requests
order_id = 'ORDER_ID'
response = requests.post(
f'https://api.bizmori.com/api/v2/orders/{order_id}/refresh-urls',
headers={'Authorization': 'Bearer YOUR_API_TOKEN'}
)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bizmori.com/api/v2/orders/{orderId}/refresh-urls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/v2/orders/{orderId}/refresh-urls"
req, _ := http.NewRequest("POST", 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.post("https://api.bizmori.com/api/v2/orders/{orderId}/refresh-urls")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bizmori.com/api/v2/orders/{orderId}/refresh-urls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"files": [
{
"fileId": "<string>",
"fileName": "<string>",
"uploadUrl": "<string>",
"fileKey": "<string>"
}
]
}
}{
"code": "AUTH_NOT_AUTHENTICATED"
}{
"code": "RESOURCE_NOT_FOUND"
}인증
외부 클라이언트 접근을 위한 Bearer API 키. 일반 키는 sk_ 접두사를 사용하고, 테스트 키는 sk_test_ 접두사로 모의 응답을 사용해 실제 처리나 크레딧 사용 없이 주문 흐름을 검증합니다.
경로 매개변수
주문 ID
응답
URL 갱신 성공
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
파일 ID
파일 이름
업로드 URL. live 키는 S3 presigned URL을 받고, 테스트 키는 절대 https://api.bizmori.com/api/v2/test-uploads/{signedToken} URL을 받습니다. 두 URL은 발급 후 1시간 동안 유효하며 POST /api/v2/orders/{orderId}/refresh-urls로 재발급할 수 있습니다. signed token 자체가 테스트 업로드를 인가하므로 PUT에 Authorization 헤더가 필요 없습니다. 테스트 요청 본문은 스트림으로 소비되어 저장되지 않으며, 테스트 주문은 사용량 차감이나 실제 외부 처리 없이 모의 결과로 전이합니다.
파일 식별자: live 키에서는 S3 object key이고 테스트 키에서는 격리된 logical key입니다.
⌘I