Skip to content

Customer Update

ดึงข้อมูลลูกค้า ที่มีการแก้ไข ตามวันที่ โดยจะต้องส่ง วันที่เข้ามาให้กับ Service โดย API จะ Resonse รายการลูกค้าที่มี่การแก้ไข หลังจาก วันที่ที่ส่งเข้ามา แสดงผลออกไป

Endpoint

/SMLJavaRESTService/SMLMobileFrameWork/saleto/customerupdate

Header Request

FieldValue
GUIDGUID สำหรับการเชื่อมต่อ (smlx เสมอ)
configFileNameชื่อไฟล์ Config
databaseNameชื่อฐานข้อมูล

Query Request

FieldDescription
dateวันที่แก้ไข

example

GET http://localhost:8086/SMLJavaRESTService/SMLMobileFrameWork/saleto/customerupdate?date=2020-01-01

HTTP Response

StatusDescripton
200Success return with data
500Bas Request
401Unauthorize

Customer

fieldvalue
saleunitstring
cuscodstring
custyp0
prenamstring
cusnamstring
addr01string
addr02string
addr03string
addr04string
contactstring
areacodstring
paytemstring
remarkstring
discstring
account_codestring
billcreditstring
authorizeamountstring
barnchstring
taxnostring
arm_code0
latitudestring
longtitudestring
branch_codestring
pricelevelstring
credit_statusstring
nfc_idstring
sms_phonenumberstring
customer_mobilesstring
projectstring
shop_typestring

Response Success

xml
<?xml version='1.0' encoding='utf-8'?>
<ResultSet>
    <row>
        <saleunit>string</saleunit>
        <cuscod>string</cuscod>
        <custyp>0</custyp>
        <prenam>string</prenam>
        <cusnam>string</cusnam>
        <addr01>string</addr01>
        <addr02>string</addr02>
        <addr03>string</addr03>
        <addr04>string</addr04>
        <contact>string</contact>
        <areacod>string</areacod>
        <paytem>string</paytem>
        <remark>string</remark>
        <disc>string</disc>
        <account_code>string</account_code>
        <billcredit>string</billcredit>
        <authorizeamount>string</authorizeamount>
        <barnch>string</barnch>
        <taxno>string</taxno>
        <arm_code>0</arm_code>
        <latitude>string</latitude>
        <longtitude>string</longtitude>
        <branch_code>string</branch_code>
        <pricelevel>string</pricelevel>
        <credit_status>string</credit_status>
        <nfc_id>string</nfc_id>
        <sms_phonenumber>string</sms_phonenumber>
        <customer_mobiles>string</customer_mobiles>
        <project>string</project>
        <shop_type>string</shop_type>
    </row>
</ResultSet>

Response Error

xml
<?xml version='1.0' encoding='utf-8'?>
<error>Error Messsage</error>