POST staff/vehicle_type/create
Request Information
URI Parameters
None.
Body Parameters
Request_Vehicle_Type_CU| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
|
| vehicle_life | string |
Required |
|
| vehicle_model | string |
Required |
|
| vehicle_name | string |
Required |
|
| input_price | decimal number |
Required |
|
| retail_price | decimal number |
Required |
|
| wholesale_price | decimal number |
Required |
|
| vat | decimal number |
Required |
|
| token | string |
Required |
|
| secret_key | string |
Required |
|
| id_staff_action | integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"vehicle_life": "sample string 2",
"vehicle_model": "sample string 3",
"vehicle_name": "sample string 4",
"input_price": 5.0,
"retail_price": 6.0,
"wholesale_price": 7.0,
"vat": 8.0,
"token": "sample string 9",
"secret_key": "sample string 10",
"id_staff_action": 11
}
application/xml, text/xml
Sample:
<Request_Vehicle_Type_CU xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code.Directory.Models.Dictionary.Request"> <id_staff_action xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">11</id_staff_action> <secret_key xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 10</secret_key> <token xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 9</token> <id>1</id> <input_price>5</input_price> <retail_price>6</retail_price> <vat>8</vat> <vehicle_life>sample string 2</vehicle_life> <vehicle_model>sample string 3</vehicle_model> <vehicle_name>sample string 4</vehicle_name> <wholesale_price>7</wholesale_price> </Request_Vehicle_Type_CU>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Result| Name | Description | Type | Additional information |
|---|---|---|---|
| status | integer |
None. |
|
| error_code | string |
None. |
|
| content | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 1,
"error_code": "sample string 2",
"content": {}
}
application/xml, text/xml
Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code"> <content /> <error_code>sample string 2</error_code> <status>1</status> </Result>