喜樂燒臘|外送任務
建立、更新與取消既有任務
同一訂單只使用一個外送任務;改單後可更新,外送改自取可取消。

外送詳細資訊

訂單編號
LINE-F80A168C60BF912021267C5C
動作
建立
版本
R1
狀態
尚未傳送
尚未傳送
顯示技術資料
{
    "sourceSystem": "order_center_api",
    "sourceType": "api",
    "syncStatus": "ready_to_import",
    "apiVersion": "v1",
    "requestId": "REQ_LINE-F80A168C60BF912021267C5C_R1_CREATE_20261205131923",
    "externalOrderId": "LINE-F80A168C60BF912021267C5C",
    "operation": "create",
    "syncOperation": "create",
    "orderRevision": 1,
    "deliveryTaskId": "",
    "changeSummary": "",
    "storeId": "dawan",
    "storeCode": "dawan",
    "storeName": "大灣喜樂燒臘",
    "customerName": "謝志正",
    "phone": "0921670303",
    "deliveryAddress": "",
    "navigationAddress": "",
    "deliveryDate": "2026-12-05",
    "deliveryTime": "11:30:00",
    "deliveryNote": "",
    "importantNote": "美月:叉燒1條、脆鴨200|美月:叉燒1條、脆鴨200",
    "totalAmount": 570,
    "prepaidAmount": null,
    "paymentStatus": "unpaid",
    "paymentMethod": "cash",
    "needCollectMoney": true,
    "paymentDisplayText": "需收款 $570",
    "bagCount": 1,
    "bags": [
        {
            "bagNo": 1,
            "bagName": "第1袋",
            "itemsText": "油雞腿單點 x1、拼盤-大 x1、叉燒單點 x1",
            "items": [
                {
                    "productName": "油雞腿單點",
                    "quantity": 1,
                    "options": [
                        {
                            "optionGroupCode": "S006",
                            "optionGroupName": "數量",
                            "optionCode": "S006_20",
                            "optionName": "2支",
                            "priceDelta": 170,
                            "quantity": 1
                        }
                    ]
                },
                {
                    "productName": "拼盤-大",
                    "quantity": 1,
                    "options": []
                },
                {
                    "productName": "叉燒單點",
                    "quantity": 1,
                    "options": [
                        {
                            "optionGroupCode": "S005",
                            "optionGroupName": "份量",
                            "optionCode": "S005_10",
                            "optionName": "大200",
                            "priceDelta": 200,
                            "quantity": 1
                        }
                    ]
                }
            ]
        }
    ],
    "items": [
        {
            "lineNo": 1,
            "bagNo": 1,
            "productId": 39,
            "productCode": "",
            "productName": "油雞腿單點",
            "quantity": 1,
            "unitPrice": 170,
            "subtotal": 170,
            "itemNote": "",
            "options": [
                {
                    "optionGroupCode": "S006",
                    "optionGroupName": "數量",
                    "optionCode": "S006_20",
                    "optionName": "2支",
                    "priceDelta": 170,
                    "quantity": 1
                }
            ]
        },
        {
            "lineNo": 2,
            "bagNo": 1,
            "productId": 41,
            "productCode": "",
            "productName": "拼盤-大",
            "quantity": 1,
            "unitPrice": 200,
            "subtotal": 200,
            "itemNote": "",
            "options": []
        },
        {
            "lineNo": 3,
            "bagNo": 1,
            "productId": 44,
            "productCode": "",
            "productName": "叉燒單點",
            "quantity": 1,
            "unitPrice": 200,
            "subtotal": 200,
            "itemNote": "",
            "options": [
                {
                    "optionGroupCode": "S005",
                    "optionGroupName": "份量",
                    "optionCode": "S005_10",
                    "optionName": "大200",
                    "priceDelta": 200,
                    "quantity": 1
                }
            ]
        }
    ],
    "sourcePayload": {
        "orderCenterUrl": "https://order.joysiumei.com",
        "createdBy": "order_delivery_send.php",
        "orderId": 284,
        "orderNo": "LINE-F80A168C60BF912021267C5C",
        "operation": "create",
        "orderRevision": 1,
        "orderStatus": "new",
        "note": "完整訂單內容以 order 端為主;既有任務只更新訂單欄位,不覆蓋外送員資料。",
        "order": {
            "id": 284,
            "store_id": "1",
            "store_code": "dawan",
            "store_name": "大灣喜樂燒臘",
            "order_no": "LINE-F80A168C60BF912021267C5C",
            "external_order_id": null,
            "request_id": null,
            "source_system": "customer_line",
            "order_type": "pickup",
            "status": "draft",
            "business_date": "2026-12-05",
            "scheduled_date": null,
            "meal_period": null,
            "pickup_time": "11:30:00",
            "delivery_time": null,
            "customer_id": null,
            "customer_name_snapshot": null,
            "company_name_snapshot": null,
            "phone_snapshot": null,
            "phone_last3": null,
            "address_snapshot": null,
            "navigation_address_snapshot": null,
            "order_note": null,
            "delivery_note": null,
            "subtotal_amount": "0.00",
            "option_amount": "0.00",
            "discount_amount": "0.00",
            "manual_adjust_amount": "0.00",
            "total_amount": "570.00",
            "payment_status": "unpaid",
            "payment_method": "cash",
            "need_collect_money": 1,
            "is_monthly_billing": 0,
            "billing_type": null,
            "edit_deadline_at": null,
            "revision_no": 1,
            "created_by": null,
            "confirmed_at": null,
            "cancelled_at": null,
            "created_at": "2026-12-05 08:02:26",
            "updated_at": "2026-12-05 08:02:26",
            "source_type": "LINE",
            "customer_name": "謝志正",
            "customer_phone": "0921670303",
            "delivery_address": null,
            "pickup_date": "2026-12-05",
            "order_status": "new",
            "subtotal": "570.00",
            "need_delivery": 0,
            "delivery_notes": null,
            "notes": "美月:叉燒1條、脆鴨200",
            "navigation_address": null,
            "delivery_date": null,
            "important_note": "美月:叉燒1條、脆鴨200",
            "bag_count": 1,
            "delivery_sync_status": "not_sent",
            "delivery_task_id": null,
            "delivery_sync_message": null,
            "delivery_synced_at": null,
            "delivery_last_request_id": null,
            "delivery_last_http_status": null,
            "delivery_last_response_json": null,
            "delivery_last_endpoint": null,
            "delivery_last_error_code": null,
            "common_customer_id": null,
            "customer_uid": null,
            "delivery_order_revision": 1,
            "delivery_last_synced_revision": null,
            "delivery_fulfillment_status": "pending",
            "delivery_delivered_at": null,
            "delivery_delivered_by_uid": null,
            "delivery_delivered_by_name": null,
            "delivery_proof_photo_url": null,
            "delivery_status_event_id": null,
            "delivery_status_callback_at": null,
            "delivery_status_event_json": null,
            "service_datetime": "2026-12-05 11:30:00",
            "meal_period_id": "sat_lunch",
            "time_source": "business_hours",
            "business_hours_settings_version": null,
            "business_hours_settings_revision": null,
            "business_hours_override": 0,
            "business_hours_override_reason": null,
            "business_hours_override_at": null,
            "print_revision": 1,
            "print_revision_hash": "a9015782599e2b0d2d164672eac303b33c0620017bdd54608e94d29396a0d339",
            "print_revision_at": "2026-12-05 08:02:26",
            "delivery_test_task_synced": 0,
            "bag_names_json": "{\"1\":\"\"}",
            "prepaid_amount": null
        }
    },
    "itemsSnapshot": [
        {
            "lineNo": 1,
            "bagNo": 1,
            "productId": 39,
            "productCode": "",
            "productName": "油雞腿單點",
            "quantity": 1,
            "unitPrice": 170,
            "subtotal": 170,
            "itemNote": "",
            "options": [
                {
                    "optionGroupCode": "S006",
                    "optionGroupName": "數量",
                    "optionCode": "S006_20",
                    "optionName": "2支",
                    "priceDelta": 170,
                    "quantity": 1
                }
            ]
        },
        {
            "lineNo": 2,
            "bagNo": 1,
            "productId": 41,
            "productCode": "",
            "productName": "拼盤-大",
            "quantity": 1,
            "unitPrice": 200,
            "subtotal": 200,
            "itemNote": "",
            "options": []
        },
        {
            "lineNo": 3,
            "bagNo": 1,
            "productId": 44,
            "productCode": "",
            "productName": "叉燒單點",
            "quantity": 1,
            "unitPrice": 200,
            "subtotal": 200,
            "itemNote": "",
            "options": [
                {
                    "optionGroupCode": "S005",
                    "optionGroupName": "份量",
                    "optionCode": "S005_10",
                    "optionName": "大200",
                    "priceDelta": 200,
                    "quantity": 1
                }
            ]
        }
    ],
    "bagsSnapshot": [
        {
            "bagNo": 1,
            "bagName": "第1袋",
            "itemsText": "油雞腿單點 x1、拼盤-大 x1、叉燒單點 x1",
            "items": [
                {
                    "productName": "油雞腿單點",
                    "quantity": 1,
                    "options": [
                        {
                            "optionGroupCode": "S006",
                            "optionGroupName": "數量",
                            "optionCode": "S006_20",
                            "optionName": "2支",
                            "priceDelta": 170,
                            "quantity": 1
                        }
                    ]
                },
                {
                    "productName": "拼盤-大",
                    "quantity": 1,
                    "options": []
                },
                {
                    "productName": "叉燒單點",
                    "quantity": 1,
                    "options": [
                        {
                            "optionGroupCode": "S005",
                            "optionGroupName": "份量",
                            "optionCode": "S005_10",
                            "optionName": "大200",
                            "priceDelta": 200,
                            "quantity": 1
                        }
                    ]
                }
            ]
        }
    ],
    "source": "order_center",
    "taskSource": "order_center",
    "orderSource": "LINE"
}