喜樂燒臘|外送串接管理
外送同步設定・串接檢視

新外送訂單通知方式

設定新外送訂單成立後的通知方式。
目前:直接通知
進階串接工具|今日訂單・Payload・JSON

Payload 預覽

訂單編號
LINE-F80A168C60BF912021267C5C
動作
create
版本
R1
金額
$570
尚缺:外送地址
油雞腿單點 × 1 $170
+ 數量:2支($170)
拼盤-大 × 1 $200
叉燒單點 × 1 $200
+ 份量:大200($200)

JSON Payload

{
    "sourceSystem": "order_center_api",
    "sourceType": "api_preview",
    "source": "order_center",
    "taskSource": "order_center",
    "orderSource": "LINE",
    "syncStatus": "preview_only",
    "apiVersion": "v1",
    "requestId": "B4PREVIEW-LINE-F80A168C60BF912021267C5C-R1-CREATE-20261205131926",
    "externalOrderId": "LINE-F80A168C60BF912021267C5C",
    "operation": "create",
    "syncOperation": "create",
    "orderRevision": 1,
    "deliveryTaskId": "",
    "changeSummary": "",
    "storeId": 1,
    "storeCode": "JOYSM",
    "storeName": "喜樂燒臘",
    "customerName": "謝志正",
    "phone": "0921670303",
    "deliveryAddress": "",
    "navigationAddress": "",
    "deliveryTime": "2026-12-05 11:30:00",
    "pickupDate": "2026-12-05",
    "pickupTime": "11:30:00",
    "orderStatus": "new",
    "orderStatusText": "新單",
    "orderNote": "美月:叉燒1條、脆鴨200",
    "itemsText": "油雞腿單點×1、拼盤-大×1、叉燒單點×1",
    "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
                }
            ]
        },
        {
            "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
                }
            ]
        }
    ],
    "bagsSnapshot": [
        {
            "bagNo": 1,
            "bagLabel": "第1袋",
            "totalBags": 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
                        }
                    ]
                },
                {
                    "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
                        }
                    ]
                }
            ]
        }
    ],
    "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
                }
            ]
        },
        {
            "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
                }
            ]
        }
    ],
    "bags": [
        {
            "bagNo": 1,
            "bagLabel": "第1袋",
            "totalBags": 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
                        }
                    ]
                },
                {
                    "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
                        }
                    ]
                }
            ]
        }
    ],
    "bagCount": 1,
    "totalAmount": 570,
    "paymentStatus": "unpaid",
    "paymentMethod": "cash",
    "needCollectMoney": true,
    "paymentDisplayText": "需收款 $570",
    "sourcePayload": {
        "orders": {
            "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
        },
        "order_items": [
            {
                "id": 2223,
                "store_id": "1",
                "order_id": 284,
                "bag_id": null,
                "product_id": 39,
                "product_code_snapshot": null,
                "product_name_snapshot": "油雞腿單點",
                "product_type_snapshot": null,
                "unit_price_snapshot": "170.00",
                "quantity": 1,
                "base_subtotal": "0.00",
                "option_subtotal": "0.00",
                "discount_subtotal": "0.00",
                "item_subtotal": "0.00",
                "item_note": null,
                "sort_order": 0,
                "created_at": "2026-12-05 08:02:26",
                "updated_at": "2026-12-05 08:02:26",
                "product_code": null,
                "product_name": "油雞腿單點",
                "unit_price": "170.00",
                "line_total": "170.00",
                "item_notes": "",
                "subtotal": "170.00",
                "bag_no": 1,
                "bag_name": "第 1 袋",
                "product_short_name_snapshot": "",
                "price_adjustment_json": null
            },
            {
                "id": 2224,
                "store_id": "1",
                "order_id": 284,
                "bag_id": null,
                "product_id": 41,
                "product_code_snapshot": null,
                "product_name_snapshot": "拼盤-大",
                "product_type_snapshot": null,
                "unit_price_snapshot": "200.00",
                "quantity": 1,
                "base_subtotal": "0.00",
                "option_subtotal": "0.00",
                "discount_subtotal": "0.00",
                "item_subtotal": "0.00",
                "item_note": null,
                "sort_order": 0,
                "created_at": "2026-12-05 08:02:26",
                "updated_at": "2026-12-05 08:02:26",
                "product_code": null,
                "product_name": "拼盤-大",
                "unit_price": "200.00",
                "line_total": "200.00",
                "item_notes": "",
                "subtotal": "200.00",
                "bag_no": 1,
                "bag_name": "第 1 袋",
                "product_short_name_snapshot": "",
                "price_adjustment_json": null
            },
            {
                "id": 2225,
                "store_id": "1",
                "order_id": 284,
                "bag_id": null,
                "product_id": 44,
                "product_code_snapshot": null,
                "product_name_snapshot": "叉燒單點",
                "product_type_snapshot": null,
                "unit_price_snapshot": "200.00",
                "quantity": 1,
                "base_subtotal": "0.00",
                "option_subtotal": "0.00",
                "discount_subtotal": "0.00",
                "item_subtotal": "0.00",
                "item_note": null,
                "sort_order": 0,
                "created_at": "2026-12-05 08:02:26",
                "updated_at": "2026-12-05 08:02:26",
                "product_code": null,
                "product_name": "叉燒單點",
                "unit_price": "200.00",
                "line_total": "200.00",
                "item_notes": "",
                "subtotal": "200.00",
                "bag_no": 1,
                "bag_name": "第 1 袋",
                "product_short_name_snapshot": "",
                "price_adjustment_json": null
            }
        ],
        "order_item_options": {
            "2223": [
                {
                    "id": 827,
                    "store_id": "1",
                    "order_id": 284,
                    "order_item_id": 2223,
                    "option_group_id": 6,
                    "option_item_id": 21,
                    "option_group_code_snapshot": null,
                    "option_group_name_snapshot": "數量",
                    "option_code_snapshot": null,
                    "option_name_snapshot": "2支",
                    "option_price_snapshot": "0.00",
                    "option_qty": 1,
                    "option_subtotal": "0.00",
                    "sort_order": 0,
                    "created_at": "2026-12-05 08:02:26",
                    "updated_at": "2026-12-05 08:02:26",
                    "option_group_code": "S006",
                    "option_group_name": "數量",
                    "option_code": "S006_20",
                    "option_name": "2支",
                    "price_delta": "170.00",
                    "base_price_delta": "0.00",
                    "option_quantity": 1,
                    "child_source_type": null,
                    "child_source_ids": null,
                    "child_source_codes": null,
                    "child_source_names": null,
                    "child_snapshot_json": null,
                    "unit_price_delta": "170.00",
                    "child_source_id": null,
                    "child_source_code": "",
                    "child_source_name": "",
                    "child_selection_json": "{\"sources\":[],\"mode\":\"legacy\",\"type\":\"none\",\"name_mode\":\"full\",\"name_prefix\":\"\"}"
                }
            ],
            "2225": [
                {
                    "id": 828,
                    "store_id": "1",
                    "order_id": 284,
                    "order_item_id": 2225,
                    "option_group_id": 5,
                    "option_item_id": 17,
                    "option_group_code_snapshot": null,
                    "option_group_name_snapshot": "份量",
                    "option_code_snapshot": null,
                    "option_name_snapshot": "大200",
                    "option_price_snapshot": "0.00",
                    "option_qty": 1,
                    "option_subtotal": "0.00",
                    "sort_order": 0,
                    "created_at": "2026-12-05 08:02:26",
                    "updated_at": "2026-12-05 08:02:26",
                    "option_group_code": "S005",
                    "option_group_name": "份量",
                    "option_code": "S005_10",
                    "option_name": "大200",
                    "price_delta": "200.00",
                    "base_price_delta": "0.00",
                    "option_quantity": 1,
                    "child_source_type": null,
                    "child_source_ids": null,
                    "child_source_codes": null,
                    "child_source_names": null,
                    "child_snapshot_json": null,
                    "unit_price_delta": "200.00",
                    "child_source_id": null,
                    "child_source_code": "",
                    "child_source_name": "",
                    "child_selection_json": "{\"sources\":[],\"mode\":\"legacy\",\"type\":\"none\",\"name_mode\":\"full\",\"name_prefix\":\"\"}"
                }
            ]
        }
    }
}