AME-SM Api

Customer: detail

https://www.ameinsure.com/api/Customer/getdetail
Post
{
'token' => string, **
'customer_id' => int **
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => object (
'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' : '',
}
}