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

外送詳細資訊

訂單編號
OC261204181621836
動作
更新
版本
R2
狀態
外送資料已更新
外送資料已更新
任務:-P8-YWIy-ORWFGh5JVtr
外送任務更新成功
顯示技術資料
{
    "sourceSystem": "order_center_api",
    "sourceType": "api",
    "syncStatus": "ready_to_import",
    "apiVersion": "v1",
    "requestId": "REQ_OC261204181621836_R2_UPDATE_20261205123320",
    "externalOrderId": "OC261204181621836",
    "operation": "update",
    "syncOperation": "update",
    "orderRevision": 2,
    "deliveryTaskId": "-P8-YWIy-ORWFGh5JVtr",
    "changeSummary": "外送任務更新成功",
    "storeId": "dawan",
    "storeCode": "dawan",
    "storeName": "大灣喜樂燒臘",
    "customerName": "黃小姐",
    "phone": "0955723575",
    "deliveryAddress": "南台科大(姑婆廟旁邊大門",
    "navigationAddress": "南台科大(姑婆廟旁邊大門",
    "deliveryDate": "2026-12-05",
    "deliveryTime": "11:00:00",
    "deliveryNote": "",
    "importantNote": "",
    "totalAmount": 10500,
    "paymentStatus": "unpaid",
    "paymentMethod": "cash",
    "needCollectMoney": true,
    "paymentDisplayText": "需收款 $10,500",
    "bagCount": 1,
    "bags": [
        {
            "bagNo": 1,
            "bagName": "第1袋",
            "itemsText": "雙拼(隨機搭配) x100",
            "items": [
                {
                    "productName": "雙拼(隨機搭配)",
                    "quantity": 100,
                    "options": []
                }
            ]
        }
    ],
    "items": [
        {
            "lineNo": 1,
            "bagNo": 1,
            "productId": 38,
            "productCode": "B023",
            "productName": "雙拼(隨機搭配)",
            "quantity": 100,
            "unitPrice": 105,
            "subtotal": 10500,
            "itemNote": "",
            "options": []
        }
    ],
    "sourcePayload": {
        "orderCenterUrl": "https://order.joysiumei.com",
        "createdBy": "order_delivery_send.php",
        "orderId": 283,
        "orderNo": "OC261204181621836",
        "operation": "update",
        "orderRevision": 2,
        "orderStatus": "new",
        "note": "完整訂單內容以 order 端為主;既有任務只更新訂單欄位,不覆蓋外送員資料。",
        "order": {
            "id": 283,
            "store_id": "1",
            "store_code": "dawan",
            "store_name": "大灣喜樂燒臘",
            "order_no": "OC261204181621836",
            "external_order_id": null,
            "request_id": null,
            "source_system": "order_center",
            "order_type": "delivery",
            "status": "new",
            "business_date": "2026-12-05",
            "scheduled_date": null,
            "meal_period": null,
            "pickup_time": "11:00:00",
            "delivery_time": "11:00:00",
            "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": "",
            "delivery_note": "",
            "subtotal_amount": "0.00",
            "option_amount": "0.00",
            "discount_amount": "0.00",
            "manual_adjust_amount": "0.00",
            "total_amount": "10500.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-04 18:16:21",
            "updated_at": "2026-12-04 18:16:49",
            "source_type": "phone",
            "customer_name": "黃小姐",
            "customer_phone": "0955723575",
            "delivery_address": "南台科大(姑婆廟旁邊大門",
            "pickup_date": "2026-12-05",
            "order_status": "new",
            "subtotal": "10500.00",
            "need_delivery": 1,
            "delivery_notes": "",
            "notes": "",
            "navigation_address": "南台科大(姑婆廟旁邊大門",
            "delivery_date": "2026-12-05",
            "important_note": "",
            "bag_count": 1,
            "delivery_sync_status": "updated",
            "delivery_task_id": "-P8-YWIy-ORWFGh5JVtr",
            "delivery_sync_message": "外送任務更新成功",
            "delivery_synced_at": "2026-12-04 18:16:49",
            "delivery_last_request_id": "REQ_OC261204181621836_R2_UPDATE_20261204181648",
            "delivery_last_http_status": 200,
            "delivery_last_response_json": "{\n    \"success\": true,\n    \"duplicated\": false,\n    \"operation\": \"update\",\n    \"resumed\": false,\n    \"deliveryTaskId\": \"-P8-YWIy-ORWFGh5JVtr\",\n    \"message\": \"外送任務更新成功\",\n    \"_httpStatus\": 200,\n    \"_rawBody\": \"{\\n    \\\"success\\\": true,\\n    \\\"duplicated\\\": false,\\n    \\\"operation\\\": \\\"update\\\",\\n    \\\"resumed\\\": false,\\n    \\\"deliveryTaskId\\\": \\\"-P8-YWIy-ORWFGh5JVtr\\\",\\n    \\\"message\\\": \\\"外送任務更新成功\\\"\\n}\"\n}",
            "delivery_last_endpoint": "https://delivery.joysiumei.com/api/order_center_import.php",
            "delivery_last_error_code": null,
            "common_customer_id": null,
            "customer_uid": "",
            "delivery_order_revision": 2,
            "delivery_last_synced_revision": 2,
            "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:00:00",
            "meal_period_id": "sat_lunch",
            "time_source": "staff_internal",
            "business_hours_settings_version": "V1.0-BH3",
            "business_hours_settings_revision": "c30a7f65bcbd740600257c94808051bb31247c44b14bd0018f9c901109edb8ab",
            "business_hours_override": 0,
            "business_hours_override_reason": null,
            "business_hours_override_at": null,
            "print_revision": 2,
            "print_revision_hash": "35433832c2cd22fefb252205c5efaa6a92f447fa404697ebcfa857b61791e349",
            "print_revision_at": "2026-12-04 18:16:46",
            "delivery_test_task_synced": 0,
            "bag_names_json": "{\"1\":\"本次訂單\"}",
            "prepaid_amount": "0.00"
        }
    },
    "itemsSnapshot": [
        {
            "lineNo": 1,
            "bagNo": 1,
            "productId": 38,
            "productCode": "B023",
            "productName": "雙拼(隨機搭配)",
            "quantity": 100,
            "unitPrice": 105,
            "subtotal": 10500,
            "itemNote": "",
            "options": []
        }
    ],
    "bagsSnapshot": [
        {
            "bagNo": 1,
            "bagName": "第1袋",
            "itemsText": "雙拼(隨機搭配) x100",
            "items": [
                {
                    "productName": "雙拼(隨機搭配)",
                    "quantity": 100,
                    "options": []
                }
            ]
        }
    ],
    "source": "order_center",
    "taskSource": "order_center",
    "orderSource": "phone"
}