AME-SM Api

Car Type: Get all car type

https://www.ameinsure.com/api/Car_type/getcartype
Post
{
'token' => string, **
search_txt => string (name of type)
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => array (
'id' => Id of type,
'name' => string
)
}
{
'code' : '0x0000-00000',
'message' : 'Success',
'data' : [
{
'id' : '1',
'name' : 'กลุ่มที่ 1'
},
...
)
}

Car Type: Insert car type

https://www.ameinsure.com/api/Car_type/insert
Post
{
'token' => string, **
name => string (name of type) **
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => Id of car type
}
{
'code' : '0x0000-00000',
'message' : 'Success',
'data' : 1
}

Car Type: Update car type

https://www.ameinsure.com/api/Car_type/update
Post
{
'token' => string, **
id => int (id of type) **
name => string (name of type) **
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => Id of car type
}
{
'code' : '0x0000-00000',
'message' : 'Success',
'data' : 1
}

Car Type: Remove car type

https://www.ameinsure.com/api/Car_type/remove
Post
{
'token' => string, **
id => int (id of type) **
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
}
{
'code' : '0x0000-00000',
'message' : 'Success',
}