주문 조회
curl --request GET \
--url https://gw-staging.delivered.co.kr/global-checkout/open-api/v1/orders \
--header 'Authorization: <api-key>'import requests
url = "https://gw-staging.delivered.co.kr/global-checkout/open-api/v1/orders"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://gw-staging.delivered.co.kr/global-checkout/open-api/v1/orders', 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-checkout/open-api/v1/orders",
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: <api-key>"
],
]);
$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-checkout/open-api/v1/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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-checkout/open-api/v1/orders")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gw-staging.delivered.co.kr/global-checkout/open-api/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"orderNumber": "<string>",
"orderKey": "<string>",
"items": [
{
"orderItemKey": "<string>",
"productTitle": "<string>",
"quantity": 123,
"sellerProductId": "<string>"
}
],
"recipient": {
"email": "<string>",
"phoneCode": "<string>",
"phoneNumber": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"address": {
"addressLine1": "<string>",
"city": "<string>",
"countryCode": "<string>",
"zipCode": "<string>",
"addressLine2": "<string>",
"state": "<string>"
}
},
"payment": {
"totalPriceKrw": 123,
"totalPriceUsd": 123,
"carrierTotalPriceKrw": 123,
"carrierTotalPriceUsd": 123,
"productTotalPriceKrw": 123,
"productTotalPriceUsd": 123,
"handlingFeeKrw": 123,
"handlingFeeUsd": 123,
"creditCardDiscountAmountKrw": 123,
"creditCardDiscountAmountUsd": 123,
"productCouponDiscountAmountKrw": 123,
"productCouponDiscountAmountUsd": 123,
"shippingCouponDiscountAmountKrw": 123,
"shippingCouponDiscountAmountUsd": 123,
"totalDutyVatAmountKrw": 123,
"totalDutyVatAmountUsd": 123,
"billingPhoneCode": "<string>",
"billingPhoneNumber": "<string>",
"billingEmail": "<string>",
"billingFirstName": "<string>",
"billingLastName": "<string>",
"billingAddress": {
"addressLine1": "<string>",
"city": "<string>",
"countryCode": "<string>",
"zipCode": "<string>",
"addressLine2": "<string>",
"state": "<string>"
},
"taxId": "<string>",
"paidAt": "<string>"
},
"coupons": [
{
"couponCode": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z"
}주문 API
주문 정보 조회
orderKey 또는 orderNumber를 통해 주문 정보를 조회할 수 있습니다.
이 중 최소 하나의 값은 반드시 입력해야 합니다.
GET
/
open-api
/
v1
/
orders
주문 조회
curl --request GET \
--url https://gw-staging.delivered.co.kr/global-checkout/open-api/v1/orders \
--header 'Authorization: <api-key>'import requests
url = "https://gw-staging.delivered.co.kr/global-checkout/open-api/v1/orders"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://gw-staging.delivered.co.kr/global-checkout/open-api/v1/orders', 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-checkout/open-api/v1/orders",
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: <api-key>"
],
]);
$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-checkout/open-api/v1/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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-checkout/open-api/v1/orders")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gw-staging.delivered.co.kr/global-checkout/open-api/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"orderNumber": "<string>",
"orderKey": "<string>",
"items": [
{
"orderItemKey": "<string>",
"productTitle": "<string>",
"quantity": 123,
"sellerProductId": "<string>"
}
],
"recipient": {
"email": "<string>",
"phoneCode": "<string>",
"phoneNumber": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"address": {
"addressLine1": "<string>",
"city": "<string>",
"countryCode": "<string>",
"zipCode": "<string>",
"addressLine2": "<string>",
"state": "<string>"
}
},
"payment": {
"totalPriceKrw": 123,
"totalPriceUsd": 123,
"carrierTotalPriceKrw": 123,
"carrierTotalPriceUsd": 123,
"productTotalPriceKrw": 123,
"productTotalPriceUsd": 123,
"handlingFeeKrw": 123,
"handlingFeeUsd": 123,
"creditCardDiscountAmountKrw": 123,
"creditCardDiscountAmountUsd": 123,
"productCouponDiscountAmountKrw": 123,
"productCouponDiscountAmountUsd": 123,
"shippingCouponDiscountAmountKrw": 123,
"shippingCouponDiscountAmountUsd": 123,
"totalDutyVatAmountKrw": 123,
"totalDutyVatAmountUsd": 123,
"billingPhoneCode": "<string>",
"billingPhoneNumber": "<string>",
"billingEmail": "<string>",
"billingFirstName": "<string>",
"billingLastName": "<string>",
"billingAddress": {
"addressLine1": "<string>",
"city": "<string>",
"countryCode": "<string>",
"zipCode": "<string>",
"addressLine2": "<string>",
"state": "<string>"
},
"taxId": "<string>",
"paidAt": "<string>"
},
"coupons": [
{
"couponCode": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z"
}Authorizations
발급받은 시크릿 키
Response
200 - */*
OK
주문 번호
주문 고유 Key
주문 상태
Available options:
CREATED, PAID, FAILED, PARTIAL_CANCELLED, CANCELLED, ORDER_PROCESSING, SHIPPED, DELIVERED, PARTIAL_DELIVERED 배송 타입
Available options:
BASIC, MY_KOREA_SUITE 운송사 타입
Available options:
STANDARD, EXPRESS, MY_KOREA_SUITE 상품 정보
Show child attributes
Show child attributes
받는분 정보
Show child attributes
Show child attributes
결제자 정보
Show child attributes
Show child attributes
쿠폰 정보
Show child attributes
Show child attributes
주문 생성일
⌘I