AME-SM Api

Config Address: Get all district

https://www.ameinsure.com/api/Config_address/getdistrict
Post
{
'token' => string, **
'search_txt' => string ,
'geography_id' => int,
'province_id' => int
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => array (
'id' => Id,
'code' => string,
'name' => string,
'postcode' => string,
'province' => object (
'id' => Id,
'name' => string
)
)
}
{
'code' : '0x0000-00000',
'message' : 'Success',
'data' : [
{
'id' : '1',
'code' : '10',
'name' : 'เขตบางรัก',
'postcode' : '10500',
'province' : {
'id' : '1',
'name' : 'กรุงเทพมหานคน'
}
},
...
]
}