Skip to content

Income Other Service

API รายได้อื่นๆ


Header Request

FieldValue
GUIDGUID สำหรับการเชื่อมต่อ (smlx เสมอ)
providerชื่อผู้ใช้บริการ
databaseNameชื่อฐานข้อมูล
configFileNameไฟล์ตั้งค่าผู้ให้บริการ
ใส่ SMLConfig และตามด้วยชื่อผู้ให้บริการ และตามด้วย .xml (SMLConfig___.xml)

Header Example

{
  "GUID" : "smlx"
  "provider" : "DATA"
  "databaseName" : "data1"
  "configFileName" : "SMLConfigDATA.xml"
}

HTTP Response

StatusDescripton
200Success return with data
500Bas Request
401Unauthorize

Add incomeother

สร้างเอกสาร รายได้อื่นๆ

EndPoint

POST /SMLJavaRESTService/incomeother/v4/

Body Data:

JSON body with incomeother Request Attribute

example:

{
    "branch_code": "001",
    "contactor_code": "",
    "credit_date": "2023-05-15",
    "credit_day": 0,
    "cust_code": "AR00001",
    "remark": "",
    "remark_2": "",
    "remark_3": "",
    "remark_4": "",
    "remark_5": "",
    "sale_code": "",
    "sale_group": "",
    "send_date": null,
    "send_day": 0,
    "send_type": 0,
    "tax_doc_date": "2023-05-15",
    "tax_doc_no": "OI23050001",
    "total_after_vat": 10,
    "total_amount": 100,
    "total_before_vat": 93.46,
    "total_discount": 0,
    "total_except_vat": 0,
    "total_value": 100,
    "total_vat_value": 6.54,
    "vat_rate": 7,
    "vat_type": 1,
    "details": [
        {
            "discount": 0,
            "discount_amount": 0,
            "is_permium": 0,
            "item_code": "4-0001",
            "item_name": "รายได้อื่นๆ",
            "line_number": 0,
            "price": 0,
            "qty": 0,
            "remark": "รายได้อื่นๆ",
            "shelf_code": "",
            "sum_amount": 100,
            "tax_type": 0,
            "unit_code": "",
            "wh_code": ""
        }
    ],
    "discount_word": "",
    "doc_date": "2023-05-15",
    "doc_format_code": "OI",
    "doc_no": "OI23050001",
    "doc_ref": "",
    "doc_ref_date": null,
    "doc_time": "14:46",
    "inquiry_type": 1,
    "payment": {
        "advance_amount": 0,
        "card_amount": 20,
        "cash_amount": 40,
        "cashier_code": "",
        "chq_amount": 10,
        "coupon_amount": 0,
        "deposit_amount": 10,
        "discount_amount": 0,
        "money_change": 0,
        "pay_cash_amount": 0,
        "pay_type": 1,
        "payment_transfer": [
            {
                "amount": 10,
                "bank_branch": "BAY-001",
                "bank_code": "BAY",
                "chq_due_date": "2023-05-15",
                "remark": "reamrk",
                "trans_number": "BAY-001"
            }
        ],
        "payment_advance": [
            {
                "amount": 10,
                "balance_amount": 0,
                "remark": "หมายเหตุเงินสดย่อย",
                "sum_amount": 0,
                "trans_number": "PC-001"
            }
        ],
        "payment_chq": [
            {
                "amount": 10,
                "bank_branch": "BAY-001",
                "bank_code": "BAY",
                "chq_due_date": "2023-05-16",
                "chq_on_hand": 0,
                "remark": "หมายเหตุ",
                "sum_amount": 10,
                "trans_number": "100001"
            }
        ],
        "payment_credit": [
            {
                "amount": 10,
                "charge": 10,
                "credit_card_type": "TEST",
                "no_approved": "001test",
                "remark": "หมายเหตุ",
                "sum_amount": 20,
                "trans_number": "test001"
            }
        ],
        "payment_expense": [
            {
                "amount": 10,
                "remark": "หมายเหตุ",
                "trans_number": "4-0001"
            }
        ],
        "payment_income": [
            {
                "amount": 10,
                "remark": "หมายเหตุ",
                "trans_number": "535900"
            }
        ],
        "payment_petty": [
            {
                "amount": 10,
                "balance_amount": 300,
                "doc_date_ref": "2018-01-18",
                "remark": "หมายเหตุ",
                "sum_amount": 1000,
                "trans_number": "DPS18010001"
            }
        ],
        "petty_cash_amount": 0,
        "point_amount": 0,
        "point_qty": 0,
        "point_rate": 0,
        "remark": "",
        "sale_shift_id": "",
        "total_amount": 100,
        "total_amount_pay": 110,
        "total_credit_charge": 0,
        "total_expense_other": 10,
        "total_fee_amount": 0,
        "total_income_amount": 0,
        "total_income_other": 0,
        "total_net_amount": 110,
        "total_other_amount": 0,
        "total_other_currency": 0,
        "total_tax_at_pay": 0,
        "tranfer_amount": 10,
        "wallet_amount": 0
    }

}

Response Success: Transaction Attribute V4