{
    "success": true,
    "api_version": "JOY-PRINT-AGENT-PAYLOAD-1",
    "preview_version": "JOY-PRINT-PREVIEW-V2-R5.33.9-LINE-CLOUD-T1",
    "generated_at": "2026-12-04T16:30:56+08:00",
    "settings_version": "d62ec8d7490fc9924f75d0eb625638d3068104901243465db84c8b112d9a1fa4",
    "effective_settings_version": "e3ba46acacc8ef2e908a4cd6d4d9c80b68760b0ba0e4c16c5ce08704fb426ec4",
    "settings_updated_at": "2026-12-04T10:38:41+08:00",
    "settings_source": "print_settings_data_v2.json",
    "settings_fallback": false,
    "settings_warning": "",
    "agent_channel": "compatible",
    "intent_validation": "compatible_fallback",
    "settings_contract": {
        "contract_version": "P76-R6.1-CLOUD-PARAMS-2-WHITE-CONTRACT",
        "agent_version": "V0.2.7-P7.6-R6-FIX5CH",
        "renderer": "Windows GDI → 1-bit raster → RAW ESC/POS",
        "dpi": 203,
        "geometry": {
            "paper_width_mm": 80,
            "content_width_mm": 72,
            "margin_left_mm": 4,
            "content_width_dots": 576,
            "margin_left_dots": 32,
            "price_column_mm": 34,
            "price_column_dots": 272,
            "no_price_right_column_mm": 0
        },
        "translated_keys": [
            "font_choice",
            "font_family",
            "receipt_title_font_px",
            "bag_title_font_px",
            "pickup_number_title_font_px",
            "pickup_number_number_font_px",
            "pickup_number_content_font_px",
            "receipt_item_font_px",
            "receipt_item_note_font_px",
            "pickup_number_item_font_px",
            "pickup_number_item_note_font_px",
            "service_label_gap_before_mm",
            "item_row_gap_mm",
            "white_item_separator_style",
            "white_item_list_end_separator_style",
            "white_bag_separator_style",
            "white_section_separator_style",
            "white_header_info_mode"
        ],
        "ignored_keys": [
            "_v2_alert_label_fallback",
            "_v2_alert_label_source",
            "_v2_bag_label_fallback",
            "_v2_bag_label_source",
            "_v2_mode_label_fallback",
            "_v2_mode_label_source",
            "alert_label_style",
            "bag_label_style",
            "mode_label_style",
            "print_background_graphics"
        ]
    },
    "settings": {
        "_v2_alert_label_fallback": "0",
        "_v2_alert_label_source": "text_box",
        "_v2_bag_label_fallback": "0",
        "_v2_bag_label_source": "text_box",
        "_v2_mode_label_fallback": "0",
        "_v2_mode_label_source": "dark",
        "alert_font_px": "20",
        "alert_label_style": "frame",
        "bag_label_style": "frame",
        "content_width_mm": "72",
        "created_time_font_px": "20",
        "customer_info_font_px": "20",
        "font_choice": "Microsoft JhengHei",
        "font_custom": "",
        "font_family": "Microsoft JhengHei",
        "label_style_mode": "web_frame",
        "large_order_threshold": "30",
        "margin_left_mm": "4",
        "mode_badge_font_px": "20",
        "mode_label_style": "reverse",
        "order_note_font_px": "20",
        "packing_item_font_px": "24",
        "packing_item_name_qty_order": "qty_name",
        "packing_item_note_font_px": "20",
        "packing_show_address": "1",
        "packing_show_created_time": "0",
        "packing_show_customer": "1",
        "packing_show_field_label": "1",
        "packing_show_item_separator": "1",
        "packing_show_note": "1",
        "packing_show_payment": "1",
        "packing_show_phone": "1",
        "packing_show_price": "1",
        "packing_subtitle": "",
        "packing_title": "電話外送核對單",
        "packing_title_font_px": "24",
        "paper_width_mm": "80",
        "print_background_graphics": "1",
        "production_item_count_font_px": "20",
        "production_item_font_px": "26",
        "production_item_name_qty_order": "qty_name",
        "production_item_note_font_px": "22",
        "production_show_address": "1",
        "production_show_created_time": "0",
        "production_show_customer": "1",
        "production_show_field_label": "1",
        "production_show_item_count": "1",
        "production_show_item_separator": "1",
        "production_show_note": "1",
        "production_show_phone": "1",
        "production_title": "電外送製作單",
        "production_title_font_px": "24",
        "receipt_title_font_px": "18",
        "bag_title_font_px": "18",
        "pickup_number_title_font_px": "22",
        "pickup_number_number_font_px": "64",
        "pickup_number_content_font_px": "15",
        "receipt_item_font_px": "20",
        "receipt_item_note_font_px": "14",
        "pickup_number_item_font_px": "16",
        "pickup_number_item_note_font_px": "12",
        "service_label_gap_before_mm": "0.5",
        "item_row_gap_mm": "0",
        "white_item_separator_style": "fine_dashed",
        "white_item_list_end_separator_style": "thick_solid",
        "white_bag_separator_style": "thick_solid",
        "white_section_separator_style": "fine_dashed",
        "white_header_info_mode": "inline_label_value"
    },
    "order": {
        "id": 233,
        "order_no": "OC261118180834784",
        "customer": "嘉威(忠義一街)",
        "phone": "0939687341",
        "is_delivery": true,
        "source_key": "phone_delivery",
        "source_title": "電話外送",
        "pickup_date": "2026-11-19",
        "pickup_time": "11:30",
        "bag_count": 6,
        "item_count": 23,
        "total_amount": 2545
    },
    "documents": [
        {
            "document_style": "production_work",
            "title": "電外送製作單",
            "subtitle": "",
            "scope": "production",
            "bags": [
                {
                    "no": 1,
                    "name": "第一袋",
                    "item_count": 4,
                    "items": [
                        {
                            "id": 1949,
                            "name": "油雞飯",
                            "quantity": 2,
                            "display": "2 x 油雞飯",
                            "note": "半飯",
                            "unit_price": 100,
                            "subtotal": 200,
                            "bag_no": 1,
                            "bag_name": "第一袋"
                        },
                        {
                            "id": 1950,
                            "name": "蜜汁雞腿飯",
                            "quantity": 1,
                            "display": "1 x 蜜汁雞腿飯",
                            "note": "半飯",
                            "unit_price": 105,
                            "subtotal": 105,
                            "bag_no": 1,
                            "bag_name": "第一袋"
                        },
                        {
                            "id": 1951,
                            "name": "雞鴨飯",
                            "quantity": 1,
                            "display": "1 x 雞鴨飯",
                            "note": "鴨胸、半飯",
                            "unit_price": 105,
                            "subtotal": 105,
                            "bag_no": 1,
                            "bag_name": "第一袋"
                        }
                    ]
                },
                {
                    "no": 2,
                    "name": "第二袋",
                    "item_count": 5,
                    "items": [
                        {
                            "id": 1952,
                            "name": "三寶飯",
                            "quantity": 1,
                            "display": "1 x 三寶飯",
                            "note": "半飯",
                            "unit_price": 115,
                            "subtotal": 115,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        },
                        {
                            "id": 1953,
                            "name": "脆皮燒肉飯",
                            "quantity": 1,
                            "display": "1 x 脆皮燒肉飯",
                            "note": "半飯",
                            "unit_price": 110,
                            "subtotal": 110,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        },
                        {
                            "id": 1954,
                            "name": "大油雞腿飯",
                            "quantity": 1,
                            "display": "1 x 大油雞腿飯",
                            "note": "半飯",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        },
                        {
                            "id": 1955,
                            "name": "燒鴨飯",
                            "quantity": 1,
                            "display": "1 x 燒鴨飯",
                            "note": "",
                            "unit_price": 110,
                            "subtotal": 110,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        },
                        {
                            "id": 1970,
                            "name": "油雞飯",
                            "quantity": 1,
                            "display": "1 x 油雞飯",
                            "note": "半飯",
                            "unit_price": 100,
                            "subtotal": 100,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        }
                    ]
                },
                {
                    "no": 3,
                    "name": "第三袋",
                    "item_count": 3,
                    "items": [
                        {
                            "id": 1956,
                            "name": "油雞飯",
                            "quantity": 1,
                            "display": "1 x 油雞飯",
                            "note": "",
                            "unit_price": 100,
                            "subtotal": 100,
                            "bag_no": 3,
                            "bag_name": "第三袋"
                        },
                        {
                            "id": 1957,
                            "name": "大油雞腿飯",
                            "quantity": 1,
                            "display": "1 x 大油雞腿飯",
                            "note": "半飯",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 3,
                            "bag_name": "第三袋"
                        },
                        {
                            "id": 1958,
                            "name": "叉鴨飯",
                            "quantity": 1,
                            "display": "1 x 叉鴨飯",
                            "note": "半飯",
                            "unit_price": 105,
                            "subtotal": 105,
                            "bag_no": 3,
                            "bag_name": "第三袋"
                        }
                    ]
                },
                {
                    "no": 4,
                    "name": "第四袋",
                    "item_count": 4,
                    "items": [
                        {
                            "id": 1959,
                            "name": "油雞飯",
                            "quantity": 1,
                            "display": "1 x 油雞飯",
                            "note": "",
                            "unit_price": 100,
                            "subtotal": 100,
                            "bag_no": 4,
                            "bag_name": "第四袋"
                        },
                        {
                            "id": 1960,
                            "name": "脆叉飯",
                            "quantity": 1,
                            "display": "1 x 脆叉飯",
                            "note": "半飯、滷蛋",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 4,
                            "bag_name": "第四袋"
                        },
                        {
                            "id": 1961,
                            "name": "三寶飯",
                            "quantity": 1,
                            "display": "1 x 三寶飯",
                            "note": "半飯、滷蛋",
                            "unit_price": 130,
                            "subtotal": 130,
                            "bag_no": 4,
                            "bag_name": "第四袋"
                        },
                        {
                            "id": 1962,
                            "name": "油雞飯",
                            "quantity": 1,
                            "display": "1 x 油雞飯",
                            "note": "不飯換蛋",
                            "unit_price": 100,
                            "subtotal": 100,
                            "bag_no": 4,
                            "bag_name": "第四袋"
                        }
                    ]
                },
                {
                    "no": 5,
                    "name": "第五袋",
                    "item_count": 4,
                    "items": [
                        {
                            "id": 1963,
                            "name": "雙拼飯(隨機)",
                            "quantity": 1,
                            "display": "1 x 雙拼飯(隨機)",
                            "note": "脆皮拼肝腸、半飯、滷蛋",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 5,
                            "bag_name": "第五袋"
                        },
                        {
                            "id": 1964,
                            "name": "蜜汁雞腿飯",
                            "quantity": 1,
                            "display": "1 x 蜜汁雞腿飯",
                            "note": "半飯、滷蛋",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 5,
                            "bag_name": "第五袋"
                        },
                        {
                            "id": 1965,
                            "name": "大油雞腿飯",
                            "quantity": 1,
                            "display": "1 x 大油雞腿飯",
                            "note": "半飯",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 5,
                            "bag_name": "第五袋"
                        },
                        {
                            "id": 1966,
                            "name": "大油雞腿飯",
                            "quantity": 1,
                            "display": "1 x 大油雞腿飯",
                            "note": "不飯換蛋",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 5,
                            "bag_name": "第五袋"
                        }
                    ]
                },
                {
                    "no": 6,
                    "name": "第六袋",
                    "item_count": 3,
                    "items": [
                        {
                            "id": 1967,
                            "name": "大油雞腿飯",
                            "quantity": 1,
                            "display": "1 x 大油雞腿飯",
                            "note": "",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 6,
                            "bag_name": "第六袋"
                        },
                        {
                            "id": 1968,
                            "name": "油雞飯",
                            "quantity": 1,
                            "display": "1 x 油雞飯",
                            "note": "",
                            "unit_price": 100,
                            "subtotal": 100,
                            "bag_no": 6,
                            "bag_name": "第六袋"
                        },
                        {
                            "id": 1969,
                            "name": "蜜汁雞腿飯",
                            "quantity": 1,
                            "display": "1 x 蜜汁雞腿飯",
                            "note": "半飯",
                            "unit_price": 105,
                            "subtotal": 105,
                            "bag_no": 6,
                            "bag_name": "第六袋"
                        }
                    ]
                }
            ],
            "order_no": "OC261118180834784",
            "source_title": "電話外送",
            "source_time_label": "外送",
            "pickup_date": "2026-11-19",
            "pickup_time": "11:30",
            "created_at": "2026-11-18 18:08:34",
            "print_time": "2026-12-04 16:30",
            "customer": "嘉威(忠義一街)",
            "masked_customer": "嘉*)",
            "phone": "0939687341",
            "address": "仁德區忠義一街38巷5號",
            "order_note": "只有第五袋要筷子、收據",
            "is_delivery": true,
            "is_queue": false,
            "queue_number": "",
            "pickup_code": "341",
            "display_code": "341",
            "item_count": 23,
            "bag_count": 6,
            "total_amount": 2545,
            "payment_display": "",
            "alert_text": "",
            "v2_document_id": "production_work_phone_delivery",
            "cloud_template_url": "https://order.joysiumei.com/print_preview_v2_ts.php?order_id=233&agent_render=1&agent_template_contract=1&_joy_agent=1796373056085&document_style=production_work&document_id=production_work_phone_delivery"
        },
        {
            "document_style": "packing_check",
            "title": "電話外送核對單",
            "subtitle": "",
            "scope": "packing",
            "bags": [
                {
                    "no": 1,
                    "name": "第一袋",
                    "item_count": 4,
                    "items": [
                        {
                            "id": 1949,
                            "name": "油雞飯",
                            "quantity": 2,
                            "display": "2 x 油雞飯",
                            "note": "半飯",
                            "unit_price": 100,
                            "subtotal": 200,
                            "bag_no": 1,
                            "bag_name": "第一袋"
                        },
                        {
                            "id": 1950,
                            "name": "蜜汁雞腿飯",
                            "quantity": 1,
                            "display": "1 x 蜜汁雞腿飯",
                            "note": "半飯",
                            "unit_price": 105,
                            "subtotal": 105,
                            "bag_no": 1,
                            "bag_name": "第一袋"
                        },
                        {
                            "id": 1951,
                            "name": "雞鴨飯",
                            "quantity": 1,
                            "display": "1 x 雞鴨飯",
                            "note": "鴨胸、半飯",
                            "unit_price": 105,
                            "subtotal": 105,
                            "bag_no": 1,
                            "bag_name": "第一袋"
                        }
                    ]
                },
                {
                    "no": 2,
                    "name": "第二袋",
                    "item_count": 5,
                    "items": [
                        {
                            "id": 1952,
                            "name": "三寶飯",
                            "quantity": 1,
                            "display": "1 x 三寶飯",
                            "note": "半飯",
                            "unit_price": 115,
                            "subtotal": 115,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        },
                        {
                            "id": 1953,
                            "name": "脆皮燒肉飯",
                            "quantity": 1,
                            "display": "1 x 脆皮燒肉飯",
                            "note": "半飯",
                            "unit_price": 110,
                            "subtotal": 110,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        },
                        {
                            "id": 1954,
                            "name": "大油雞腿飯",
                            "quantity": 1,
                            "display": "1 x 大油雞腿飯",
                            "note": "半飯",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        },
                        {
                            "id": 1955,
                            "name": "燒鴨飯",
                            "quantity": 1,
                            "display": "1 x 燒鴨飯",
                            "note": "",
                            "unit_price": 110,
                            "subtotal": 110,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        },
                        {
                            "id": 1970,
                            "name": "油雞飯",
                            "quantity": 1,
                            "display": "1 x 油雞飯",
                            "note": "半飯",
                            "unit_price": 100,
                            "subtotal": 100,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        }
                    ]
                },
                {
                    "no": 3,
                    "name": "第三袋",
                    "item_count": 3,
                    "items": [
                        {
                            "id": 1956,
                            "name": "油雞飯",
                            "quantity": 1,
                            "display": "1 x 油雞飯",
                            "note": "",
                            "unit_price": 100,
                            "subtotal": 100,
                            "bag_no": 3,
                            "bag_name": "第三袋"
                        },
                        {
                            "id": 1957,
                            "name": "大油雞腿飯",
                            "quantity": 1,
                            "display": "1 x 大油雞腿飯",
                            "note": "半飯",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 3,
                            "bag_name": "第三袋"
                        },
                        {
                            "id": 1958,
                            "name": "叉鴨飯",
                            "quantity": 1,
                            "display": "1 x 叉鴨飯",
                            "note": "半飯",
                            "unit_price": 105,
                            "subtotal": 105,
                            "bag_no": 3,
                            "bag_name": "第三袋"
                        }
                    ]
                },
                {
                    "no": 4,
                    "name": "第四袋",
                    "item_count": 4,
                    "items": [
                        {
                            "id": 1959,
                            "name": "油雞飯",
                            "quantity": 1,
                            "display": "1 x 油雞飯",
                            "note": "",
                            "unit_price": 100,
                            "subtotal": 100,
                            "bag_no": 4,
                            "bag_name": "第四袋"
                        },
                        {
                            "id": 1960,
                            "name": "脆叉飯",
                            "quantity": 1,
                            "display": "1 x 脆叉飯",
                            "note": "半飯、滷蛋",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 4,
                            "bag_name": "第四袋"
                        },
                        {
                            "id": 1961,
                            "name": "三寶飯",
                            "quantity": 1,
                            "display": "1 x 三寶飯",
                            "note": "半飯、滷蛋",
                            "unit_price": 130,
                            "subtotal": 130,
                            "bag_no": 4,
                            "bag_name": "第四袋"
                        },
                        {
                            "id": 1962,
                            "name": "油雞飯",
                            "quantity": 1,
                            "display": "1 x 油雞飯",
                            "note": "不飯換蛋",
                            "unit_price": 100,
                            "subtotal": 100,
                            "bag_no": 4,
                            "bag_name": "第四袋"
                        }
                    ]
                },
                {
                    "no": 5,
                    "name": "第五袋",
                    "item_count": 4,
                    "items": [
                        {
                            "id": 1963,
                            "name": "雙拼飯(隨機)",
                            "quantity": 1,
                            "display": "1 x 雙拼飯(隨機)",
                            "note": "脆皮拼肝腸、半飯、滷蛋",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 5,
                            "bag_name": "第五袋"
                        },
                        {
                            "id": 1964,
                            "name": "蜜汁雞腿飯",
                            "quantity": 1,
                            "display": "1 x 蜜汁雞腿飯",
                            "note": "半飯、滷蛋",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 5,
                            "bag_name": "第五袋"
                        },
                        {
                            "id": 1965,
                            "name": "大油雞腿飯",
                            "quantity": 1,
                            "display": "1 x 大油雞腿飯",
                            "note": "半飯",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 5,
                            "bag_name": "第五袋"
                        },
                        {
                            "id": 1966,
                            "name": "大油雞腿飯",
                            "quantity": 1,
                            "display": "1 x 大油雞腿飯",
                            "note": "不飯換蛋",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 5,
                            "bag_name": "第五袋"
                        }
                    ]
                },
                {
                    "no": 6,
                    "name": "第六袋",
                    "item_count": 3,
                    "items": [
                        {
                            "id": 1967,
                            "name": "大油雞腿飯",
                            "quantity": 1,
                            "display": "1 x 大油雞腿飯",
                            "note": "",
                            "unit_price": 120,
                            "subtotal": 120,
                            "bag_no": 6,
                            "bag_name": "第六袋"
                        },
                        {
                            "id": 1968,
                            "name": "油雞飯",
                            "quantity": 1,
                            "display": "1 x 油雞飯",
                            "note": "",
                            "unit_price": 100,
                            "subtotal": 100,
                            "bag_no": 6,
                            "bag_name": "第六袋"
                        },
                        {
                            "id": 1969,
                            "name": "蜜汁雞腿飯",
                            "quantity": 1,
                            "display": "1 x 蜜汁雞腿飯",
                            "note": "半飯",
                            "unit_price": 105,
                            "subtotal": 105,
                            "bag_no": 6,
                            "bag_name": "第六袋"
                        }
                    ]
                }
            ],
            "order_no": "OC261118180834784",
            "source_title": "電話外送",
            "source_time_label": "外送",
            "pickup_date": "2026-11-19",
            "pickup_time": "11:30",
            "created_at": "2026-11-18 18:08:34",
            "print_time": "2026-12-04 16:30",
            "customer": "嘉威(忠義一街)",
            "masked_customer": "嘉*)",
            "phone": "0939687341",
            "address": "仁德區忠義一街38巷5號",
            "order_note": "只有第五袋要筷子、收據",
            "is_delivery": true,
            "is_queue": false,
            "queue_number": "",
            "pickup_code": "341",
            "display_code": "341",
            "item_count": 23,
            "bag_count": 6,
            "total_amount": 2545,
            "payment_display": "",
            "alert_text": "",
            "v2_document_id": "packing_check_phone_delivery",
            "cloud_template_url": "https://order.joysiumei.com/print_preview_v2_ts.php?order_id=233&agent_render=1&agent_template_contract=1&_joy_agent=1796373056085&document_style=packing_check&document_id=packing_check_phone_delivery"
        }
    ],
    "v2_bridge": {
        "version": "JOY-PRINT-AGENT-BRIDGE-V2-R5.33.1-GENERAL-DOC-T1",
        "mapping_diagnostics": {
            "translator_version": "JOY-PRINT-AGENT-BRIDGE-V2-R5.33.1-GENERAL-DOC-T1",
            "mapped_keys": [
                "paper_width_mm",
                "content_width_mm",
                "margin_left_mm",
                "font_family",
                "font_choice",
                "bag_label_style",
                "mode_label_style",
                "alert_label_style",
                "print_background_graphics",
                "mode_badge_font_px",
                "alert_font_px"
            ],
            "fallback_keys": [],
            "unsupported_keys": [
                "dynamic_price_column_mm",
                "line_gap_before_mm",
                "line_gap_after_mm",
                "badge_padding_mm",
                "badge_border_width_mm",
                "font_quality",
                "gdi_antialias_mode"
            ],
            "resolved_documents": [
                "production_work",
                "packing_check"
            ],
            "legacy_contract": "JOY-PRINT-AGENT-PAYLOAD-1",
            "formal_profile_reference": "728樣式_20260728",
            "effective_label_contract": {
                "bag_label_style": "frame",
                "mode_label_style": "reverse",
                "alert_label_style": "frame",
                "label_style_mode": "web_frame",
                "print_background_graphics": "1"
            },
            "v2_label_sources": {
                "bag": "text_box",
                "mode": "dark",
                "alert": "text_box"
            }
        },
        "print_model_version": "JOY-PRINT-MODEL-V2-R5.14.1",
        "renderer_version": "JOY-PRINT-RENDERER-V2-R5.18.9-REPORT-AMOUNTS-T1",
        "settings_schema": "5.5",
        "requested_document_style": "all",
        "resolved_document_ids": {
            "production_work": "production_work_phone_delivery",
            "packing_check": "packing_check_phone_delivery"
        },
        "warnings": []
    }
}