주문 API
주문 유효성 검사
주문 API
주문 유효성 검사
주문 유효성 검사를 통해 주문 등록 가능 여부를 확인합니다.
POST
/
open-api
/
v1
/
orders
/
validators
curl --request POST \
--url https://gw-staging.delivered.co.kr/global-ship/open-api/v1/orders/validators \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"data": [
{
"warehouseId": 1,
"sender": {
"name": "홍길동",
"contact": "01012345678"
},
"recipient": {
"country": "US",
"name": "test kim",
"contact": "1235551234",
"email": "test@domain.co.kr",
"address": "Centum jungang-ro, Haeundae-gu",
"addressDetail": "20F, 90",
"city": "Busan",
"state": "Busan",
"zipCode": "48059",
"personalCustomsClearanceCode": "1234567890"
},
"orderInfo": {
"mallOrderNumber": "ORDER202501010001",
"carrier": "FEDEX",
"incoterms": "DAP",
"domesticShippingNumber": "65434235223",
"isExportDeclaration": true,
"exportPurpose": "SAMPLE"
},
"packageInfo": {
"width": 11.76,
"length": 11.76,
"height": 11.76,
"actualWeight": 3.26,
"quantity": 1,
"serviceType": "POD"
},
"items": [
{
"name": "test item",
"price": 10000,
"currency": "KRW",
"quantity": 1,
"actualWeight": 3.22,
"hscode": "1234567890",
"itemUrl": "https://www.delivered.co.kr/en",
"itemCode": "1234567890"
}
]
}
]
}'
{
"isSuccess": false,
"requestCount": 2,
"successCount": 1,
"failureCount": 1,
"failures": [
{
"mallOrderNumber": "ORD202501010001",
"rowIndex": 1,
"failures": [
{
"errorMessage": "입고지 ID가 존재하지 않습니다.",
"errorField": "warehouseId"
}
]
}
]
}
Authorizations
발급받은 시크릿 키
Body
application/json
Response
200 - */*
OK
The response is of type object
.
curl --request POST \
--url https://gw-staging.delivered.co.kr/global-ship/open-api/v1/orders/validators \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"data": [
{
"warehouseId": 1,
"sender": {
"name": "홍길동",
"contact": "01012345678"
},
"recipient": {
"country": "US",
"name": "test kim",
"contact": "1235551234",
"email": "test@domain.co.kr",
"address": "Centum jungang-ro, Haeundae-gu",
"addressDetail": "20F, 90",
"city": "Busan",
"state": "Busan",
"zipCode": "48059",
"personalCustomsClearanceCode": "1234567890"
},
"orderInfo": {
"mallOrderNumber": "ORDER202501010001",
"carrier": "FEDEX",
"incoterms": "DAP",
"domesticShippingNumber": "65434235223",
"isExportDeclaration": true,
"exportPurpose": "SAMPLE"
},
"packageInfo": {
"width": 11.76,
"length": 11.76,
"height": 11.76,
"actualWeight": 3.26,
"quantity": 1,
"serviceType": "POD"
},
"items": [
{
"name": "test item",
"price": 10000,
"currency": "KRW",
"quantity": 1,
"actualWeight": 3.22,
"hscode": "1234567890",
"itemUrl": "https://www.delivered.co.kr/en",
"itemCode": "1234567890"
}
]
}
]
}'
{
"isSuccess": false,
"requestCount": 2,
"successCount": 1,
"failureCount": 1,
"failures": [
{
"mallOrderNumber": "ORD202501010001",
"rowIndex": 1,
"failures": [
{
"errorMessage": "입고지 ID가 존재하지 않습니다.",
"errorField": "warehouseId"
}
]
}
]
}