AME-SM Api
Car Type: Get all car category
https://www.ameinsure.com/api/Car_category/getcarcategory
Post
{
'token' => string, **
search_txt => string (name of category)
}
'token' => string, **
search_txt => string (name of category)
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => array (
'id' => Id of category,
'code' => string (code of category),
'name' => string (name of category)
)
}
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => array (
'id' => Id of category,
'code' => string (code of category),
'name' => string (name of category)
)
}
{
'code' : '0x0000-00000',
'message' : 'Success',
'data' : [
{
'id' : '1',
'code' : '1',
'name' : 'บุคคล'
},
...
)
}
'code' : '0x0000-00000',
'message' : 'Success',
'data' : [
{
'id' : '1',
'code' : '1',
'name' : 'บุคคล'
},
...
)
}
Car Category: Insert car category
https://www.ameinsure.com/api/Car_category/insert
Post
{
'token' => string, **
code => string (code of category) **
name => string (name of category) **
}
'token' => string, **
code => string (code of category) **
name => string (name of category) **
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => Id of car category
}
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => Id of car category
}
{
'code' : '0x0000-00000',
'message' : 'Success',
'data' : 1
}
'code' : '0x0000-00000',
'message' : 'Success',
'data' : 1
}
Car category: Update car category
https://www.ameinsure.com/api/Car_category/update
Post
{
'token' => string, **
id => int (id of category) **
code => string (code of category) **
name => string (name of category) **
}
'token' => string, **
id => int (id of category) **
code => string (code of category) **
name => string (name of category) **
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => Id of car category
}
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => Id of car category
}
{
'code' : '0x0000-00000',
'message' : 'Success',
'data' : 1
}
'code' : '0x0000-00000',
'message' : 'Success',
'data' : 1
}
Car Category: Remove car category
https://www.ameinsure.com/api/Car_category/remove
Post
{
'token' => string, **
id => int (id of category) **
}
'token' => string, **
id => int (id of category) **
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
}
'code' => string (0x0000-00000 when success),
'message' => string,
}
{
'code' : '0x0000-00000',
'message' : 'Success',
}
'code' : '0x0000-00000',
'message' : 'Success',
}