DK 입고 송장 라벨 발행 (단건)
curl --request GET \
--url https://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label \
--header 'Authorization: Bearer <token>'import requests
url = "https://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label', 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://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label",
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://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label"
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://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label")
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"<string>"{
"httpStatus": 401,
"message": "인증에 실패했습니다. 인증 정보가 없거나 위변조·만료되었습니다.",
"errorCode": "AUTHENTICATION_FAILED"
}{
"httpStatus": 403,
"message": "다른 고객사의 배송 건입니다.",
"errorCode": "SHIPMENT_ACCESS_DENIED"
}{
"httpStatus": 404,
"message": "존재하지 않는 DK 입고 송장번호입니다.",
"errorCode": "SHIPMENT_NOT_FOUND",
"masterNumbers": [
"D04510082600099"
]
}{
"httpStatus": 500,
"message": "라벨 발행에 실패했습니다.",
"errorCode": "DK_LABEL_CREATION_FAILED"
}배송 API
라벨 발행 (단건)
DK 입고 송장번호 한 건으로 라벨 PDF를 반환합니다. 응답은 application/pdf 바이너리입니다.
라벨이 아직 없는 배송 건은 이 호출에서 발행하고, 이미 발행된 건은 저장된 라벨을 그대로 사용합니다. 동작은 라벨 발행 (다건) API와 같고 건수만 다릅니다.
존재하지 않는 송장번호이거나 다른 고객사의 배송 건이면 PDF가 반환되지 않고 404 · 403으로 거부됩니다.
여러 건을 한 번에 받으려면 라벨 발행 (다건) API를 사용하세요. 이 API는 재출력이나 다건 발행 중 일부 실패 건을 개별 복구할 때 사용합니다.
자세한 호출 순서와 식별자 흐름은 배송 API 시작하기를 참고하세요. 인증은 API 키 · 환경 문서를 따릅니다.
GET
/
open-api
/
v1
/
shipments
/
{masterNumber}
/
label
DK 입고 송장 라벨 발행 (단건)
curl --request GET \
--url https://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label \
--header 'Authorization: Bearer <token>'import requests
url = "https://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label', 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://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label",
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://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label"
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://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gw-staging.delivered.co.kr/global-ship/open-api/v1/shipments/{masterNumber}/label")
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"<string>"{
"httpStatus": 401,
"message": "인증에 실패했습니다. 인증 정보가 없거나 위변조·만료되었습니다.",
"errorCode": "AUTHENTICATION_FAILED"
}{
"httpStatus": 403,
"message": "다른 고객사의 배송 건입니다.",
"errorCode": "SHIPMENT_ACCESS_DENIED"
}{
"httpStatus": 404,
"message": "존재하지 않는 DK 입고 송장번호입니다.",
"errorCode": "SHIPMENT_NOT_FOUND",
"masterNumbers": [
"D04510082600099"
]
}{
"httpStatus": 500,
"message": "라벨 발행에 실패했습니다.",
"errorCode": "DK_LABEL_CREATION_FAILED"
}