---
# System prepended metadata

title: 鎖控 批次新增檢查 api
tags: [鎖控]

---

# 鎖控 批次新增檢查 api
###### tags:  `鎖控`

批次新增時檢查，
1.房型在期間內是否存在
2.房型庫存
失敗則顯示錯誤訊息
```json=
{
        "prg_id" : "PMS0120011",
        "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" : "PMS0120010",
        "client_ip" : "",
        "upd_usr" : "cio",
        "user" : "cio",
        "table" : {
            "block_mn" : [ 
                {
                    "action_cod" : "C",
                    "athena_id" : "25",
                    "hotel_cod" : "01",
                    "block_cod" : "SSS",
                    "room_cod" : "ZZZ",
                    "begin_dat" : "2019/11/11",
                    "end_dat" : "2019/11/15",
                    "block_qnt" : "1",
                    "release_days" : "5"
                }
            ]
        },
        "event_time" : "2020-02-27T18:58:31+08:00"
}
```