---
# System prepended metadata

title: 交換機入帳api
tags: [交換機]

---

# 交換機入帳api
###### tags:  `交換機`
```jsonld=
{
        "session_id" : 50587373,
        
        "trans_log_id" : "B20200707152628444", //無意義不帶也不會出錯
        "params" : {}, //無意義不帶也不會出錯
        "mac" : "", //無意義不帶也不會出錯
        "server_ip" : "", //無意義不帶也不會出錯
        "client_ip" : "", //無意義不帶也不會出錯  
        "locale" : "zh_TW",  //語系
        "athena_id" : 25,
        "hotel_cod" : "01",  // 館別
        "prg_id" : "PBX0000000", // 寫死 PBX0000000
        "reve_code" : "PBX0000000", // 寫死 PBX0000000
        "func_id" : "1100", // 寫死 1100
        "upd_usr" : "PBX", // 寫死PBX
        "user" : "PBX", // 寫死PBX
        "ins_usr" : "PBX",  // 寫死PBX
        "event_time" : "2020-07-07T15:26:28+08:00",  // 打api時間
        "table" : {
            "ptx" : [
                {
                    "phone_nos" : "",
                    "tel_nos" : "",
                    "trans_dat" : "", //交易日期
                    "trans_tim" : "", //交易時間
                    "trans_typ" : "", // 通話類別 LDC:國內長途、OSC:國際長途、INT:網際網路、LOC:市話

                    "trans_amt" : "", 
                    "start_dat" : "",
                    "start_tim" : "",
                    "talk_tim" : ""  // 通話秒數  需經過7.2.1  第二點處理
                    
                }
            ]
        }
        
    }
    
    範例
    {
        "session_id" : 50587373,
        
        "trans_log_id" : "B20200707152628444", 
        "params" : {}, 
        "mac" : "", 
        "server_ip" : "", 
        "client_ip" : "", 
        "locale" : "zh_TW",
        "athena_id" : 25,
        "hotel_cod" : "C3",
        "prg_id" : "PBX0000000", 
        "reve_code" : "PBX0000000",
        "func_id" : "1100", 
        "upd_usr" : "PBX", 
        "user" : "PBX", 
        "ins_usr" : "PBX",  
        "event_time" : "2020-07-07T15:26:28+08:00",  
        "table" : {
            "ptx" : [
                {
                    "phone_nos" : "666",
                    "tel_nos" : "0922333444",
                    "trans_dat" : "20200815", 
                    "trans_tim" : "105021", 
                    "trans_typ" : "LOC", 
                    "trans_amt" : "7777", 
                    "start_dat" : "20200815",
                    "start_tim" : "105021",
                    "talk_tim" : "2000"  
                    
                }
            ]
        }
        
    }
    
```