新外送訂單通知方式
進階串接工具|今日訂單・Payload・JSON
Payload 預覽
訂單編號
OC261203102721148
動作
update
版本
R2
金額
$3,560
格式可供檢查。
脆皮拼油雞飯 × 32
素食代購 × 2
JSON Payload
{
"sourceSystem": "order_center_api",
"sourceType": "api_preview",
"source": "order_center",
"taskSource": "order_center",
"orderSource": "phone",
"syncStatus": "preview_only",
"apiVersion": "v1",
"requestId": "B4PREVIEW-OC261203102721148-R2-UPDATE-20261205131926",
"externalOrderId": "OC261203102721148",
"operation": "update",
"syncOperation": "update",
"orderRevision": 2,
"deliveryTaskId": "-P7tiaZ0s49ROJJTeMGj",
"changeSummary": "外送任務更新成功",
"storeId": 1,
"storeCode": "JOYSM",
"storeName": "喜樂燒臘",
"customerName": "林小姐",
"phone": "0931972758",
"deliveryAddress": "保大路一段156 媽廟朝天宮",
"navigationAddress": "保大路一段156 媽廟朝天宮",
"deliveryTime": "2026-12-05 11:30:00",
"pickupDate": "2026-12-05",
"pickupTime": "11:30:00",
"orderStatus": "new",
"orderStatusText": "新單",
"orderNote": "|收據*2 2400一張 餘額一張",
"itemsText": "脆皮拼油雞飯×32、素食代購×2",
"itemsSnapshot": [
{
"lineNo": 1,
"bagNo": 1,
"productId": 30,
"productCode": "B015",
"productName": "脆皮拼油雞飯",
"quantity": 32,
"unitPrice": 105,
"subtotal": 3360,
"itemNote": "",
"options": []
},
{
"lineNo": 2,
"bagNo": 1,
"productId": 28,
"productCode": "B013",
"productName": "素食代購",
"quantity": 2,
"unitPrice": 100,
"subtotal": 200,
"itemNote": "",
"options": []
}
],
"bagsSnapshot": [
{
"bagNo": 1,
"bagLabel": "第1袋",
"totalBags": 1,
"items": [
{
"lineNo": 1,
"bagNo": 1,
"productId": 30,
"productCode": "B015",
"productName": "脆皮拼油雞飯",
"quantity": 32,
"unitPrice": 105,
"subtotal": 3360,
"itemNote": "",
"options": []
},
{
"lineNo": 2,
"bagNo": 1,
"productId": 28,
"productCode": "B013",
"productName": "素食代購",
"quantity": 2,
"unitPrice": 100,
"subtotal": 200,
"itemNote": "",
"options": []
}
]
}
],
"items": [
{
"lineNo": 1,
"bagNo": 1,
"productId": 30,
"productCode": "B015",
"productName": "脆皮拼油雞飯",
"quantity": 32,
"unitPrice": 105,
"subtotal": 3360,
"itemNote": "",
"options": []
},
{
"lineNo": 2,
"bagNo": 1,
"productId": 28,
"productCode": "B013",
"productName": "素食代購",
"quantity": 2,
"unitPrice": 100,
"subtotal": 200,
"itemNote": "",
"options": []
}
],
"bags": [
{
"bagNo": 1,
"bagLabel": "第1袋",
"totalBags": 1,
"items": [
{
"lineNo": 1,
"bagNo": 1,
"productId": 30,
"productCode": "B015",
"productName": "脆皮拼油雞飯",
"quantity": 32,
"unitPrice": 105,
"subtotal": 3360,
"itemNote": "",
"options": []
},
{
"lineNo": 2,
"bagNo": 1,
"productId": 28,
"productCode": "B013",
"productName": "素食代購",
"quantity": 2,
"unitPrice": 100,
"subtotal": 200,
"itemNote": "",
"options": []
}
]
}
],
"bagCount": 1,
"totalAmount": 3560,
"paymentStatus": "unpaid",
"paymentMethod": "cash",
"needCollectMoney": true,
"paymentDisplayText": "需收款 $3,560",
"sourcePayload": {
"orders": {
"id": 276,
"store_id": "1",
"store_code": "dawan",
"store_name": "大灣喜樂燒臘",
"order_no": "OC261203102721148",
"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:30:00",
"delivery_time": "11:30: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": "收據*2 2400一張 餘額一張",
"subtotal_amount": "0.00",
"option_amount": "0.00",
"discount_amount": "0.00",
"manual_adjust_amount": "0.00",
"total_amount": "3560.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-03 10:27:21",
"updated_at": "2026-12-05 09:44:32",
"source_type": "phone",
"customer_name": "林小姐",
"customer_phone": "0931972758",
"delivery_address": "保大路一段156 媽廟朝天宮",
"pickup_date": "2026-12-05",
"order_status": "new",
"subtotal": "3560.00",
"need_delivery": 1,
"delivery_notes": "收據*2 2400一張 餘額一張",
"notes": "",
"navigation_address": "保大路一段156 媽廟朝天宮",
"delivery_date": "2026-12-05",
"important_note": "",
"bag_count": 1,
"delivery_sync_status": "updated",
"delivery_task_id": "-P7tiaZ0s49ROJJTeMGj",
"delivery_sync_message": "外送任務更新成功",
"delivery_synced_at": "2026-12-05 09:44:32",
"delivery_last_request_id": "REQ_OC261203102721148_R2_UPDATE_20261205094431",
"delivery_last_http_status": 200,
"delivery_last_response_json": "{\n \"success\": true,\n \"duplicated\": false,\n \"operation\": \"update\",\n \"resumed\": false,\n \"deliveryTaskId\": \"-P7tiaZ0s49ROJJTeMGj\",\n \"message\": \"外送任務更新成功\",\n \"_httpStatus\": 200,\n \"_rawBody\": \"{\\n \\\"success\\\": true,\\n \\\"duplicated\\\": false,\\n \\\"operation\\\": \\\"update\\\",\\n \\\"resumed\\\": false,\\n \\\"deliveryTaskId\\\": \\\"-P7tiaZ0s49ROJJTeMGj\\\",\\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:30:00",
"meal_period_id": "sat_lunch",
"time_source": "staff_internal",
"business_hours_settings_version": "V1.0-BH3",
"business_hours_settings_revision": "8450801d6042c1e048fbc27ba9c86ba990b36342f03b8ad2d64561472c00ef12",
"business_hours_override": 0,
"business_hours_override_reason": null,
"business_hours_override_at": null,
"print_revision": 2,
"print_revision_hash": "f89859dd7404268bef8e00bd8a08492f90917e2706bef8521e09fa90a936bfd3",
"print_revision_at": "2026-12-05 09:44:29",
"delivery_test_task_synced": 0,
"bag_names_json": "{\"1\":\"本次訂單\"}",
"prepaid_amount": "0.00"
},
"order_items": [
{
"id": 2235,
"store_id": "1",
"order_id": 276,
"bag_id": null,
"product_id": 30,
"product_code_snapshot": "B015",
"product_name_snapshot": "脆皮拼油雞飯",
"product_type_snapshot": null,
"unit_price_snapshot": "105.00",
"quantity": 32,
"base_subtotal": "0.00",
"option_subtotal": "0.00",
"discount_subtotal": "0.00",
"item_subtotal": "0.00",
"item_note": "",
"sort_order": 10,
"created_at": "2026-12-05 09:44:29",
"updated_at": "2026-12-05 09:44:29",
"product_code": "B015",
"product_name": "脆皮拼油雞飯",
"unit_price": "105.00",
"line_total": "3360.00",
"item_notes": "",
"subtotal": "3360.00",
"bag_no": 1,
"bag_name": "本次訂單",
"product_short_name_snapshot": "脆雞飯",
"price_adjustment_json": "{\"original_base\":105,\"base_price\":105,\"history\":[]}"
},
{
"id": 2236,
"store_id": "1",
"order_id": 276,
"bag_id": null,
"product_id": 28,
"product_code_snapshot": "B013",
"product_name_snapshot": "素食代購",
"product_type_snapshot": null,
"unit_price_snapshot": "100.00",
"quantity": 2,
"base_subtotal": "0.00",
"option_subtotal": "0.00",
"discount_subtotal": "0.00",
"item_subtotal": "0.00",
"item_note": "",
"sort_order": 20,
"created_at": "2026-12-05 09:44:29",
"updated_at": "2026-12-05 09:44:29",
"product_code": "B013",
"product_name": "素食代購",
"unit_price": "100.00",
"line_total": "200.00",
"item_notes": "",
"subtotal": "200.00",
"bag_no": 1,
"bag_name": "本次訂單",
"product_short_name_snapshot": "",
"price_adjustment_json": null
}
],
"order_item_options": []
}
}