已出貨訂單查詢

店配作業 #

已出貨訂單查詢 #

查詢已完成出貨的訂單資訊,結果Cache 10分鐘

  • 訂單查詢相關API提供不同版本以滿足不同的資訊需求,目前最新為 V3 版本,具備所有點數折抵資訊。以下為各版本說明:

版本說明 #

版本 Header 設定 差異說明
V1 無需額外設定 提供基本訂單出貨資訊
V2 "api-version": "2" 增加賣場活動折抵、折價卷、購物金、超贈點、福利金等資訊
V3 "api-version": "3" 在 V2 的基礎上新增 OPENPOINT 點數折抵資訊

Endpoint URL: https://tw.scm.yahooapis.com/scmapi/api/StoreDelivery/GetShippingOrders
HTTP Method: POST

Request Body #

TransferDateStart #

轉單日 (起)。
資料型態: dateTime
必填: 是
說明: 時間格式為

  • yyyy-mm-ddThh:mm:ss
  • ex. 2024-01-20T00:00:00

TransferDateEnd #

轉單日 (迄)。
資料型態: dateTime
必填: 是
說明: 時間格式為

  • yyyy-mm-ddThh:mm:ss
  • ex. 2024-01-25T23:59:59

Request/Response Sample #

POST /scmapi/api/StoreDelivery/GetShippingOrders

{
    "TransferDateStart": "2026-03-01T11:00:00",
    "TransferDateEnd": "2026-03-03T23:21:55"
}
{
    "OrderCount": 6,
    "Orders": [
        {
            "OrderInfo": {
                "OrderCode": "RM2603020000173",
                "OrderType": null,
                "TransferDate": "2026-03-02T11:16:35.1",
                "ExpectedShippingDate": "2026-03-03T23:59:00",
                "LastShippingDate": "2026-03-03T23:59:00",
                "Note": "",
                "ShippingDate": "2026-03-03T00:00:00",
                "DeliveryDate": null,
                "Status": "未結案"
            },
            "ReceiverInfo": {
                "Name": "測試者",
                "Mobile": "0912345678"
            },
            "StoreInfo": {
                "Type": "國泰世華ATM",
                "Name": "仁信門市",
                "Id": "202110"
            },
            "LabelInfo": {},
            "Products": [
                {
                    "Id": 6452791,
                    "Name": "測試賣場,請勿購買",
                    "Attribute": "",
                    "SupplierNo": "A1234567890",
                    "Type": "一般商品",
                    "Qty": 1,
                    "Cost": 100,
                    "Subtotal": 100,
                    "ProductPrice": 1200
                }
            ]
        },
        {
            "OrderInfo": {
                "OrderCode": "RM2603020000220",
                "OrderType": null,
                "TransferDate": "2026-03-02T11:27:58.053",
                "ExpectedShippingDate": "2026-03-03T23:59:00",
                "LastShippingDate": "2026-03-03T23:59:00",
                "Note": "",
                "ShippingDate": "2026-03-03T00:00:00",
                "DeliveryDate": null,
                "Status": "未結案"
            },
            "ReceiverInfo": {
                "Name": "測試者",
                "Mobile": "0912345678"
            },
            "StoreInfo": {
                "Type": "超商付款取貨(7-11)",
                "Name": "仁信門市",
                "Id": "202110"
            },
            "LabelInfo": {},
            "Products": [
                {
                    "Id": 6452791,
                    "Name": "測試賣場,請勿購買",
                    "Attribute": "",
                    "SupplierNo": "A1234567890",
                    "Type": "一般商品",
                    "Qty": 1,
                    "Cost": 100,
                    "Subtotal": 100,
                    "ProductPrice": 1200
                }
            ]
        },
        {
            "OrderInfo": {
                "OrderCode": "RM2603030000688",
                "OrderType": null,
                "TransferDate": "2026-03-03T11:59:38.34",
                "ExpectedShippingDate": "2026-03-04T23:59:00",
                "LastShippingDate": "2026-03-04T23:59:00",
                "Note": "",
                "ShippingDate": "2026-03-04T00:00:00",
                "DeliveryDate": null,
                "Status": "未結案"
            },
            "ReceiverInfo": {
                "Name": "測試者",
                "Mobile": "0912345678"
            },
            "StoreInfo": {
                "Type": "超商付款取貨(7-11)",
                "Name": "仁信門市",
                "Id": "202110"
            },
            "LabelInfo": {
                "PaymentNo": "D8793556",
                "ValidationNo": "1192",
                "PinCode": "D87935561192"
            },
            "Products": [
                {
                    "Id": 6908338,
                    "Name": "物流服務費",
                    "Attribute": "",
                    "SupplierNo": "08010801",
                    "Type": "一般商品",
                    "Qty": 1,
                    "Cost": 50,
                    "Subtotal": 50,
                    "ProductPrice": 50
                }
            ]
        },
        {
            "OrderInfo": {
                "OrderCode": "RM2603030000689",
                "OrderType": null,
                "TransferDate": "2026-03-03T11:59:38.65",
                "ExpectedShippingDate": "2026-03-04T23:59:00",
                "LastShippingDate": "2026-03-04T23:59:00",
                "Note": "",
                "ShippingDate": "2026-03-04T00:00:00",
                "DeliveryDate": null,
                "Status": "未結案"
            },
            "ReceiverInfo": {
                "Name": "測試者",
                "Mobile": "0912345678"
            },
            "StoreInfo": {
                "Type": "超商付款取貨(7-11)",
                "Name": "仁信門市",
                "Id": "202110"
            },
            "LabelInfo": {
                "PaymentNo": "D8793556",
                "ValidationNo": "1192",
                "PinCode": "D87935561192"
            },
            "Products": [
                {
                    "Id": 6497187,
                    "Name": "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567891",
                    "Attribute": "",
                    "SupplierNo": "",
                    "Type": "一般商品",
                    "Qty": 1,
                    "Cost": 0,
                    "Subtotal": 0,
                    "ProductPrice": 7
                },
                {
                    "Id": 6804909,
                    "Name": "贈品",
                    "Attribute": "",
                    "SupplierNo": "",
                    "Type": "一般商品",
                    "Qty": 1,
                    "Cost": 0,
                    "Subtotal": 0,
                    "ProductPrice": 0
                }
            ]
        },
        {
            "OrderInfo": {
                "OrderCode": "RM2603030001532",
                "OrderType": null,
                "TransferDate": "2026-03-03T17:04:10.197",
                "ExpectedShippingDate": "2026-03-04T23:59:00",
                "LastShippingDate": "2026-03-04T23:59:00",
                "Note": "",
                "ShippingDate": "2026-03-04T00:00:00",
                "DeliveryDate": null,
                "Status": "未結案"
            },
            "ReceiverInfo": {
                "Name": "測試者",
                "Mobile": "0912345678"
            },
            "StoreInfo": {
                "Type": "超商付款取貨(7-11)",
                "Name": "仁信門市",
                "Id": "202110"
            },
            "LabelInfo": {
                "PaymentNo": "D8793773",
                "ValidationNo": "5867",
                "PinCode": "D87937735867"
            },
            "Products": [
                {
                    "Id": 6804909,
                    "Name": "贈品",
                    "Attribute": "",
                    "SupplierNo": "",
                    "Type": "一般商品",
                    "Qty": 1,
                    "Cost": 0,
                    "Subtotal": 0,
                    "ProductPrice": 0
                },
                {
                    "Id": 6497187,
                    "Name": "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567891",
                    "Attribute": "",
                    "SupplierNo": "",
                    "Type": "一般商品",
                    "Qty": 1,
                    "Cost": 0,
                    "Subtotal": 0,
                    "ProductPrice": 7
                }
            ]
        },
        {
            "OrderInfo": {
                "OrderCode": "RM2603030001531",
                "OrderType": null,
                "TransferDate": "2026-03-03T17:04:12.263",
                "ExpectedShippingDate": "2026-03-04T23:59:00",
                "LastShippingDate": "2026-03-04T23:59:00",
                "Note": "",
                "ShippingDate": "2026-03-04T00:00:00",
                "DeliveryDate": null,
                "Status": "未結案"
            },
            "ReceiverInfo": {
                "Name": "測試者",
                "Mobile": "0912345678"
            },
            "StoreInfo": {
                "Type": "超商付款取貨(7-11)",
                "Name": "仁信門市",
                "Id": "202110"
            },
            "LabelInfo": {
                "PaymentNo": "D8793773",
                "ValidationNo": "5867",
                "PinCode": "D87937735867"
            },
            "Products": [
                {
                    "Id": 6908338,
                    "Name": "物流服務費",
                    "Attribute": "",
                    "SupplierNo": "08010801",
                    "Type": "一般商品",
                    "Qty": 1,
                    "Cost": 50,
                    "Subtotal": 50,
                    "ProductPrice": 50
                }
            ]
        }
    ]
}

Response Elements #

若操作成功,API 會回傳 HTTP 200 response。並以 JSON 格式回傳完整的已出貨清單。

OrderCount #

資料筆數。
資料型態: Integer

Orders #

顯示已出貨清單的內容。Orders 的結構分別說明如下:

  • OrderInfo:訂單相關資訊
  • ReceiverInfo:收件人相關資訊
  • StoreInfo:超商相關資訊
  • LabelInfo:標籤相關資訊(僅7-11門市交寄)
  • Products:商品相關資訊

資料型態: Object Array

OrderInfo #

顯示訂單相關資訊的內容。OrderInfo 的結構分別說明如下:

  • OrderCode:訂單編號
  • OrderType:訂單類型
  • TransferDate:轉單日期
  • ExpectedShippingDate:應出貨日
  • LastShippingDate:最晚出貨日
  • Note:訂單備註
  • ShippingDate:出貨確認日
  • DeliveryDate:物流商配達日
  • Status:出貨狀態

資料型態: Object

OrderCode #

訂單編號。
資料型態: String

OrderType #

訂單類型。
資料型態: String

TransferDate #

轉單日期。
資料型態: dateTime
說明: 時間格式為

  • yyyy-mm-ddThh:mm:ss
  • ex. 2024-01-20T00:00:00
ExpectedShippingDate #

應出貨日。
資料型態: dateTime
說明: 時間格式為

  • yyyy-mm-ddThh:mm:ss
  • ex. 2024-01-20T00:00:00
LastShippingDate #

最晚出貨日。
資料型態: dateTime
說明: 時間格式為

  • yyyy-mm-ddThh:mm:ss
  • ex. 2024-01-20T00:00:00
Note #

訂單備註。
資料型態: String

ShippingDate #

出貨確認日。
資料型態: dateTime
說明: 時間格式為

  • yyyy-mm-ddThh:mm:ss
  • ex. 2024-01-20T00:00:00
DeliveryDate #

物流商配達日。
資料型態: dateTime
說明: 時間格式為

  • yyyy-mm-ddThh:mm:ss
  • ex. 2024-01-20T00:00:00
Status #

出貨狀態。
資料型態: String

ReceiverInfo #

顯示收件人相關資訊的內容。ReceiverInfo 的結構分別說明如下:

  • Name:收件人姓名
  • Mobile:收件人手機

資料型態: Object

Name #

收件人姓名。
資料型態: String

Mobile #

收件人手機。
資料型態: String

StoreInfo #

顯示超商相關資訊的內容。StoreInfo 的結構分別說明如下:

  • Type:超商類型
  • Name:取貨門市
  • Id:門市代號

資料型態: Object

Type #

超商類型。
資料型態: String

Name #

取貨門市。
資料型態: String

Id #

門市代號。
資料型態: String

LabelInfo #

顯示標籤條碼相關資訊的內容,僅有7-11門市交寄會顯示。

  • PaymentNo:寄貨編號
  • ValidationNo:驗證碼
  • PinCode:交貨便代碼

資料型態: Array

PaymentNo #

寄貨編號。
資料型態: String

ValidationNo #

驗證碼。
資料型態: String

PinCode #

交貨便代碼。
資料型態: String

Products #

顯示商品相關資訊的內容。Products 的結構分別說明如下:

  • Id:商品編號
  • Name:商品名稱
  • Attribute:商品屬性
  • SupplierNo:供應商料號
  • Type:商品類別
  • Qty:商品數量
  • Cost:商品成本
  • Subtotal:商品成本小計
  • ProductPrice:商品售價

資料型態: Object

Id #

商品編號。
資料型態: Integer

Name #

商品名稱。
資料型態: String

Attribute #

商品屬性。
資料型態: String

SupplierNo #

供應商料號。
資料型態: String

Type #

商品類別。
資料型態: String

Qty #

商品數量。
資料型態: Integer

Cost #

商品成本。
資料型態: Integer

Subtotal #

商品成本小計。
資料型態: Integer

ProductPrice #

商品售價。
資料型態: Integer