---
# System prepended metadata

title: 接送服務批新增 api
tags: [接送服務]

---

# 接送服務批新增 api
###### tags:  `接送服務`
* 前端
規則同新增api
- [ ] 前一個畫面需要先存檔，才可以執行
- [x] 以下任一條件成立則不可執行新增、批次新增
1.	訂房卡明細狀態不為N:正常、I:今日到達、O:已到或C:退房(C有額外處理)
2.	訂房卡明細狀態為C:退房，且退房日小於滾房租日co_dat < rent_dat
- [x] 訂房卡明細狀態為C:退房，且為退房日當天作業（退房日等於滾房租日），可執行新增、批次新增

* 後端
規則同新增api

```json=
    {
        "prg_id" : "PMS0210081",
        "socket_id" : "p6m5HF8u85NACf-0AAAO",
        "athena_id" : 25,
        "ins_usr" : "cio",
        "session_id" : 36729501,
        "func_id" : "1010",
        "params" : {},
        "locale" : "zh_TW",
        "trans_log_id" : "20200227185833585",
        "mac" : "",
        "comp_cod" : "ZZATHENA",
        "hotel_cod" : "01",
        "server_ip" : "",
        "reve_code" : "PMS0210081",
        "client_ip" : "",
        "upd_usr" : "cio",

        "user" : "cio",
        "table" : {
            "hfd_pickup_dt" : [ 
                {
                    "action_cod" : "C",
                    "athena_id" : "25",
                    "hotel_cod" : "01",
                    "ikey" : "00000557",
                    "ikey_seq_nos" : "1",
                    "ci_ser" : "20191104000153",
                    "pickup_typ" : "L",
                    "schedule_dat" : "2019/11/04",
                    "schedule_nos" : "HUN",
                    "schedule_tim" : "1722",
                    "spot" : "天空競技場",
                    "atten_nam" : "小傑",
                    "tel1_nos" : "0911222333",
                    "adult_qnt" : "1",
                    "child_qnt" : "0",
                    "appraise_ins" : "N",
                    "appraise_amt" : "0",
                    "remark1" : "愛的橡膠",
                    "upd_usr" : "cio",
                    "pageFrom" : "PMS0110041"//只有訂房明細要傳
                    "tmpOrderAppraise_key_nos" : 1234//只有訂房明細要傳
                    "ins_usr" : "cio"
                },
                {
                    "action_cod" : "C",
                    "athena_id" : "25",
                    "hotel_cod" : "01",
                    "ikey" : "00000557",
                    "ikey_seq_nos" : "1",
                    "ci_ser" : "20191104000153",
                    "pickup_typ" : "L",
                    "schedule_dat" : "2019/11/05",
                    "schedule_nos" : "HUN",
                    "schedule_tim" : "1722",
                    "spot" : "天空競技場",
                    "atten_nam" : "小傑",
                    "tel1_nos" : "0911222333",
                    "adult_qnt" : "1",
                    "child_qnt" : "0",
                    "appraise_ins" : "N",
                    "appraise_amt" : "0",
                    "remark1" : "愛的橡膠",
                    "upd_usr" : "cio",
                    "pageFrom" : "PMS0110041"//只有訂房明細要傳
                    "tmpOrderAppraise_key_nos" : 1234//只有訂房明細要傳
                    "ins_usr" : "cio"
                }
            ]
        },
        "event_time" : "2020-02-27T18:58:31+08:00"
    }
```