---
# System prepended metadata

title: 訂房分帳規則 API
tags: [訂房分帳規則儲存]

---

# 訂房分帳規則 API
###### tags:  `訂房分帳規則儲存`
SA文件 K:\MIS\Bacchus\SA\SYS_PMS_飯店前檯\01_訂房\作業 PMS0110041_訂房資料編輯.docx
* 後端: 7.19.1、7.19.7
    
* 前端: 7.19.1、7.19.2、7.19.3、7.19.4、7.19.5、7.19.6


## 範例
```jsonld=
{
        "prg_id" : "PMS0110041",
        "socket_id" : "zB76oC2NTt8wYxheGslj",
        "athena_id" : 25,
        "ins_usr" : "cio",
        "session_id" : 11097719,
        "func_id" : "1231",
        "params" : {},
        "locale" : "zh_TW",
        "trans_log_id" : "B20210705162531984",
        "mac" : "",
        "comp_cod" : "ZZATHENA",
        "hotel_cod" : "01",
        "server_ip" : "",
        "reve_code" : "PMS0110041",
        "client_ip" : "",
        "upd_usr" : "cio",
        "user" : "cio",
        "table" : {
            "order_route_dt" : [ 
                {
                    "action_cod" : "U",
                    "condition" : [ 
                        {
                            "field" : "athena_id",
                            "value" : 25,
                            "operator" : "equal"
                        }, 
                        {
                            "field" : "hotel_cod",
                            "value" : "01",
                            "operator" : "equal"
                        }, 
                        {
                            "field" : "analysis1_cod",
                            "value" : "17",
                            "operator" : "equal"
                        }, 
                        {
                            "field" : "ikey",
                            "value" : "00001342",
                            "operator" : "equal"
                        }
                    ],
                    "ikey" : "00001490",
                    "folio_nos" : "2",
                    "master_sta" : "N",
                    "athena_id" : 25,
                    "hotel_cod" : "01",
                    "analysis1_cod" : "17"
                },
                 {
                    "action_cod" : "U",
                    "condition" : [ 
                        {
                            "field" : "athena_id",
                            "value" : 25,
                            "operator" : "equal"
                        }, 
                        {
                            "field" : "hotel_cod",
                            "value" : "01",
                            "operator" : "equal"
                        }, 
                        {
                            "field" : "analysis1_cod",
                            "value" : "18",
                            "operator" : "equal"
                        }, 
                        {
                            "field" : "ikey",
                            "value" : "00001342",
                            "operator" : "equal"
                        }
                    ],
                    "ikey" : "00001490",
                    "folio_nos" : "2",
                    "master_sta" : "N",
                    "athena_id" : 25,
                    "hotel_cod" : "01",
                    "analysis1_cod" : "18"
                },{
                    "action_cod" : "U",
                    "condition" : [ 
                        {
                            "field" : "athena_id",
                            "value" : 25,
                            "operator" : "equal"
                        }, 
                        {
                            "field" : "hotel_cod",
                            "value" : "01",
                            "operator" : "equal"
                        }, 
                        {
                            "field" : "analysis1_cod",
                            "value" : "1",
                            "operator" : "equal"
                        }, 
                        {
                            "field" : "ikey",
                            "value" : "00001342",
                            "operator" : "equal"
                        }
                    ],
                    "ikey" : "00001490",
                    "folio_nos" : "3",
                    "master_sta" : "N",
                    "athena_id" : 25,
                    "hotel_cod" : "01",
                    "analysis1_cod" : "1"
                }
            ]
        },
        "event_time" : "2021-07-05T16:25:31+08:00"
    }
```