Send Money POS Service 
API บันทึกส่งเงิน POS
- ดึงเอกสารบันทึกส่งเงิน POS ทั้งหมด
 - ดึงเอกสารบันทึกส่งเงิน POS ตามเอกสาร
 - สร้างเอกสารบันทึกส่งเงิน POS
 - Supplier Attribute
 
Header Request 
| Field | Value | 
|---|---|
| GUID | GUID สำหรับการเชื่อมต่อ (smlx เสมอ) | 
| provider | ชื่อผู้ใช้บริการ | 
| databaseName | ชื่อฐานข้อมูล | 
| configFileName | ไฟล์ตั้งค่าผู้ให้บริการ  ใส่ SMLConfig และตามด้วยชื่อผู้ให้บริการ และตามด้วย .xml (SMLConfig___.xml)  | 
Header Example 
{
  "GUID" : "smlx"
  "provider" : "DATA"
  "databaseName" : "data1"
  "configFileName" : "SMLConfigDATA.xml"
}HTTP Response 
| Status | Descripton | 
|---|---|
| 200 | Success return with data | 
| 500 | Bas Request | 
| 401 | Unauthorize | 
sendmoney List 
แสดงข้อมูลเอกสารบันทึกส่งเงิน POS ทั้งหมด
EndPoint 
GET /SMLJavaRESTService/sendmoney/v4
Query Request 
| Field | Description | 
|---|---|
| page | number of page | 
| size | page size | 
Example: 
GET localhost:8084/SMLJavaRESTService/sendmoney/v4?page=1&size=2sendmoney Information 
เป็นการดึงข้อมูลเอกสารบันทึกส่งเงิน POS มาแสดงทีละ 1 เอกสารโดยจะต้องระบุเลขที่เอกสาร
EndPoint 
GET /SMLJavaRESTService/sendmoney/v4/{docno}
Path Parameter:
| Name | Description | Example | 
|---|---|---|
| docno | เลขที่เอกสาร | POS01-INV220721-0001 | 
example:
GET localhost:8084/SMLJavaRESTService/sendmoney/v4/POS01-DI-1710-0001Response Success 
{
    "success": true,
    "data": {
        "DocNo": "POS01-DI-1710-0001",
        "DocDate": "2017-10-18",
        "CashierCode": "001",
        "MACHINECODE": "POS01",
        "POS_ID": "",
        "CashAmount": 558.0000000000,
        "CreditCardAmount": 0E-10,
        "CoupongAmount": 0E-10,
        "ChqAmount": 0E-10,
        "TransferAmount": 0E-10,
        "manager_code": "",
        "trans_type": 2,
        "doc_time": "09:56",
        "remark": "",
        "total_amount": 96.0000000000,
        "total_cancel": 38.0000000000,
        "total_balance": 58.0000000000,
        "total_diff": 0E-10,
        "total_credit_card": 0E-10,
        "total_coupon": 0E-10,
        "total_cash": 558.0000000000,
        "total_sum": 558.0000000000,
        "sum_amount": 558.0000000000,
        "total_in": 500.0000000000,
        "total_out": 0E-10,
        "begin_time": "",
        "end_time": "",
        "begin_user_code": "",
        "end_user_code": "",
        "total_out_credit": 0E-10,
        "total_out_coupon": 0E-10,
        "total_point": 0E-10,
        "total_advance": 0E-10,
        "total_after_advance": 58.0000000000,
        "deposit_cash_amount": 0E-10,
        "deposit_credit_amount": 0E-10,
        "deposit_return_cash_amount": 0E-10,
        "branch_code": "000",
        "sale_credit_amount": 0E-10,
        "order_amount": 0E-10,
        "total_credit_charge": 0E-10,
        "total_service_amount": 0,
        "total_vat_amount": 0,
        "transfer_amount": 0,
        "wallet_amount": 0,
        "total_currency_amount": 0,
        "total_currency_charge_amount": 0,
        "coupongAmount": 0E-10,
        "cashAmount": 558.0000000000,
        "chqAmount": 0E-10,
        "pos_ID": "",
        "machinecode": "POS01",
        "docDate": "2017-10-18",
        "cashierCode": "001",
        "docNo": "POS01-DI-1710-0001",
        "creditCardAmount": 0E-10,
        "transferAmount": 0E-10
    }
}Response Error 
  {
    "error": true,
    "code": "99",
    "message": "error message"
  }Add sendmoney 
สร้างเอกสารบันทึกส่งเงิน POS
EndPoint 
POST /SMLJavaRESTService/sendmoney/v4/
Body Data: 
JSON body with sendmoney Request Attribute
example:
{
    "doc_no": "POS01-DI-1806-0003",
    "doc_date": "2024-05-19",
    "cashiercode": "001",
    "machincecode": "POS01",
    "pos_id": "POS01",
    "cashamount": 1800.0000000000,
    "creditcardamount": 1,
    "coupongamount": 1,
    "chqamount": 1,
    "transferamount": 1,
    "manager_code": "manager_code",
    "trans_type": 2,
    "doc_time": "10:13",
    "remark": "remark",
    "total_amount": 2196.2000000000,
    "total_cancel": 16.0000000000,
    "total_balance": 2180.2000000000,
    "total_diff": 0.2000000000,
    "total_credit_card": 1,
    "total_coupon": 1,
    "total_cash": 1800.0000000000,
    "total_sum": 1800.0000000000,
    "sum_amount": 1800.0000000000,
    "total_in": 1,
    "total_out": 373.0000000000,
    "begin_date": "2024-05-19",
    "begin_time": "15:33",
    "end_date": "2024-05-19",
    "end_time": "15:33",
    "begin_user_code": "001",
    "end_user_code": "superadmin",
    "total_out_credit": 1,
    "total_out_coupon": 1,
    "total_point": 7.0000000000,
    "total_advance": 1,
    "total_after_advance": 2180.0000000000,
    "deposit_cash_amount": 1,
    "deposit_credit_amount": 1,
    "deposit_return_cash_amount": 1,
    "branch_code": "0000",
    "sale_credit_amount": 16.0000000000,
    "order_amount": 1,
    "total_credit_charge": 1,
    "total_service_amount": 1,
    "total_vat_amount": 1,
    "transfer_amount": 1,
    "wallet_amount": 1,
    "total_currency_amount": 1,
    "total_currency_charge_amount": 1,
    "cashAmount": 1800.0000000000,
    "total_transfer_amount": 11,
    "docDate": 1528045200000,
    "cashierCode": "001",
    "docNo": "POS01-DI-1806-0001"
}sendmoney Attribute 
| Field Name | Field Type | Length | Name String | 
|---|---|---|---|
| DocNo | String | 25 | เลขที่เอกสาร | 
| DocDate | Date | 0 | วันที่เอกสาร | 
| CashierCode | String | 25 | รหัสพนักงานขาย | 
| MACHINECODE | String | String0 | รหัสเครื่องPOS | 
| POS_ID | String | 30 | เลขที่เครื่อง | 
| CashAmount | Float | 0 | เงินสด | 
| CreditCardAmount | Float | 0 | บัตรเครดิต | 
| CoupongAmount | Float | 0 | คูปอง | 
| ChqAmount | Float | 0 | เช็ค | 
| TransferAmount | Float | 0 | เงินโอน | 
| manager_code | String | 25 | รหัสผู้จัดการ | 
| trans_type | Integer | 0 | 1=รับเงินทอน,2=ส่งเงิน | 
| doc_time | String | 5 | เวลา | 
| remark | String | 255 | หมายเหตุ | 
| total_amount | Float | 0 | ยอดขายทั้งสิ้น | 
| total_cancel | Float | 0 | ยอดขายยกเลิก | 
| total_balance | Float | 0 | ยอดขายสุทธิ | 
| total_diff | Float | 0 | ยอดปัดเศษ | 
| total_credit_card | Float | 0 | ยอดบัตรเครดิต | 
| total_coupon | Float | 0 | ยอดบัตรส่วนลด | 
| total_cash | Float | 0 | ยอดเงินสด | 
| total_sum | Float | 0 | รวมมูลค่าต้องนำส่ง | 
| sum_amount | Float | 0 | รวมมูลค่านำส่ง | 
| total_in | Float | 0 | ยอดเงินทอน | 
| total_out | Float | 0 | ยอดนำส่งเงินสด | 
| begin_date | Date | 0 | วันที่เปิดกะ | 
| begin_time | String | 25 | เวลาเปิดกะ | 
| end_date | Date | 0 | วันที่ปิดกะ | 
| end_time | String | 25 | เวลาปิดกะ | 
| begin_user_code | String | 25 | รหัสพนักงานเปิดกะ | 
| end_user_code | String | 25 | รหัสพนักงานปิดกะ | 
| total_out_credit | Float | 0 | ยอดนำส่งบัตรเครดิต | 
| total_out_coupon | Float | 0 | ยอดนำส่งคูปอง | 
| guid_code | String | 35 | GUID | 
| total_point | Float | 0 | ยอดแต้ม | 
| total_advance | Float | 0 | หักเงินมัดจำ | 
| total_after_advance | Float | 0 | ยอดขายหักเงินมัดจำ | 
| deposit_cash_amount | Float | 0 | ยอดเงินมัดจำ | 
| deposit_credit_amount | Float | 0 | ยอดบัตรเครดิตเงินมัดจำ | 
| deposit_return_cash_amount | Float | 0 | ยอดคืนเงินมัดจำ | 
| branch_code | String | 25 | สาขา | 
| sale_credit_amount | Float | 0 | ยอดขายเงินเชื่อ | 
| order_amount | Float | 0 | ยอดค้างเช็คบิล | 
| total_credit_charge | Float | 0 | ยอด Charge บัตรเครดิต | 
| total_service_amount | Float | 0 | ยอดรวม Service Charge | 
| total_vat_amount | Float | 0 | ยอดรวมภาษีมูลค่าเพิ่ม | 
| transfer_amount | Float | 0 | ยอดเงินโอน | 
| wallet_amount | Float | 0 | ยอด Wallet | 
| total_currency_amount | Float | 0 | ยอดเงินสกุลอื่น | 
| total_currency_charge_amount | Float | 0 | ยอด Charge สกุลเงินอื่น ๆ |