AME-SM Api
Customer: search customer
https://www.ameinsure.com/api/Customer/searchcustomer
Post
{
'token' => string, **
'search_txt' => string
}
'token' => string, **
'search_txt' => string
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => array (
'id' => string (id of customer),
'first_name' => string,
'last_name' => string,
'citizen_id' => string,
'birth_date' => string (format yyyy-mm-dd),
'gender' => int (0 เพศชาย, 1 เพศหญิง),
'mobile_number' => string,
'phone_number' => string,
'address' => string,
'address_province' => object (
'id' => int,
'name' => string
)
'address_district' => object (
'id' => int,
'name' => string
)
'address_sub_district' => object (
'id' => int,
'name' => string
)
'postcode' => string,
)
}
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => array (
'id' => string (id of customer),
'first_name' => string,
'last_name' => string,
'citizen_id' => string,
'birth_date' => string (format yyyy-mm-dd),
'gender' => int (0 เพศชาย, 1 เพศหญิง),
'mobile_number' => string,
'phone_number' => string,
'address' => string,
'address_province' => object (
'id' => int,
'name' => string
)
'address_district' => object (
'id' => int,
'name' => string
)
'address_sub_district' => object (
'id' => int,
'name' => string
)
'postcode' => string,
)
}
{
'code' : '0x0000-00000',
'message' : 'Success',
'data' : [
{
'id' : '' ,
'first_name' : '',
'last_name' : '',
'citizen_id' : '',
'birth_date' : '',
'gender' : '',
'mobile_number' : '',
'phone_number' : '',
'address' : '',
'address_province': {
'id' : '',
'name' : ''
}
'address_district' : {
'id' : '',
'name' : ''
}
'address_sub_district' : {
'id' : '',
'name' : ''
}
'postcode' : '',
},
...
]
}
'code' : '0x0000-00000',
'message' : 'Success',
'data' : [
{
'id' : '' ,
'first_name' : '',
'last_name' : '',
'citizen_id' : '',
'birth_date' : '',
'gender' : '',
'mobile_number' : '',
'phone_number' : '',
'address' : '',
'address_province': {
'id' : '',
'name' : ''
}
'address_district' : {
'id' : '',
'name' : ''
}
'address_sub_district' : {
'id' : '',
'name' : ''
}
'postcode' : '',
},
...
]
}